summaryrefslogtreecommitdiff
path: root/src/shared/proparser/proitems.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-08-21 19:23:53 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-08-28 14:34:20 +0200
commitd97de7e43f6432a0c4a611c7268d06cd3741593d (patch)
treef067d9e850bf752e844419951cbce25681205f73 /src/shared/proparser/proitems.h
parentfddd20ffad95b8cc92fb3eeb010953be22ab6120 (diff)
downloadqt-creator-d97de7e43f6432a0c4a611c7268d06cd3741593d.tar.gz
make ProString c'tors explicit only when not building qmake
otherwise it's impossible to migrate the qmake generators to this. Change-Id: I70c848da2ce428706b960c3c1434c26f7e3a9447 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/shared/proparser/proitems.h')
-rw-r--r--src/shared/proparser/proitems.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/shared/proparser/proitems.h b/src/shared/proparser/proitems.h
index 3b52de6c4d..52cd76a371 100644
--- a/src/shared/proparser/proitems.h
+++ b/src/shared/proparser/proitems.h
@@ -52,6 +52,12 @@ private:
};
#endif
+#ifndef QT_BUILD_QMAKE
+# define PROITEM_EXPLICIT explicit
+#else
+# define PROITEM_EXPLICIT
+#endif
+
class ProKey;
class ProStringList;
class ProFile;
@@ -60,8 +66,8 @@ class ProString {
public:
ProString();
ProString(const ProString &other);
- explicit ProString(const QString &str);
- explicit ProString(const char *str);
+ PROITEM_EXPLICIT ProString(const QString &str);
+ PROITEM_EXPLICIT ProString(const char *str);
ProString(const QString &str, int offset, int length);
void setValue(const QString &str);
ProString &setSource(const ProString &other) { m_file = other.m_file; return *this; }
@@ -122,7 +128,7 @@ class ProKey : public ProString {
public:
ALWAYS_INLINE ProKey() : ProString() {}
explicit ProKey(const QString &str);
- explicit ProKey(const char *str);
+ PROITEM_EXPLICIT ProKey(const char *str);
ProKey(const QString &str, int off, int len);
ProKey(const QString &str, int off, int len, uint hash);
void setValue(const QString &str);