diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-07-18 14:03:54 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-07-23 08:38:19 +0200 |
commit | fa9c133cc3799bfcf027e6b3d4983bd4cfd5db6d (patch) | |
tree | 8a7777e2d32ac8346a1bf59b5e711ca74e66dc70 /src/shared/qwaylandmimehelper.cpp | |
parent | ede872db1cdfdc2810c2dd29edd5fb6e1cdac0f5 (diff) | |
download | qtwayland-fa9c133cc3799bfcf027e6b3d4983bd4cfd5db6d.tar.gz |
fix namespaced build
rule 1: QT_USE_NAMESPACE in qt code itself is a bad idea
rule 2: don't forget to forward-declare your non-qt types
Change-Id: Ifba69328f3451e708c26624f349485e7c61d31f5
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/shared/qwaylandmimehelper.cpp')
-rw-r--r-- | src/shared/qwaylandmimehelper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/qwaylandmimehelper.cpp b/src/shared/qwaylandmimehelper.cpp index d7e51144..94a107c8 100644 --- a/src/shared/qwaylandmimehelper.cpp +++ b/src/shared/qwaylandmimehelper.cpp @@ -46,7 +46,7 @@ #include <QBuffer> #include <QImageWriter> -QT_USE_NAMESPACE +QT_BEGIN_NAMESPACE QByteArray QWaylandMimeHelper::getByteArray(QMimeData *mimeData, const QString &mimeType) { @@ -83,3 +83,5 @@ QByteArray QWaylandMimeHelper::getByteArray(QMimeData *mimeData, const QString & } return content; } + +QT_END_NAMESPACE |