diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-09 11:46:41 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-09 11:46:41 (GMT) |
commit | f38f61df31b708e1f4e50c5fdcc30099f9a1fe8f (patch) | |
tree | 86001437916e0d497483aec61f4ed191e5b66f9d /tools/designer/src/lib/shared/iconloader.cpp | |
parent | 16f89107f9c8019b05d5ccee1b6deccfdff6f98e (diff) | |
download | Qt-f38f61df31b708e1f4e50c5fdcc30099f9a1fe8f.zip Qt-f38f61df31b708e1f4e50c5fdcc30099f9a1fe8f.tar.gz Qt-f38f61df31b708e1f4e50c5fdcc30099f9a1fe8f.tar.bz2 |
Fix warnings ~QX11PixmapData(): QPixmap objects must be destroyed..
Reviewed-by: Trond Kjernåsen <trond@trolltech.com>
Task-number: QTBUG-8046
Diffstat (limited to 'tools/designer/src/lib/shared/iconloader.cpp')
-rw-r--r-- | tools/designer/src/lib/shared/iconloader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/designer/src/lib/shared/iconloader.cpp b/tools/designer/src/lib/shared/iconloader.cpp index df0bb7e..ed312b8 100644 --- a/tools/designer/src/lib/shared/iconloader.cpp +++ b/tools/designer/src/lib/shared/iconloader.cpp @@ -70,8 +70,7 @@ QDESIGNER_SHARED_EXPORT QIcon createIconSet(const QString &name) QDESIGNER_SHARED_EXPORT QIcon emptyIcon() { - static const QIcon empty_icon(QLatin1String(":/trolltech/formeditor/images/emptyicon.png")); - return empty_icon; + return QIcon(QLatin1String(":/trolltech/formeditor/images/emptyicon.png")); } } // namespace qdesigner_internal |