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
Sebastian Schrader
Kea
Commits
bb708b65
Commit
bb708b65
authored
Feb 23, 2011
by
JINMEI Tatuya
Browse files
[master] use prefix version of ++, pointed out by cppcheck.
should be sufficiently trivial, directly committing to master.
parent
d3120390
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/tests/query_unittest.cc
View file @
bb708b65
...
@@ -201,7 +201,7 @@ MockZone::find(const Name& name, const RRType& type,
...
@@ -201,7 +201,7 @@ MockZone::find(const Name& name, const RRType& type,
// If not found but we have a target, fill it with all RRsets here
// If not found but we have a target, fill it with all RRsets here
if
(
!
found_domain
->
second
.
empty
()
&&
target
!=
NULL
)
{
if
(
!
found_domain
->
second
.
empty
()
&&
target
!=
NULL
)
{
for
(
found_rrset
=
found_domain
->
second
.
begin
();
for
(
found_rrset
=
found_domain
->
second
.
begin
();
found_rrset
!=
found_domain
->
second
.
end
();
found_rrset
++
)
{
found_rrset
!=
found_domain
->
second
.
end
();
++
found_rrset
)
{
// Insert RRs under the domain name into target
// Insert RRs under the domain name into target
target
->
addRRset
(
target
->
addRRset
(
boost
::
const_pointer_cast
<
RRset
>
(
found_rrset
->
second
));
boost
::
const_pointer_cast
<
RRset
>
(
found_rrset
->
second
));
...
...
src/lib/datasrc/data_source.cc
View file @
bb708b65
...
@@ -1157,7 +1157,7 @@ MetaDataSrc::addDataSrc(ConstDataSrcPtr data_src) {
...
@@ -1157,7 +1157,7 @@ MetaDataSrc::addDataSrc(ConstDataSrcPtr data_src) {
void
void
MetaDataSrc
::
removeDataSrc
(
ConstDataSrcPtr
data_src
)
{
MetaDataSrc
::
removeDataSrc
(
ConstDataSrcPtr
data_src
)
{
std
::
vector
<
ConstDataSrcPtr
>::
iterator
it
,
itr
;
std
::
vector
<
ConstDataSrcPtr
>::
iterator
it
,
itr
;
for
(
it
=
data_sources
.
begin
();
it
!=
data_sources
.
end
();
it
++
)
{
for
(
it
=
data_sources
.
begin
();
it
!=
data_sources
.
end
();
++
it
)
{
if
(
*
it
==
data_src
)
{
if
(
*
it
==
data_src
)
{
itr
=
it
;
itr
=
it
;
}
}
...
...
src/lib/datasrc/memory_datasrc.cc
View file @
bb708b65
...
@@ -515,7 +515,7 @@ struct MemoryZone::MemoryZoneImpl {
...
@@ -515,7 +515,7 @@ struct MemoryZone::MemoryZoneImpl {
if
(
target
!=
NULL
&&
!
node
->
getData
()
->
empty
())
{
if
(
target
!=
NULL
&&
!
node
->
getData
()
->
empty
())
{
// Empty domain will be handled as NXRRSET by normal processing
// Empty domain will be handled as NXRRSET by normal processing
for
(
found
=
node
->
getData
()
->
begin
();
for
(
found
=
node
->
getData
()
->
begin
();
found
!=
node
->
getData
()
->
end
();
found
++
)
found
!=
node
->
getData
()
->
end
();
++
found
)
{
{
target
->
addRRset
(
target
->
addRRset
(
boost
::
const_pointer_cast
<
RRset
>
(
prepareRRset
(
name
,
boost
::
const_pointer_cast
<
RRset
>
(
prepareRRset
(
name
,
...
...
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