Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
e2453f84
Commit
e2453f84
authored
Sep 15, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UniXML: use const for read only funcs
parent
92b095ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
UniXML.h
include/UniXML.h
+4
-4
UniXML.cc
src/Various/UniXML.cc
+4
-4
No files found.
include/UniXML.h
View file @
e2453f84
...
...
@@ -127,11 +127,11 @@ class UniXML_iterator
{}
UniXML_iterator
()
{}
std
::
string
getProp
(
const
std
::
string
name
);
std
::
string
getPropUtf8
(
const
std
::
string
name
);
int
getIntProp
(
const
std
::
string
name
);
std
::
string
getProp
(
const
std
::
string
name
)
const
;
std
::
string
getPropUtf8
(
const
std
::
string
name
)
const
;
int
getIntProp
(
const
std
::
string
name
)
const
;
/// if value if not positive ( <= 0 ), returns def
int
getPIntProp
(
const
std
::
string
name
,
int
def
);
int
getPIntProp
(
const
std
::
string
name
,
int
def
)
const
;
void
setProp
(
const
std
::
string
name
,
const
std
::
string
text
);
/*! . false, */
...
...
src/Various/UniXML.cc
View file @
e2453f84
...
...
@@ -450,24 +450,24 @@ bool UniXML_iterator::goChildren()
}
// -------------------------------------------------------------------------
string
UniXML_iterator
::
getProp
(
const
string
name
)
string
UniXML_iterator
::
getProp
(
const
string
name
)
const
{
return
UniXML
::
getProp
(
curNode
,
name
);
}
// -------------------------------------------------------------------------
string
UniXML_iterator
::
getPropUtf8
(
const
string
name
)
string
UniXML_iterator
::
getPropUtf8
(
const
string
name
)
const
{
return
UniXML
::
getPropUtf8
(
curNode
,
name
);
}
// -------------------------------------------------------------------------
int
UniXML_iterator
::
getIntProp
(
const
string
name
)
int
UniXML_iterator
::
getIntProp
(
const
string
name
)
const
{
return
UniSetTypes
::
uni_atoi
((
char
*
)
::
xmlGetProp
(
curNode
,
(
const
xmlChar
*
)
name
.
c_str
()));
}
int
UniXML_iterator
::
getPIntProp
(
const
string
name
,
int
def
)
int
UniXML_iterator
::
getPIntProp
(
const
string
name
,
int
def
)
const
{
int
i
=
getIntProp
(
name
);
if
(
i
<=
0
)
...
...
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