From 1575174ab1c1f97d1ed7daebc0d4d9fc62812c63 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 1 Aug 2013 21:36:52 +0200 Subject: [PATCH] Avoid g++isms --- src/libtomahawk/utils/DpiScaler.cpp | 6 +++++- src/libtomahawk/utils/DpiScaler.h | 6 +----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libtomahawk/utils/DpiScaler.cpp b/src/libtomahawk/utils/DpiScaler.cpp index 4afbf822b..140095ce7 100644 --- a/src/libtomahawk/utils/DpiScaler.cpp +++ b/src/libtomahawk/utils/DpiScaler.cpp @@ -22,7 +22,11 @@ namespace TomahawkUtils { - +#ifdef Q_OS_MAC + const qreal DpiScaler::s_baseDpi = 72.; +#else + const qreal DpiScaler::s_baseDpi = 96.; +#endif DpiScaler::DpiScaler( const QPaintDevice* that ) : that( that ) diff --git a/src/libtomahawk/utils/DpiScaler.h b/src/libtomahawk/utils/DpiScaler.h index 640d38c99..0876e718a 100644 --- a/src/libtomahawk/utils/DpiScaler.h +++ b/src/libtomahawk/utils/DpiScaler.h @@ -64,11 +64,7 @@ private: const QPaintDevice* that; -#ifdef Q_OS_MAC - static const qreal s_baseDpi = 72.; -#else - static const qreal s_baseDpi = 96.; -#endif + static const qreal s_baseDpi; }; }