From 839a463ddd702d576df47e00e9deedc596507a28 Mon Sep 17 00:00:00 2001 From: dockes Date: Tue, 9 Oct 2007 09:40:45 +0000 Subject: [PATCH] *** empty log message *** --- src/utils/conftree.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/utils/conftree.h b/src/utils/conftree.h index 66860024..020bdbc6 100755 --- a/src/utils/conftree.h +++ b/src/utils/conftree.h @@ -100,11 +100,11 @@ public: const string &sk = "") = 0; virtual bool ok() = 0; virtual list getNames(const string &sk) = 0; - virtual int erase(const string &, const string &) {return 0;} - virtual int eraseKey(const string &) {return 0;} - virtual void listall() {} + virtual int erase(const string &, const string &) = 0; + virtual int eraseKey(const string &) = 0; + virtual void listall() {}; virtual list getSubKeys() = 0; - virtual bool holdWrites(bool) {return true;} + virtual bool holdWrites(bool) = 0; }; /** @@ -140,14 +140,15 @@ public: /** * Decide if we actually rewrite the backing-store after modifying the - * tree. (Re-)Enabling writes causes a flush. + * tree. */ virtual bool holdWrites(bool on) { m_holdWrites = on; - if (m_holdWrites == false) + if (on == false) { return write(); - return true; + } else + return true; } /**