From 39782f80c9ca630e540a8251740e2bc468c3dccc Mon Sep 17 00:00:00 2001
From: Teo Mrnjavac <teo@kde.org>
Date: Wed, 27 Jul 2016 13:35:03 +0200
Subject: [PATCH] Fix warnings.

---
 src/modules/locale/LocalePage.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/locale/LocalePage.cpp b/src/modules/locale/LocalePage.cpp
index 2250ebae30..abeabca892 100644
--- a/src/modules/locale/LocalePage.cpp
+++ b/src/modules/locale/LocalePage.cpp
@@ -34,7 +34,7 @@
 
 
 LocalePage::LocalePage( QWidget* parent )
-    : QWidget()
+    : QWidget( parent )
     , m_blockTzWidgetSet( false )
 {
     QBoxLayout* mainLayout = new QVBoxLayout;
@@ -113,6 +113,7 @@ LocalePage::LocalePage( QWidget* parent )
              static_cast< void ( QComboBox::* )( int ) >( &QComboBox::currentIndexChanged ),
              [this]( int currentIndex )
     {
+        Q_UNUSED( currentIndex )
         if ( !m_blockTzWidgetSet )
             m_tzWidget->setCurrentLocation( m_regionCombo->currentData().toString(),
                                             m_zoneCombo->currentData().toString() );
-- 
GitLab