diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-19 08:30:17 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-19 08:30:17 -0400 |
commit | eb425536d42734602429fef049479b3c379f28d9 (patch) | |
tree | 0cb4c369b76de4f0f494dafd496d477fdcc38b13 /src/flags.h | |
parent | a374979aaafeec1917e110ba06d4f8792ead084c (diff) | |
download | fork-ledger-eb425536d42734602429fef049479b3c379f28d9.tar.gz fork-ledger-eb425536d42734602429fef049479b3c379f28d9.tar.bz2 fork-ledger-eb425536d42734602429fef049479b3c379f28d9.zip |
Renamed a variable to be more consistent.
Diffstat (limited to 'src/flags.h')
-rw-r--r-- | src/flags.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/flags.h b/src/flags.h index 3e94ab31..c6f42095 100644 --- a/src/flags.h +++ b/src/flags.h @@ -39,16 +39,16 @@ public: typedef T flags_t; protected: - flags_t flags_; + flags_t _flags; public: - supports_flags() : flags_(0) { + supports_flags() : _flags(0) { TRACE_CTOR(supports_flags, ""); } - supports_flags(const supports_flags& arg) : flags_(arg.flags_) { + supports_flags(const supports_flags& arg) : _flags(arg._flags) { TRACE_CTOR(supports_flags, "copy"); } - supports_flags(const flags_t& arg) : flags_(arg) { + supports_flags(const flags_t& arg) : _flags(arg) { TRACE_CTOR(supports_flags, "const flags_t&"); } ~supports_flags() throw() { @@ -56,23 +56,23 @@ public: } flags_t flags() const { - return flags_; + return _flags; } bool has_flags(const flags_t arg) const { - return flags_ & arg; + return _flags & arg; } void set_flags(const flags_t arg) { - flags_ = arg; + _flags = arg; } void clear_flags() { - flags_ = 0; + _flags = 0; } void add_flags(const flags_t arg) { - flags_ |= arg; + _flags |= arg; } void drop_flags(const flags_t arg) { - flags_ &= ~arg; + _flags &= ~arg; } }; @@ -83,13 +83,13 @@ public: typedef T flags_t; protected: - supports_flags<T>& flags_; + supports_flags<T>& _flags; public: - delegates_flags() : flags_() { + delegates_flags() : _flags() { TRACE_CTOR(delegates_flags, ""); } - delegates_flags(supports_flags<T>& arg) : flags_(arg) { + delegates_flags(supports_flags<T>& arg) : _flags(arg) { TRACE_CTOR(delegates_flags, "const supports_flags<T>&"); } ~delegates_flags() throw() { @@ -97,23 +97,23 @@ public: } flags_t flags() const { - return flags_.flags(); + return _flags.flags(); } bool has_flags(const flags_t arg) const { - return flags_.has_flags(arg); + return _flags.has_flags(arg); } void set_flags(const flags_t arg) { - flags_.set_flags(arg); + _flags.set_flags(arg); } void clear_flags() { - flags_.clear_flags(); + _flags.clear_flags(); } void add_flags(const flags_t arg) { - flags_.add_flags(arg); + _flags.add_flags(arg); } void drop_flags(const flags_t arg) { - flags_.drop_flags(arg); + _flags.drop_flags(arg); } }; |