mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Getters of complex types should be const reference if possible
This commit is contained in:
parent
8411d71741
commit
dc26c86268
1 changed files with 3 additions and 3 deletions
6
word.h
6
word.h
|
@ -49,7 +49,7 @@ public:
|
||||||
return *image;
|
return *image;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString& getText() {
|
const QString& getText() {
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ public:
|
||||||
return m_isImage;
|
return m_isImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString& copyText() {
|
const QString& copyText() {
|
||||||
return m_copyText;
|
return m_copyText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ public:
|
||||||
return m_type;
|
return m_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString& tooltip() {
|
const QString& tooltip() {
|
||||||
return m_tooltip;
|
return m_tooltip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue