Mercurial > hg > bitcoin
changeset 2468:80849ad5a725 draft
Merge pull request #1257 from Diapolo/fix_guiutil_warn
guiutil.cpp/.h: fix a -Wreorder compiler warning...
author | Wladimir J. van der Laan <laanwj@gmail.com> |
---|---|
date | Fri, 11 May 2012 02:43:18 -0700 |
parents | c5898fd4a4f5 (current diff) a7c09c66dd97 (diff) |
children | 38085276fbd8 |
files | |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -243,8 +243,8 @@ #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) { }
--- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -77,11 +77,11 @@ 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);