BIND 10 trac2376, updated. 7dea7ef92cbc398d2cd395d45baf2eec48f5caaa [2384] Get rid of ugly mutable keyword
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Nov 9 14:22:33 UTC 2012
The branch, trac2376 has been updated
via 7dea7ef92cbc398d2cd395d45baf2eec48f5caaa (commit)
from 4464e2f16486fbabb5c0a0ddf1e98f60b97d2c94 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7dea7ef92cbc398d2cd395d45baf2eec48f5caaa
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Fri Nov 9 15:22:02 2012 +0100
[2384] Get rid of ugly mutable keyword
And also of few const keywords which were not really true strictly
speaking.
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/loader_context.h | 4 ++--
src/lib/dns/master_loader.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/loader_context.h b/src/lib/datasrc/loader_context.h
index d2ecc46..ef1200e 100644
--- a/src/lib/datasrc/loader_context.h
+++ b/src/lib/datasrc/loader_context.h
@@ -54,7 +54,7 @@ public:
///
/// \return Structure holding the callbacks that can be used to report
/// errors.
- virtual isc::dns::LoaderCallbacks& getCallbacks() const {
+ virtual isc::dns::LoaderCallbacks& getCallbacks() {
return (callbacks_);
}
@@ -81,7 +81,7 @@ private:
/// since the getCallbacks() is const method and it returns a non-const
/// reference. It needs to be non-const, to be possible to call the
/// the actual callbacks (the operator() might be non-const).
- mutable isc::dns::LoaderCallbacks callbacks_;
+ isc::dns::LoaderCallbacks callbacks_;
/// \brief The updater to be used.
ZoneUpdater& updater_;
diff --git a/src/lib/dns/master_loader.h b/src/lib/dns/master_loader.h
index 946853b..444b325 100644
--- a/src/lib/dns/master_loader.h
+++ b/src/lib/dns/master_loader.h
@@ -38,7 +38,7 @@ public:
///
/// The master loader accesses the callbacks used for error reporting
/// through this.
- virtual LoaderCallbacks& getCallbacks() const = 0;
+ virtual LoaderCallbacks& getCallbacks() = 0;
};
}
More information about the bind10-changes
mailing list