diff options
Diffstat (limited to 'src/plugins/Visual/projectm')
| -rw-r--r-- | src/plugins/Visual/projectm/projectmwidget.h | 2 | ||||
| -rw-r--r-- | src/plugins/Visual/projectm/projectmwrapper.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/Visual/projectm/projectmwrapper.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/Visual/projectm/projectmwidget.h b/src/plugins/Visual/projectm/projectmwidget.h index 7dbdc2594..d67742a07 100644 --- a/src/plugins/Visual/projectm/projectmwidget.h +++ b/src/plugins/Visual/projectm/projectmwidget.h @@ -35,7 +35,7 @@ class ProjectMWidget : public QOpenGLWidget { Q_OBJECT public: - ProjectMWidget(QListWidget *listWidget, QWidget *parent = nullptr); + explicit ProjectMWidget(QListWidget *listWidget, QWidget *parent = nullptr); ~ProjectMWidget(); diff --git a/src/plugins/Visual/projectm/projectmwrapper.cpp b/src/plugins/Visual/projectm/projectmwrapper.cpp index 5078cffe2..16449a432 100644 --- a/src/plugins/Visual/projectm/projectmwrapper.cpp +++ b/src/plugins/Visual/projectm/projectmwrapper.cpp @@ -20,12 +20,12 @@ #include "projectmwrapper.h" -ProjectMWrapper::ProjectMWrapper(std::string config_file, int flags, QObject *parent) : +ProjectMWrapper::ProjectMWrapper(const std::string &config_file, int flags, QObject *parent) : QObject(parent), projectM(config_file, flags) { } -ProjectMWrapper::ProjectMWrapper(projectM::Settings settings, int flags, QObject *parent) : +ProjectMWrapper::ProjectMWrapper(const projectM::Settings &settings, int flags, QObject *parent) : QObject(parent), projectM(settings, flags) { } diff --git a/src/plugins/Visual/projectm/projectmwrapper.h b/src/plugins/Visual/projectm/projectmwrapper.h index 99b226ac7..fead927ed 100644 --- a/src/plugins/Visual/projectm/projectmwrapper.h +++ b/src/plugins/Visual/projectm/projectmwrapper.h @@ -28,8 +28,8 @@ class ProjectMWrapper : public QObject, public projectM { Q_OBJECT public: - explicit ProjectMWrapper(std::string config_file, int flags, QObject *parent = nullptr); - explicit ProjectMWrapper(Settings settings, int flags, QObject *parent = nullptr); + explicit ProjectMWrapper(const std::string &config_file, int flags, QObject *parent = nullptr); + explicit ProjectMWrapper(const Settings &settings, int flags, QObject *parent = nullptr); virtual ~ProjectMWrapper(); |
