summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-06-15 15:33:09 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-06-15 15:33:09 (GMT)
commit40c70459b40e4e54c2cf515f502824c8d191626b (patch)
tree0e6e45e31247bd88f484703a3edb06b01ed03f12 /src/gui
parente19b6451796d136f1b5796c3afc5fd5492f3dac0 (diff)
downloadQt-40c70459b40e4e54c2cf515f502824c8d191626b.zip
Qt-40c70459b40e4e54c2cf515f502824c8d191626b.tar.gz
Qt-40c70459b40e4e54c2cf515f502824c8d191626b.tar.bz2
Remove compiler warning on Qt/Windows
The QFileDialogPrivate constructor must be non-inline. RevBy: Harald Fernengel
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/image/qpicture.cpp12
-rw-r--r--src/gui/image/qpicture_p.h2
2 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/image/qpicture.cpp b/src/gui/image/qpicture.cpp
index 8528173..a16305e 100644
--- a/src/gui/image/qpicture.cpp
+++ b/src/gui/image/qpicture.cpp
@@ -1041,6 +1041,18 @@ QPicture& QPicture::operator=(const QPicture &p)
/*!
\internal
+ Constructs a QPicturePrivate
+*/
+QPicturePrivate::QPicturePrivate()
+ : in_memory_only(false),
+ q_ptr(0)
+{
+ ref = 1;
+}
+
+/*!
+ \internal
+
Sets formatOk to false and resets the format version numbers to default
*/
diff --git a/src/gui/image/qpicture_p.h b/src/gui/image/qpicture_p.h
index e0c3117..373ff15 100644
--- a/src/gui/image/qpicture_p.h
+++ b/src/gui/image/qpicture_p.h
@@ -143,7 +143,7 @@ public:
PdcReservedStop = 199 // for Qt
};
- inline QPicturePrivate() : in_memory_only(false), q_ptr(0) { ref = 1; }
+ QPicturePrivate();
QAtomicInt ref;
bool checkFormat();