summaryrefslogtreecommitdiffstats
path: root/src/tools/moc/generator.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-02-18 18:51:46 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-20 11:28:04 +0100
commitfec37f0e9a9e4c18fd20f7b39919f08c7cb2139e (patch)
tree8c80d55b8223cc2dd92fcc1e639cdf0b178269d2 /src/tools/moc/generator.h
parentcbe21c59a05ceb357c1a6bd2a84480dab0e79ea0 (diff)
moc: Get rid of implicit conversions to const char *
moc mostly operates on QByteArrays. When an actual const char * is needed, it should be explicit. Change-Id: I0b3e262830128306688f4512a4b59ce8966c2579 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/tools/moc/generator.h')
-rw-r--r--src/tools/moc/generator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/moc/generator.h b/src/tools/moc/generator.h
index 6682e1a36a..4e96511695 100644
--- a/src/tools/moc/generator.h
+++ b/src/tools/moc/generator.h
@@ -65,7 +65,7 @@ private:
void generateSignal(FunctionDef *def, int index);
void generatePluginMetaData();
- int strreg(const char *); // registers a string and returns its id
+ int strreg(const QByteArray &); // registers a string and returns its id
QList<QByteArray> strings;
QByteArray purestSuperClass;
QList<QByteArray> metaTypes;