From ae250db884dba00df5cca72599b44333cb11e8ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 May 2012 19:21:44 +0000 Subject: Lint. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4388 a436a847-0d15-0410-975c-d299462d15a1 --- raul/URI.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'raul/URI.hpp') diff --git a/raul/URI.hpp b/raul/URI.hpp index 6a6b532..1a1c9e6 100644 --- a/raul/URI.hpp +++ b/raul/URI.hpp @@ -36,7 +36,7 @@ class URI { public: class BadURI : public std::exception { public: - BadURI(const std::string& uri) : _uri(uri) {} + explicit BadURI(const std::string& uri) : _uri(uri) {} ~BadURI() throw() {} const char* what() const throw() { return _uri.c_str(); } private: @@ -48,7 +48,9 @@ public: * It is a fatal error to construct a URI from an invalid string, * use is_valid first to check. */ - URI(const std::basic_string& uri="nil:0") : _str(g_intern_string(uri.c_str())) { + URI(const std::basic_string& uri="nil:0") + : _str(g_intern_string(uri.c_str())) + { if (!is_valid(uri)) throw BadURI(uri); } @@ -58,7 +60,9 @@ public: * It is a fatal error to construct a URI from an invalid string, * use is_valid first to check. */ - URI(const char* uri) : _str(g_intern_string(uri)) { + URI(const char* uri) + : _str(g_intern_string(uri)) + { if (!is_valid(uri)) throw BadURI(uri); } -- cgit v1.2.1