make single paramter c'tors explicit (thx flint)

This commit is contained in:
Dennis Luxen 2014-04-16 16:13:48 +02:00
parent ee4ecb9783
commit be8810077a
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 {
public:
IniFile(const char * config_filename);
explicit IniFile(const char * config_filename);
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 {
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() {