Browse Source

Fehler im Datei Dialog behoben

Kolja Strohm 5 years ago
parent
commit
b79d6aacfe
2 changed files with 1 additions and 23 deletions
  1. 1 16
      DateiDialog.cpp
  2. 0 7
      DateiDialog.h

+ 1 - 16
DateiDialog.cpp

@@ -193,11 +193,11 @@ DateiDialog *DateiDialog::release()
 // Inhalt der DateiDialogTh Klasse aus DateiDialog.h
 // Konstruktor
 DateiDialogTh::DateiDialogTh()
+    : Thread()
 {
     dialog = new DateiDialog();
     ret = 0;
     open = 0;
-    ref = 1;
 }
 
 // Destruktor
@@ -256,19 +256,4 @@ Text *DateiDialogTh::getPfad() const
 Text *DateiDialogTh::zPfad() const
 {
     return ret;
-}
-
-// Refernece Counting
-DateiDialogTh *DateiDialogTh::getThis()
-{
-    ref++;
-    return this;
-}
-
-DateiDialogTh *DateiDialogTh::release()
-{
-    ref--;
-    if( !ref )
-        delete this;
-    return 0;
 }

+ 0 - 7
DateiDialog.h

@@ -56,7 +56,6 @@ namespace Framework
         DateiDialog *dialog;
         Text *ret;
         bool open;
-        int ref;
 
     public:
         // Konstruktor
@@ -88,12 +87,6 @@ namespace Framework
         // Gibt den Pfad zur Datei ohne erhöhten Reference Counter zurück.
         // Funktioniert erst, nachdem der Thread beendet wurde
         __declspec( dllexport ) Text *zPfad() const;
-        // Erhöht den Reference Counting Zähler.
-        //  return: this.
-        __declspec( dllexport ) DateiDialogTh *getThis();
-        // Verringert den Reference Counting Zähler. Wenn der Zähler 0 erreicht, wird das Zeichnung automatisch gelöscht.
-        //  return: 0.
-        __declspec( dllexport ) DateiDialogTh *release();
     };
 };