summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qpagesetupdialog_win.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-15 16:05:01 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-16 11:18:04 (GMT)
commit1d45cf765ab467e6a0f9302eaf65b18419858aac (patch)
tree9da093eccc643f3d903eeb5d7a9a499d0a835b7d /src/gui/dialogs/qpagesetupdialog_win.cpp
parentb49a69f58346bcdf395840d5345ea32a144bfb50 (diff)
downloadQt-1d45cf765ab467e6a0f9302eaf65b18419858aac.zip
Qt-1d45cf765ab467e6a0f9302eaf65b18419858aac.tar.gz
Qt-1d45cf765ab467e6a0f9302eaf65b18419858aac.tar.bz2
Fix warnings for mingw
Diffstat (limited to 'src/gui/dialogs/qpagesetupdialog_win.cpp')
-rw-r--r--src/gui/dialogs/qpagesetupdialog_win.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/dialogs/qpagesetupdialog_win.cpp b/src/gui/dialogs/qpagesetupdialog_win.cpp
index a84a7ce..3f2fb34 100644
--- a/src/gui/dialogs/qpagesetupdialog_win.cpp
+++ b/src/gui/dialogs/qpagesetupdialog_win.cpp
@@ -78,8 +78,8 @@ int QPageSetupDialog::exec()
psd.lStructSize = sizeof(PAGESETUPDLG);
// we need a temp DEVMODE struct if we don't have a global DEVMODE
- HGLOBAL hDevMode;
- int devModeSize;
+ HGLOBAL hDevMode = 0;
+ int devModeSize = 0;
if (!ep->globalDevMode) {
devModeSize = sizeof(DEVMODE) + ep->devMode->dmDriverExtra;
hDevMode = GlobalAlloc(GHND, devModeSize);