summaryrefslogtreecommitdiffstats
path: root/src/errordialoghandler.h
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2018-05-22 01:49:29 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2018-05-24 22:54:48 +0200
commitcc324914c03110556934184e836246dccb652e2c (patch)
treea558144f6ae5030b452d2afe1d136958797dd7cf /src/errordialoghandler.h
parent5c3b3b324eed66976bbc9cac8336f68cf8608493 (diff)
Use const QString& in some places
Diffstat (limited to 'src/errordialoghandler.h')
-rw-r--r--src/errordialoghandler.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/errordialoghandler.h b/src/errordialoghandler.h
index 1dcd2706e7..77762dece7 100644
--- a/src/errordialoghandler.h
+++ b/src/errordialoghandler.h
@@ -46,10 +46,10 @@ typedef enum {
class ErrorDialogProperties {
public:
/** Set the window title. ("Mixxx" is always prepended.) */
- void setTitle(QString title);
+ void setTitle(const QString& title);
/** Set a key to prevent multiple dialogs until the first is closed */
- inline void setKey(QString key) {
+ inline void setKey(const QString& key) {
m_key = key;
}
@@ -58,18 +58,18 @@ class ErrorDialogProperties {
}
/** Set the primary window text */
- void setText(QString text);
+ void setText(const QString& text);
QString getText() const {
return m_text;
}
/** Set additional window text */
- inline void setInfoText(QString text) {
+ inline void setInfoText(const QString& text) {
m_infoText = text;
}
/** Set detailed text (causes "Show Details" button to appear.) */
- inline void setDetails(QString text) {
+ inline void setDetails(const QString& text) {
m_details = text;
}
@@ -152,7 +152,7 @@ class ErrorDialogHandler : public QObject {
// (or title if no key) is already displayed. If shouldQuit is true, Mixxx
// will shut down.
bool requestErrorDialog(DialogType type, QString message,
- bool shouldQuit=false);
+ bool shouldQuit = false);
bool requestErrorDialog(ErrorDialogProperties* props);
// Allows a means for main() to skip exec() if there was a critical or fatal