aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/qsui/eqpreset.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-02 19:12:15 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-02 19:12:15 +0000
commit48c7312f4ba78ccf2947a9b4b0e6fd2bcdcb3066 (patch)
tree8ab83d262aee3e16298c431608ed7ff8873dfb59 /src/plugins/Ui/qsui/eqpreset.cpp
parent7596bcb971e27330e089a7067b024e476b2ce15e (diff)
downloadqmmp-48c7312f4ba78ccf2947a9b4b0e6fd2bcdcb3066.tar.gz
qmmp-48c7312f4ba78ccf2947a9b4b0e6fd2bcdcb3066.tar.bz2
qmmp-48c7312f4ba78ccf2947a9b4b0e6fd2bcdcb3066.zip
improved coding style
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9614 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/qsui/eqpreset.cpp')
-rw-r--r--src/plugins/Ui/qsui/eqpreset.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/Ui/qsui/eqpreset.cpp b/src/plugins/Ui/qsui/eqpreset.cpp
index 08bcf3f6f..e7a8563e4 100644
--- a/src/plugins/Ui/qsui/eqpreset.cpp
+++ b/src/plugins/Ui/qsui/eqpreset.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2013 by Ilya Kotov *
+ * Copyright (C) 2013-2021 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -20,11 +20,7 @@
#include "eqpreset.h"
EQPreset::EQPreset()
-{
- m_preamp = 0;
- for(int i = 0; i < 10; ++i)
- m_bands[i] = 0;
-}
+{}
EQPreset::~EQPreset()
@@ -42,14 +38,14 @@ void EQPreset::setPreamp(double preamp)
m_preamp = preamp;
}
-double EQPreset::gain(int n)
+double EQPreset::gain(int n) const
{
if(n > 14 || n < 0)
return 0;
return m_bands[n];
}
-double EQPreset::preamp()
+double EQPreset::preamp() const
{
return m_preamp;
}