From 58b01afc5092cb56e1a5d2b6c8f96dade8ed6c02 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Fri, 11 May 2012 11:32:04 +0200 Subject: [PATCH] guiutil.cpp/.h: fix a -Wreorder compiler warning and make constructor for ToolTipToRichTextFilter explicit --- src/qt/guiutil.cpp | 4 ++-- src/qt/guiutil.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 9a7d42fa..fab97f91 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -243,8 +243,8 @@ void openDebugLogfile() #endif } -ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject *parent): - size_threshold(size_threshold), QObject(parent) +ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject *parent) : + QObject(parent), size_threshold(size_threshold) { } diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h index 92d0f9ee..8d1a01e0 100644 --- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -77,11 +77,11 @@ namespace GUIUtil representation if needed. This assures that Qt can word-wrap long tooltip messages. Tooltips longer than the provided size threshold (in characters) are wrapped. */ - class ToolTipToRichTextFilter: public QObject + class ToolTipToRichTextFilter : public QObject { Q_OBJECT public: - ToolTipToRichTextFilter(int size_threshold, QObject *parent); + explicit ToolTipToRichTextFilter(int size_threshold, QObject *parent = 0); protected: bool eventFilter(QObject *obj, QEvent *evt);