From be8810077ac8560e89c47c1bb4c850fdfa7c62c5 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 16 Apr 2014 16:13:48 +0200 Subject: [PATCH] make single paramter c'tors explicit (thx flint) --- Util/IniFile.h | 2 +- Util/OSRMException.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Util/IniFile.h b/Util/IniFile.h index 0a9c26216..9ca85a3fe 100644 --- a/Util/IniFile.h +++ b/Util/IniFile.h @@ -35,7 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. class IniFile { public: - IniFile(const char * config_filename); + explicit IniFile(const char * config_filename); std::string GetParameter(const std::string & key); diff --git a/Util/OSRMException.h b/Util/OSRMException.h index 322124435..32597d357 100644 --- a/Util/OSRMException.h +++ b/Util/OSRMException.h @@ -33,8 +33,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. class OSRMException: public std::exception { public: - OSRMException(const char * message) : message(message) {} - OSRMException(const std::string & message) : message(message) {} + explicit OSRMException(const char * message) : message(message) {} + explicit OSRMException(const std::string & message) : message(message) {} virtual ~OSRMException() throw() {} private: virtual const char* what() const throw() {