diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-10-27 15:56:58 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:08:54 -0300 |
commit | b8b6a8b0316668a8af08b651537747ede08e0c96 (patch) | |
tree | 7ee93de70987688fc76eeeee77b711dbafa1aeda /generator/cppgenerator.h | |
parent | 34cce54d695330ebfa047dbbb4c1c0ab60e22c74 (diff) |
Simplifies the generated code removing the use of std::auto_ptr.
Diffstat (limited to 'generator/cppgenerator.h')
-rw-r--r-- | generator/cppgenerator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/cppgenerator.h b/generator/cppgenerator.h index b356ca873..645f63fd2 100644 --- a/generator/cppgenerator.h +++ b/generator/cppgenerator.h @@ -83,14 +83,14 @@ private: * \param defaultValue an optional default value to be used instead of the conversion result */ void writeArgumentConversion(QTextStream& s, const AbstractMetaType* argType, - QString argName, QString pyArgName, + const QString& argName, const QString& pyArgName, const AbstractMetaClass* context = 0, - QString defaultValue = QString()); + const QString& defaultValue = QString()); /// Convenience method to call writeArgumentConversion with an AbstractMetaArgument instead of an AbstractMetaType. void writeArgumentConversion(QTextStream& s, const AbstractMetaArgument* arg, - QString argName, QString pyArgName, + const QString& argName, const QString& pyArgName, const AbstractMetaClass* context = 0, - QString defaultValue = QString()) + const QString& defaultValue = QString()) { writeArgumentConversion(s, arg->type(), argName, pyArgName, context, defaultValue); } |