Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
b218787b
Commit
b218787b
authored
Sep 14, 2019
by
Andy Maloney
Committed by
Jesse Beder
Sep 14, 2019
Browse files
Remove extraneous conversion from string -> c_str -> string (#739)
parent
db0bda70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/yaml-cpp/exceptions.h
include/yaml-cpp/exceptions.h
+1
-1
No files found.
include/yaml-cpp/exceptions.h
View file @
b218787b
...
@@ -160,7 +160,7 @@ class YAML_CPP_API Exception : public std::runtime_error {
...
@@ -160,7 +160,7 @@ class YAML_CPP_API Exception : public std::runtime_error {
static
const
std
::
string
build_what
(
const
Mark
&
mark
,
static
const
std
::
string
build_what
(
const
Mark
&
mark
,
const
std
::
string
&
msg
)
{
const
std
::
string
&
msg
)
{
if
(
mark
.
is_null
())
{
if
(
mark
.
is_null
())
{
return
msg
.
c_str
()
;
return
msg
;
}
}
std
::
stringstream
output
;
std
::
stringstream
output
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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