aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-23 16:54:40 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-02-23 16:54:40 -0300
commit8b21935e055b2761cea73d2c5f9e2b23409ac3c2 (patch)
tree55630f4f130bc4fb06809f8060cba9fa6d6570c6 /shibokengenerator.h
parent1195a4e8cf7319f9bd4da248ff48e2cd0fa193bc (diff)
Pass QStrings by const references instead of by value.
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r--shibokengenerator.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h
index 357a40a2d..9f7c6e6f9 100644
--- a/shibokengenerator.h
+++ b/shibokengenerator.h
@@ -199,17 +199,16 @@ public:
/// Simpler version of writeBaseConversion, uses only the base name of the type.
void writeBaseConversion(QTextStream& s, const TypeEntry* type);
void writeToPythonConversion(QTextStream& s, const AbstractMetaType* type,
- const AbstractMetaClass* context, QString argumentName = QString());
+ const AbstractMetaClass* context, const QString& argumentName = QString());
void writeToCppConversion(QTextStream& s, const AbstractMetaType* type,
- const AbstractMetaClass* context, QString argumentName);
-
+ const AbstractMetaClass* context, const QString& argumentName);
/// Verifies if the class should have a C++ wrapper generated for it, instead of only a Python wrapper.
static bool shouldGenerateCppWrapper(const AbstractMetaClass* metaClass);
static QString wrapperName(const AbstractMetaClass* metaClass);
- static QString pythonPrimitiveTypeName(QString cppTypeName);
+ static QString pythonPrimitiveTypeName(const QString& cppTypeName);
static QString pythonPrimitiveTypeName(const PrimitiveTypeEntry* type);
static QString pythonOperatorFunctionName(QString cppOpFuncName);
@@ -280,7 +279,7 @@ public:
QString getApiExportMacro() const;
/// Returns the file name for the module global header. If no module name is provided the current will be used.
- QString getModuleHeaderFileName(QString moduleName = QString()) const;
+ QString getModuleHeaderFileName(const QString& moduleName = QString()) const;
QMap< QString, QString > options() const;