make single paramter c'tors explicit (thx flint)
This commit is contained in:
		
							parent
							
								
									1222aa6d25
								
							
						
					
					
						commit
						3368b492b9
					
				| @ -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); | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -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() { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user