diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-29 14:44:53 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-29 17:19:49 +0100 |
commit | 98f7e70aeb5c445a04a45cebce7553cb23d57e65 (patch) | |
tree | ac9fb18351f0d6c82098ceebb92bd37c2aa2c4f2 /include/sfx2/classificationhelper.hxx | |
parent | 12f8d5b2d5ea76b2755cb6fe05f28928aedd148c (diff) |
sfx2 classification: fix category name duplication
A category name was stored in m_aName and also as a label value with key
name PROP_BACNAME(). Fix this by always using m_aName, and doing the
conversion in both directions in
SfxClassificationHelper::Impl::pushToObjectShell() and the
SfxClassificationHelper() ctor, as document metadata wants to work with
only key-vaulue pairs.
Change-Id: Iad386840038966e4483e3503c5fcdc046ca9effc
Diffstat (limited to 'include/sfx2/classificationhelper.hxx')
-rw-r--r-- | include/sfx2/classificationhelper.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx index cad0eaf6350e..5b0070203b69 100644 --- a/include/sfx2/classificationhelper.hxx +++ b/include/sfx2/classificationhelper.hxx @@ -35,7 +35,7 @@ public: SfxClassificationHelper(SfxObjectShell& rObjectShell); ~SfxClassificationHelper(); - OUString GetBACName(); + const OUString& GetBACName(); /// Return all possible valid category names, based on the policy. std::vector<OUString> GetBACNames(); /// Setting this sets all the other properties, based on the policy. |