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
d50fbf59
"vscode:/vscode.git/clone" did not exist on "97be66c358302caa81ddb3355eb83d863bfead21"
Commit
d50fbf59
authored
Jan 25, 2012
by
beder
Browse files
Fixed warning about binary's shadowing members functions
parent
8d0ee05d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/yaml-cpp/binary.h
include/yaml-cpp/binary.h
+1
-1
No files found.
include/yaml-cpp/binary.h
View file @
d50fbf59
...
...
@@ -16,7 +16,7 @@ namespace YAML
class
Binary
{
public:
Binary
()
:
m_unownedData
(
0
),
m_unownedSize
(
0
)
{}
Binary
(
const
unsigned
char
*
data
,
std
::
size_t
size
)
:
m_unownedData
(
data
),
m_unownedSize
(
size
)
{}
Binary
(
const
unsigned
char
*
data
_
,
std
::
size_t
size
_
)
:
m_unownedData
(
data
_
),
m_unownedSize
(
size
_
)
{}
bool
owned
()
const
{
return
!
m_unownedData
;
}
std
::
size_t
size
()
const
{
return
owned
()
?
m_data
.
size
()
:
m_unownedSize
;
}
...
...
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