diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2018-05-22 01:49:29 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2018-05-24 22:54:48 +0200 |
commit | cc324914c03110556934184e836246dccb652e2c (patch) | |
tree | a558144f6ae5030b452d2afe1d136958797dd7cf /src/errordialoghandler.cpp | |
parent | 5c3b3b324eed66976bbc9cac8336f68cf8608493 (diff) |
Use const QString& in some places
Diffstat (limited to 'src/errordialoghandler.cpp')
-rw-r--r-- | src/errordialoghandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errordialoghandler.cpp b/src/errordialoghandler.cpp index 4b29fff0cc..838fa0dcb8 100644 --- a/src/errordialoghandler.cpp +++ b/src/errordialoghandler.cpp @@ -35,11 +35,11 @@ ErrorDialogProperties::ErrorDialogProperties() m_escapeButton(QMessageBox::NoButton) { } -void ErrorDialogProperties::setTitle(QString title) { +void ErrorDialogProperties::setTitle(const QString& title) { m_title.append(" - ").append(title); } -void ErrorDialogProperties::setText(QString text) { +void ErrorDialogProperties::setText(const QString& text) { // If no key is set, use this window text since it is likely to be unique if (m_key.isEmpty()) m_key = text; m_text = text; |