From 7d560240fae18afa385b868f17121f80f33bfbb2 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 2 Nov 2011 10:58:06 +0100 Subject: Windows platform plugin: Fix compiler warnings. Change-Id: Id7111ca74455b93aabb803babff51c4393508dbc Reviewed-by: Oliver Wolff --- src/plugins/platforms/windows/qwindowsintegration.cpp | 3 +-- src/plugins/platforms/windows/qwindowsscreen.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/platforms/windows/qwindowsintegration.cpp b/src/plugins/platforms/windows/qwindowsintegration.cpp index 28506771ee..1d10141256 100644 --- a/src/plugins/platforms/windows/qwindowsintegration.cpp +++ b/src/plugins/platforms/windows/qwindowsintegration.cpp @@ -161,8 +161,7 @@ struct QWindowsIntegrationPrivate }; QWindowsIntegrationPrivate::QWindowsIntegrationPrivate() - : m_eventDispatcher(new QWindowsGuiEventDispatcher) - , m_fontDatabase(0) + : m_fontDatabase(0), m_eventDispatcher(new QWindowsGuiEventDispatcher) { } diff --git a/src/plugins/platforms/windows/qwindowsscreen.cpp b/src/plugins/platforms/windows/qwindowsscreen.cpp index c6784e5bf3..96f3917cf4 100644 --- a/src/plugins/platforms/windows/qwindowsscreen.cpp +++ b/src/plugins/platforms/windows/qwindowsscreen.cpp @@ -102,7 +102,7 @@ BOOL QT_WIN_CALLBACK monitorEnumCallback(HMONITOR hMonitor, HDC, LPRECT, LPARAM data.physicalSizeMM = QSizeF(GetDeviceCaps(hdc, HORZSIZE), GetDeviceCaps(hdc, VERTSIZE)); DeleteDC(hdc); } else { - qWarning("%s: Unable to obtain handle for monitor '%s', defaulting to %d DPI.", + qWarning("%s: Unable to obtain handle for monitor '%s', defaulting to %g DPI.", __FUNCTION__, qPrintable(QString::fromWCharArray(info.szDevice)), data.dpi.first); } -- cgit v1.2.3