summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/pp-macro-expander.h
diff options
context:
space:
mode:
authorRoberto Raggi <qtc-committer@nokia.com>2008-12-22 13:55:42 +0100
committerRoberto Raggi <qtc-committer@nokia.com>2008-12-22 13:55:42 +0100
commite325aa38d91c9d11b9645004e786924c49e2b325 (patch)
tree0aebde517b65e7cd6292497c08564a544e4dc442 /src/libs/cplusplus/pp-macro-expander.h
parent1e0f06e4e821fa7eb6964d08b53b75494c54766b (diff)
downloadqt-creator-e325aa38d91c9d11b9645004e786924c49e2b325.tar.gz
Nicer implementation of CPlusPlus::Macro.
Diffstat (limited to 'src/libs/cplusplus/pp-macro-expander.h')
-rw-r--r--src/libs/cplusplus/pp-macro-expander.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/cplusplus/pp-macro-expander.h b/src/libs/cplusplus/pp-macro-expander.h
index 2959977bb1..3e6217476f 100644
--- a/src/libs/cplusplus/pp-macro-expander.h
+++ b/src/libs/cplusplus/pp-macro-expander.h
@@ -88,6 +88,10 @@ namespace CPlusPlus {
const char *operator () (const char *first, const char *last,
QByteArray *result);
+ const char *operator () (const QByteArray &source,
+ QByteArray *result)
+ { return operator()(source.constBegin(), source.constEnd(), result); }
+
const char *skip_argument_variadics (const QVector<QByteArray> &actuals,
Macro *macro,
const char *first, const char *last);