diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-25 09:06:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-25 11:13:42 +0100 |
commit | cb55ffa649e73eb12e8edf79950a2494ac5e94b1 (patch) | |
tree | c15edcd25b76820a6a6877290435b8c51fa5c097 /sfx2 | |
parent | 19663d39f400dac3682228f3f0146807bbbebe74 (diff) |
sw: various small cleanups
Change-Id: I1eb56649fb9913cb32397c1ef49634a0d202f1a1
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/classificationhelper.cxx | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx index 614ec9800a63..33323d64be96 100644 --- a/sfx2/source/view/classificationhelper.cxx +++ b/sfx2/source/view/classificationhelper.cxx @@ -100,22 +100,22 @@ public: std::vector<SfxClassificationCategory> m_aCategories; OUString m_aPolicyAuthorityName; - bool m_bInPolicyAuthorityName; + bool m_bInPolicyAuthorityName = false; OUString m_aPolicyName; - bool m_bInPolicyName; + bool m_bInPolicyName = false; OUString m_aProgramID; - bool m_bInProgramID; + bool m_bInProgramID = false; OUString m_aScale; - bool m_bInScale; + bool m_bInScale = false; OUString m_aConfidentalityValue; - bool m_bInConfidentalityValue; + bool m_bInConfidentalityValue = false; OUString m_aIdentifier; - bool m_bInIdentifier; + bool m_bInIdentifier = false; OUString m_aValue; - bool m_bInValue; + bool m_bInValue = false; /// Pointer to a value in m_aCategories, the currently parsed category. - SfxClassificationCategory* m_pCategory; + SfxClassificationCategory* m_pCategory = nullptr; SfxClassificationParser(); @@ -138,17 +138,7 @@ public: throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override; }; -SfxClassificationParser::SfxClassificationParser() - : m_bInPolicyAuthorityName(false) - , m_bInPolicyName(false) - , m_bInProgramID(false) - , m_bInScale(false) - , m_bInConfidentalityValue(false) - , m_bInIdentifier(false) - , m_bInValue(false) - , m_pCategory(nullptr) -{ -} +SfxClassificationParser::SfxClassificationParser() = default; void SAL_CALL SfxClassificationParser::startDocument() throw (xml::sax::SAXException, uno::RuntimeException, std::exception) { |