summaryrefslogtreecommitdiff
path: root/src/gui/setup_audio.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-07 22:09:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-07 22:09:11 +0300
commitb7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (patch)
treeee27a5a1ace7e5dbc588466dc623013e4d5cea99 /src/gui/setup_audio.cpp
parent7d3059516fc25134d0d29b497e546f2846162399 (diff)
downloadplus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.gz
plus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.bz2
plus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.xz
plus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.zip
Improve constructors in some classes.
Diffstat (limited to 'src/gui/setup_audio.cpp')
-rw-r--r--src/gui/setup_audio.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp
index b649bc23d..27fceee92 100644
--- a/src/gui/setup_audio.cpp
+++ b/src/gui/setup_audio.cpp
@@ -39,7 +39,8 @@
class SoundsModel : public NamesModel
{
public:
- SoundsModel()
+ SoundsModel() :
+ NamesModel()
{
mNames.push_back(gettext("(no sound)"));
Theme::fillSoundsList(mNames);
@@ -49,7 +50,10 @@ public:
{ }
};
-Setup_Audio::Setup_Audio()
+Setup_Audio::Setup_Audio() :
+ SetupTabScroll(),
+ mSoundModel(new SoundsModel()),
+ mChannelsList(new SetupItemNames())
{
setName(_("Audio"));
@@ -58,8 +62,6 @@ Setup_Audio::Setup_Audio()
ContainerPlacer place = h.getPlacer(0, 0);
place(0, 0, mScroll, 10, 10);
- mSoundModel = new SoundsModel();
-
new SetupItemLabel(_("Basic settings"), "", this);
new SetupItemCheckBox(_("Enable Audio"), "", "sound", this, "soundEvent");
@@ -82,7 +84,6 @@ Setup_Audio::Setup_Audio()
new SetupItemIntTextField(_("Audio frequency"), "",
"audioFrequency", this, "audioFrequencyEvent", 14000, 192000);
- mChannelsList = new SetupItemNames();
mChannelsList->push_back(_("mono"));
mChannelsList->push_back(_("stereo"));
mChannelsList->push_back(_("surround"));