Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
Kea
Commits
96f97334
Commit
96f97334
authored
Jan 04, 2013
by
JINMEI Tatuya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2433] constify various callback objects for consistency
parent
15a69fd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
src/lib/dns/master_loader.cc
src/lib/dns/master_loader.cc
+1
-1
src/lib/dns/master_loader_callbacks.h
src/lib/dns/master_loader_callbacks.h
+3
-3
src/lib/dns/rrcollator.cc
src/lib/dns/rrcollator.cc
+1
-1
No files found.
src/lib/dns/master_loader.cc
View file @
96f97334
...
...
@@ -393,7 +393,7 @@ private:
shared_ptr
<
Name
>
last_name_
;
// Last seen name (for INITAL_WS handling)
const
RRClass
zone_class_
;
MasterLoaderCallbacks
callbacks_
;
AddRRCallback
add_callback_
;
const
AddRRCallback
add_callback_
;
boost
::
scoped_ptr
<
RRTTL
>
default_ttl_
;
// Default TTL of RRs used when
// unspecified. If NULL no default
// is known.
...
...
src/lib/dns/master_loader_callbacks.h
View file @
96f97334
...
...
@@ -100,7 +100,7 @@ public:
/// If the caller of the loader wants to abort, it is possible to throw
/// from the callback, which aborts the load.
void
error
(
const
std
::
string
&
source_name
,
size_t
source_line
,
const
std
::
string
&
reason
)
const
std
::
string
&
reason
)
const
{
error_
(
source_name
,
source_line
,
reason
);
}
...
...
@@ -117,7 +117,7 @@ public:
/// may be false positives), it is possible to throw from inside the
/// callback.
void
warning
(
const
std
::
string
&
source_name
,
size_t
source_line
,
const
std
::
string
&
reason
)
const
std
::
string
&
reason
)
const
{
warning_
(
source_name
,
source_line
,
reason
);
}
...
...
@@ -133,7 +133,7 @@ public:
static
MasterLoaderCallbacks
getNullCallbacks
();
private:
IssueCallback
error_
,
warning_
;
const
IssueCallback
error_
,
warning_
;
};
}
...
...
src/lib/dns/rrcollator.cc
View file @
96f97334
...
...
@@ -42,7 +42,7 @@ public:
const
RdataPtr
&
rdata
);
RRsetPtr
current_rrset_
;
AddRRsetCallback
callback_
;
const
AddRRsetCallback
callback_
;
};
namespace
{
...
...
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