summaryrefslogtreecommitdiff
path: root/src/resources/db/sounddb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-06 22:41:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-07 02:07:03 +0300
commita51da75e329df773a01e963c3a27e72cf487138c (patch)
treec48d7c682be1104138dd16daa75fd12a3fcae82b /src/resources/db/sounddb.cpp
parent4f7e38d218848bd34bd86dda75446881dad2bb32 (diff)
downloadmanaverse-a51da75e329df773a01e963c3a27e72cf487138c.tar.gz
manaverse-a51da75e329df773a01e963c3a27e72cf487138c.tar.bz2
manaverse-a51da75e329df773a01e963c3a27e72cf487138c.tar.xz
manaverse-a51da75e329df773a01e963c3a27e72cf487138c.zip
fix code style.
Diffstat (limited to 'src/resources/db/sounddb.cpp')
-rw-r--r--src/resources/db/sounddb.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/resources/db/sounddb.cpp b/src/resources/db/sounddb.cpp
index 17ff4bc71..7c9cd4c20 100644
--- a/src/resources/db/sounddb.cpp
+++ b/src/resources/db/sounddb.cpp
@@ -21,12 +21,10 @@
#include "resources/db/sounddb.h"
#include "configuration.h"
-#include "notifications.h"
#include "notifymanager.h"
-#include "utils/xml.h"
-
#include "resources/beingcommon.h"
+#include "resources/notifytypes.h"
#include "debug.h"
@@ -81,14 +79,14 @@ void SoundDB::loadXmlFile(const std::string &fileName)
void SoundDB::unload()
{
- mSounds.resize(NotifyManager::TYPE_END);
- for (int f = 0; f < NotifyManager::TYPE_END; f ++)
+ mSounds.resize(NotifyTypes::TYPE_END);
+ for (int f = 0; f < NotifyTypes::TYPE_END; f ++)
mSounds[f] = "";
}
std::string &SoundDB::getSound(const int id)
{
- if (id < 0 || id >= NotifyManager::TYPE_END)
+ if (id < 0 || id >= NotifyTypes::TYPE_END)
return mDefault;
return mSounds[id];
}