diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-09 14:55:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-09 15:16:55 +0100 |
commit | cf8a54e48c24b2b2b3ca31b0c2d2faef9f2fca0d (patch) | |
tree | 64099f8cf56ddea5cb849c736ab6166c6ae134d4 /configmgr/source/xcuparser.hxx | |
parent | Missing includes (diff) | |
download | core-cf8a54e48c24b2b2b3ca31b0c2d2faef9f2fca0d.tar.gz core-cf8a54e48c24b2b2b3ca31b0c2d2faef9f2fca0d.zip |
Get rid of redundant configmgr::XcuParser::State::locked
Change-Id: If7019fc334c0f11fae464b65c135d01acfb1a46b
Diffstat (limited to 'configmgr/source/xcuparser.hxx')
-rw-r--r-- | configmgr/source/xcuparser.hxx | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/configmgr/source/xcuparser.hxx b/configmgr/source/xcuparser.hxx index 7756626594b3..c750bffc6f5b 100644 --- a/configmgr/source/xcuparser.hxx +++ b/configmgr/source/xcuparser.hxx @@ -112,23 +112,27 @@ private: OUString name; // empty and ignored if !insert bool ignore; bool insert; - bool locked; bool pop; - inline State(bool thePop): - ignore(true), insert(false), locked(false), pop(thePop) - {} + static State Ignore(bool thePop) { return State(thePop); } + + static State Modify(rtl::Reference< Node > const & theNode) + { return State(theNode); } + + static State Insert( + rtl::Reference< Node > const & theNode, OUString const & theName) + { return State(theNode, theName); } + + private: + explicit State(bool thePop): ignore(true), insert(false), pop(thePop) {} - inline State(rtl::Reference< Node > const & theNode, bool theLocked): - node(theNode), ignore(false), insert(false), locked(theLocked), - pop(true) + explicit State(rtl::Reference< Node > const & theNode): + node(theNode), ignore(false), insert(false), pop(true) {} - inline State( - rtl::Reference< Node > const & theNode, - OUString const & theName, bool theLocked): - node(theNode), name(theName), ignore(false), insert(true), - locked(theLocked), pop(true) + State( + rtl::Reference< Node > const & theNode, OUString const & theName): + node(theNode), name(theName), ignore(false), insert(true), pop(true) {} }; |