Getters of complex types should be const reference if possible
This commit is contained in:
@@ -49,7 +49,7 @@ public:
|
||||
return *image;
|
||||
}
|
||||
|
||||
QString& getText() {
|
||||
const QString& getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
return m_isImage;
|
||||
}
|
||||
|
||||
QString& copyText() {
|
||||
const QString& copyText() {
|
||||
return m_copyText;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public:
|
||||
return m_type;
|
||||
}
|
||||
|
||||
QString& tooltip() {
|
||||
const QString& tooltip() {
|
||||
return m_tooltip;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user