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-01 11:32:10 +0900
commit949893d7e4af5286f75d9320b54a52a0cf6e77fb (patch)
tree5f06834a09ab1ccdb7fb50e7d059a9d76f3ab2dd
parent1c542ac6ccae44fac8fa5d122fe5317c65a64410 (diff)
downloadtdetoys-949893d7e4af5286f75d9320b54a52a0cf6e77fb.tar.gz
tdetoys-949893d7e4af5286f75d9320b54a52a0cf6e77fb.zip
kweather sidebar: correctly initialize variables. This fixes issue #15.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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;
};