Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
a129688a
Commit
a129688a
authored
Oct 26, 2009
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change name of input argument as 'in' is a reserved keyword in python.
parent
c1363bea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Utils.h
include/plist/Utils.h
+2
-2
Utils.cpp
src/Utils.cpp
+4
-4
No files found.
include/plist/Utils.h
View file @
a129688a
...
...
@@ -31,8 +31,8 @@ namespace PList
{
public
:
static
Node
*
FromPlist
(
plist_t
node
,
Node
*
parent
=
NULL
);
static
Structure
*
FromXml
(
const
std
::
string
&
in
);
static
Structure
*
FromBin
(
const
std
::
vector
<
char
>&
in
);
static
Structure
*
FromXml
(
const
std
::
string
&
xml
);
static
Structure
*
FromBin
(
const
std
::
vector
<
char
>&
b
in
);
private
:
Utils
();
...
...
src/Utils.cpp
View file @
a129688a
...
...
@@ -89,18 +89,18 @@ static Structure* ImportStruct(plist_t root)
return
ret
;
}
Structure
*
Utils
::
FromXml
(
const
std
::
string
&
in
)
Structure
*
Utils
::
FromXml
(
const
std
::
string
&
xml
)
{
plist_t
root
=
NULL
;
plist_from_xml
(
in
.
c_str
(),
in
.
size
(),
&
root
);
plist_from_xml
(
xml
.
c_str
(),
xml
.
size
(),
&
root
);
return
ImportStruct
(
root
);
}
Structure
*
Utils
::
FromBin
(
const
std
::
vector
<
char
>&
in
)
Structure
*
Utils
::
FromBin
(
const
std
::
vector
<
char
>&
b
in
)
{
plist_t
root
=
NULL
;
plist_from_bin
(
&
in
[
0
],
in
.
size
(),
&
root
);
plist_from_bin
(
&
bin
[
0
],
b
in
.
size
(),
&
root
);
return
ImportStruct
(
root
);
...
...
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