Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Samo Golež
VLC
Commits
43687100
Commit
43687100
authored
May 18, 2021
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
May 19, 2021
Browse files
cxx_helpers: url: Mark constructors as explicit
parent
4ae85635
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/vlc_cxx_helpers.hpp
View file @
43687100
...
...
@@ -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
()
)
{
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment