Commit 6bae47c5 authored by Aurindam Jana's avatar Aurindam Jana

ConsoleItem: Return copy of QString instead of ref

Change-Id: Ibe8d5aa103c2fd4c40fe4be8445e49ca822049a3
Reviewed-by: default avatarAurindam Jana <aurindam.jana@digia.com>
parent deb7005b
...@@ -144,7 +144,7 @@ void ConsoleItem::setText(const QString &text) ...@@ -144,7 +144,7 @@ void ConsoleItem::setText(const QString &text)
} }
} }
const QString &ConsoleItem::text() const QString ConsoleItem::text() const
{ {
return m_text; return m_text;
} }
......
...@@ -66,7 +66,7 @@ public: ...@@ -66,7 +66,7 @@ public:
bool detachChild(int position); bool detachChild(int position);
int childNumber() const; int childNumber() const;
void setText(const QString &text); void setText(const QString &text);
const QString &text() const; QString text() const;
QString expression() const; QString expression() const;
private: private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment