From ffeffa2314dbe03e0ced58e0c465760b54908690 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Apr 2013 17:55:36 +0300 Subject: fix cide style. Add explicit keyword to some constructors. --- src/resources/dye.h | 2 +- src/resources/sdlmusic.h | 2 +- src/resources/soundeffect.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources') 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) { } -- cgit v1.2.3-70-g09d2