Commit 43687100 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf
Browse files

cxx_helpers: url: Mark constructors as explicit

parent 4ae85635
......@@ -407,7 +407,7 @@ public:
class invalid : public std::runtime_error
{
public:
invalid( const char* url )
explicit invalid( const char* url )
: std::runtime_error( std::string{ "Invalid url: " } + url )
{
}
......@@ -420,13 +420,13 @@ public:
psz_host = nullptr;
}
url( const char* str )
explicit url( const char* str )
{
if ( vlc_UrlParse( this, str ) )
throw invalid( str );
}
url( const std::string& str )
explicit url( const std::string& str )
: url( str.c_str() )
{
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment