summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Koller <kollix@aon.at>2016-08-18 17:17:55 (GMT)
committerMartin Koller <kollix@aon.at>2016-08-18 17:17:55 (GMT)
commite0541440b45fc5a53324bc764c1a99bc284fcaa5 (patch)
treeed509ac3fa3f6cc07b0e77332636a19306103de3
parent34276c59ed0984f812c7d87c9becfde71ed338a4 (diff)
Avoid using QCoreApplication before it was created
Do not use IconSize in a global constant since this would access QCoreApplication before it was created in main() REVIEW: 128711
-rw-r--r--contact-overlays.cpp2
-rw-r--r--diff13
2 files changed, 14 insertions, 1 deletions
diff --git a/contact-overlays.cpp b/contact-overlays.cpp
index e8604be..166030d 100644
--- a/contact-overlays.cpp
+++ b/contact-overlays.cpp
@@ -26,7 +26,7 @@
#include <KTp/types.h>
-const int spacing = IconSize(KIconLoader::Dialog) / 8;
+#define spacing (IconSize(KIconLoader::Dialog) / 8)
class GuiItemContactViewHoverButton : public ContactViewHoverButton
{
diff --git a/diff b/diff
new file mode 100644
index 0000000..ab999c3
--- /dev/null
+++ b/diff
@@ -0,0 +1,13 @@
+diff --git a/contact-overlays.cpp b/contact-overlays.cpp
+index e8604be..166030d 100644
+--- a/contact-overlays.cpp
++++ b/contact-overlays.cpp
+@@ -26,7 +26,7 @@
+
+ #include <KTp/types.h>
+
+-const int spacing = IconSize(KIconLoader::Dialog) / 8;
++#define spacing (IconSize(KIconLoader::Dialog) / 8)
+
+ class GuiItemContactViewHoverButton : public ContactViewHoverButton
+ {