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
d6a0fc6f
"git@developer.sourcefind.cn:gaoqiong/composable_kernel.git" did not exist on "44bea92ec89debc6c55816c0b6eaecbc87cc03f8"
Commit
d6a0fc6f
authored
Jan 25, 2012
by
Jesse Beder
Browse files
Fixed warning about binary's shadowing members functions
parent
5d6e09d6
Changes
1
Hide 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 @
d6a0fc6f
...
@@ -18,7 +18,7 @@ namespace YAML
...
@@ -18,7 +18,7 @@ namespace YAML
class
Binary
{
class
Binary
{
public:
public:
Binary
()
:
m_unownedData
(
0
),
m_unownedSize
(
0
)
{}
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
;
}
bool
owned
()
const
{
return
!
m_unownedData
;
}
std
::
size_t
size
()
const
{
return
owned
()
?
m_data
.
size
()
:
m_unownedSize
;
}
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