diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-06 22:41:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-07 02:07:03 +0300 |
commit | a51da75e329df773a01e963c3a27e72cf487138c (patch) | |
tree | c48d7c682be1104138dd16daa75fd12a3fcae82b /src/resources/db | |
parent | 4f7e38d218848bd34bd86dda75446881dad2bb32 (diff) | |
download | plus-a51da75e329df773a01e963c3a27e72cf487138c.tar.gz plus-a51da75e329df773a01e963c3a27e72cf487138c.tar.bz2 plus-a51da75e329df773a01e963c3a27e72cf487138c.tar.xz plus-a51da75e329df773a01e963c3a27e72cf487138c.zip |
fix code style.
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/sounddb.cpp | 10 |
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]; } |