make single paramter c'tors explicit (thx flint)

This commit is contained in:
Dennis Luxen 2014-04-16 16:13:48 +02:00
parent 1222aa6d25
commit 3368b492b9
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
class IniFile { class IniFile {
public: public:
IniFile(const char * config_filename); explicit IniFile(const char * config_filename);
std::string GetParameter(const std::string & key); std::string GetParameter(const std::string & key);

View File

@ -33,8 +33,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
class OSRMException: public std::exception { class OSRMException: public std::exception {
public: public:
OSRMException(const char * message) : message(message) {} explicit OSRMException(const char * message) : message(message) {}
OSRMException(const std::string & message) : message(message) {} explicit OSRMException(const std::string & message) : message(message) {}
virtual ~OSRMException() throw() {} virtual ~OSRMException() throw() {}
private: private:
virtual const char* what() const throw() { virtual const char* what() const throw() {