aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Visual/projectm
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-13 10:46:51 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-13 10:46:51 +0000
commit6cf6bc2f667ea229d3864a8767982bdecab7b146 (patch)
treeafd9602f80bad18e6c69d74feb9d85c561cf65ff /src/plugins/Visual/projectm
parent90dedc4493d21f3057d86ce4289eee6471a243b5 (diff)
downloadqmmp-6cf6bc2f667ea229d3864a8767982bdecab7b146.tar.gz
qmmp-6cf6bc2f667ea229d3864a8767982bdecab7b146.tar.bz2
qmmp-6cf6bc2f667ea229d3864a8767982bdecab7b146.zip
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9472 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Visual/projectm')
-rw-r--r--src/plugins/Visual/projectm/projectmwidget.h2
-rw-r--r--src/plugins/Visual/projectm/projectmwrapper.cpp4
-rw-r--r--src/plugins/Visual/projectm/projectmwrapper.h4
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();