diff options
author | Mike Arthur <mike@kdab.net> | 2010-03-19 12:20:23 +0100 |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2010-03-19 12:20:23 +0100 |
commit | dc91a52952e1e6812f599d0f7228b33c3702e1f4 (patch) | |
tree | fee498df6ff253c96d1c8cd30b7206e249c0e682 | |
parent | fa393b2f059caf9e44f0b2e02128112b13b33d0b (diff) |
Take const QString& to setException instead of QString.
Merge-request: 1853
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
-rw-r--r-- | generator/abstractmetalang.h | 2 | ||||
-rw-r--r-- | generator/parser/codemodel.cpp | 2 | ||||
-rw-r--r-- | generator/parser/codemodel.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/generator/abstractmetalang.h b/generator/abstractmetalang.h index 80360d8..1344b9b 100644 --- a/generator/abstractmetalang.h +++ b/generator/abstractmetalang.h @@ -499,7 +499,7 @@ public: void setConstant(bool constant) { m_constant = constant; } QString exception() const { return m_exception; } - void setException(QString type) { m_exception = type; } + void setException(const QString &exception) { m_exception = exception; } QString toString() const { return m_name; } diff --git a/generator/parser/codemodel.cpp b/generator/parser/codemodel.cpp index f709ffe..51b9b72 100644 --- a/generator/parser/codemodel.cpp +++ b/generator/parser/codemodel.cpp @@ -665,7 +665,7 @@ QString _FunctionModelItem::exception() const return _M_exception; } -void _FunctionModelItem::setException(QString exception) +void _FunctionModelItem::setException(const QString &exception) { _M_exception = exception; } diff --git a/generator/parser/codemodel.h b/generator/parser/codemodel.h index 999b60d..c1b040a 100644 --- a/generator/parser/codemodel.h +++ b/generator/parser/codemodel.h @@ -542,7 +542,7 @@ public: void setFunctionType(CodeModel::FunctionType functionType); QString exception() const; - void setException(QString); + void setException(const QString &exception); bool isVirtual() const; void setVirtual(bool isVirtual); |