summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-07 17:55:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-07 21:38:21 +0300
commitffeffa2314dbe03e0ced58e0c465760b54908690 (patch)
tree3da4d65e43a4b55aed7c01ec612c9dec50d1bd1c /src/resources
parentae550d179c25e149f7e8a8d70011b364fb0d85d6 (diff)
downloadplus-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.gz
plus-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.bz2
plus-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.xz
plus-ffeffa2314dbe03e0ced58e0c465760b54908690.zip
fix cide style.
Add explicit keyword to some constructors.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/dye.h2
-rw-r--r--src/resources/sdlmusic.h2
-rw-r--r--src/resources/soundeffect.h2
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)
{ }