summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-11-01 11:28:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-11-02 10:37:57 +0900
commit0cf04e8e6d318d0b3611c045b1b382af91e13da8 (patch)
treedc6807467efb2b7801888e75079eb8e0d6d007b7
parenta1fa340b132bbd935b214bd4e45763ea3e83c23f (diff)
downloadtdetoys-0cf04e8e6d318d0b3611c045b1b382af91e13da8.tar.gz
tdetoys-0cf04e8e6d318d0b3611c045b1b382af91e13da8.zip
kweather sidebar: correctly initialize variables. This fixes issue #15.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 949893d7e4af5286f75d9320b54a52a0cf6e77fb)
-rw-r--r--kweather/sidebarwidget.cpp2
-rw-r--r--kweather/sidebarwidget.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/kweather/sidebarwidget.cpp b/kweather/sidebarwidget.cpp
index 45a97fd..792d4a4 100644
--- a/kweather/sidebarwidget.cpp
+++ b/kweather/sidebarwidget.cpp
@@ -34,7 +34,7 @@
#include <dcopref.h>
sidebarwidget::sidebarwidget(TQWidget* parent, const char* name)
- : TQWidget(parent,name)
+ : TQWidget(parent,name), settingsDialog(0)
{
mainLayout = new TQVBoxLayout(this);
diff --git a/kweather/sidebarwidget.h b/kweather/sidebarwidget.h
index a45139e..7778cff 100644
--- a/kweather/sidebarwidget.h
+++ b/kweather/sidebarwidget.h
@@ -50,7 +50,7 @@ Q_OBJECT
private:
DCOPRef *dcopCall;
- KCMultiDialog *settingsDialog = 0;
+ KCMultiDialog *settingsDialog;
};