summaryrefslogtreecommitdiff
path: root/src/soundmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-24 22:59:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-24 22:59:54 +0300
commit6ce49efadfadd8eacb048df274979736bb04daf0 (patch)
tree60d4c2c2a803db003f6fa28e932468e925112580 /src/soundmanager.cpp
parent466829aef10af6b95d0f443226e8549f4399b567 (diff)
downloadmanaverse-6ce49efadfadd8eacb048df274979736bb04daf0.tar.gz
manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.tar.bz2
manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.tar.xz
manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.zip
Improve string usage in some files.
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r--src/soundmanager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp
index b60e84ef3..62471f07d 100644
--- a/src/soundmanager.cpp
+++ b/src/soundmanager.cpp
@@ -227,7 +227,7 @@ void SoundManager::setSfxVolume(const int volume)
static SDLMusic *loadMusic(const std::string &fileName)
{
ResourceManager *const resman = ResourceManager::getInstance();
- return resman->getMusic(paths.getStringValue("music") + fileName);
+ return resman->getMusic(paths.getStringValue("music").append(fileName));
}
void SoundManager::playMusic(const std::string &fileName)
@@ -335,7 +335,7 @@ void SoundManager::playSfx(const std::string &path,
if (!path.compare(0, 4, "sfx/"))
tmpPath = path;
else
- tmpPath = paths.getValue("sfx", "sfx/") + path;
+ tmpPath = paths.getValue("sfx", "sfx/").append(path);
ResourceManager *const resman = ResourceManager::getInstance();
SoundEffect *const sample = resman->getSoundEffect(tmpPath);
if (sample)
@@ -362,8 +362,8 @@ void SoundManager::playSfx(const std::string &path,
void SoundManager::playGuiSound(const std::string &name)
{
- playGuiSfx(branding.getStringValue("systemsounds")
- + config.getStringValue(name) + ".ogg");
+ playGuiSfx(branding.getStringValue("systemsounds").append(
+ config.getStringValue(name)).append(".ogg"));
}
void SoundManager::playGuiSfx(const std::string &path)
@@ -375,7 +375,7 @@ void SoundManager::playGuiSfx(const std::string &path)
if (!path.compare(0, 4, "sfx/"))
tmpPath = path;
else
- tmpPath = paths.getValue("sfx", "sfx/") + path;
+ tmpPath = paths.getValue("sfx", "sfx/").append(path);
ResourceManager *const resman = ResourceManager::getInstance();
SoundEffect *const sample = resman->getSoundEffect(tmpPath);
if (sample)