浏览代码

fix build warning

Le Tan 7 年之前
父节点
当前提交
4f4652dc3a
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/vnavigationmode.h
  2. 2 2
      src/vtaglabel.cpp

+ 1 - 1
src/vnavigationmode.h

@@ -77,7 +77,7 @@ public:
         VNavigationMode::showNavigation(m_widget);
     }
 
-    bool handleKeyNavigation(int p_key, bool &p_succeed)
+    bool handleKeyNavigation(int p_key, bool &p_succeed) Q_DECL_OVERRIDE
     {
         static bool secondKey = false;
 

+ 2 - 2
src/vtaglabel.cpp

@@ -10,8 +10,8 @@ VTagLabel::VTagLabel(const QString &p_text,
                      bool p_useFullText,
                      QWidget *p_parent)
     : QWidget(p_parent),
-      m_useFullText(p_useFullText),
-      m_text(p_text)
+      m_text(p_text),
+      m_useFullText(p_useFullText)
 {
     setupUI();
 }