diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-07 17:55:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-07 21:38:21 +0300 |
commit | ffeffa2314dbe03e0ced58e0c465760b54908690 (patch) | |
tree | 3da4d65e43a4b55aed7c01ec612c9dec50d1bd1c /src/resources | |
parent | ae550d179c25e149f7e8a8d70011b364fb0d85d6 (diff) | |
download | manaplus-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.gz manaplus-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.bz2 manaplus-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.xz manaplus-ffeffa2314dbe03e0ced58e0c465760b54908690.zip |
fix cide style.
Add explicit keyword to some constructors.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/dye.h | 2 | ||||
-rw-r--r-- | src/resources/sdlmusic.h | 2 | ||||
-rw-r--r-- | src/resources/soundeffect.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/dye.h b/src/resources/dye.h index 16f476399..557e8524e 100644 --- a/src/resources/dye.h +++ b/src/resources/dye.h @@ -102,7 +102,7 @@ class Dye final * The parts of string are separated by semi-colons. Each part starts * by an uppercase letter, followed by a colon and then a palette name. */ - Dye(const std::string &dye); + explicit Dye(const std::string &dye); A_DELETE_COPY(Dye) diff --git a/src/resources/sdlmusic.h b/src/resources/sdlmusic.h index 5b60ebb64..8d2b24044 100644 --- a/src/resources/sdlmusic.h +++ b/src/resources/sdlmusic.h @@ -73,7 +73,7 @@ class SDLMusic final : public Resource /** * Constructor. */ - SDLMusic(Mix_Music *const music); + explicit SDLMusic(Mix_Music *const music); Mix_Music *mMusic; }; diff --git a/src/resources/soundeffect.h b/src/resources/soundeffect.h index 50ddd562d..20164a397 100644 --- a/src/resources/soundeffect.h +++ b/src/resources/soundeffect.h @@ -69,7 +69,7 @@ class SoundEffect final : public Resource /** * Constructor. */ - SoundEffect(Mix_Chunk *const soundEffect) : + explicit SoundEffect(Mix_Chunk *const soundEffect) : Resource(), mChunk(soundEffect) { } |