From 92eae47a1d1339f73e0ea6adf7dd04d472939a1c Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 20 Feb 2015 16:21:12 +0100 Subject: [PATCH] Const correctness. --- src/modules/locale/timezonewidget/localeglobal.cpp | 2 +- src/modules/locale/timezonewidget/localeglobal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/locale/timezonewidget/localeglobal.cpp b/src/modules/locale/timezonewidget/localeglobal.cpp index 290dab6a2..b7aa603e1 100644 --- a/src/modules/locale/timezonewidget/localeglobal.cpp +++ b/src/modules/locale/timezonewidget/localeglobal.cpp @@ -45,7 +45,7 @@ LocaleGlobal::Location::pretty( const QString& s ) QString -LocaleGlobal::Location::comment() +LocaleGlobal::Location::comment() const { QTimeZone qtz = QTimeZone( QString( "%1/%2" ) .arg( region ) diff --git a/src/modules/locale/timezonewidget/localeglobal.h b/src/modules/locale/timezonewidget/localeglobal.h index b55683006..5bacffc47 100644 --- a/src/modules/locale/timezonewidget/localeglobal.h +++ b/src/modules/locale/timezonewidget/localeglobal.h @@ -46,7 +46,7 @@ public: QString region, zone; double latitude, longitude; static QString pretty( const QString& s ); - QString comment(); + QString comment() const; }; static void init();