summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-05-01 18:34:31 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-05-01 19:28:23 +0200
commita6aa71f6f3357f4fcd06c2307882733606af37ca (patch)
tree30674c005c59f36504aaf76c71b4e9679b3c7148 /include/xmloff
parent2059f242bd2d3e9cefa8cb38bcbef8cab120bab5 (diff)
AutoName is only used as Any, no need to extract into intermediate string
Change-Id: I00b0d647946e3943852098ff96cc09b7a2fd49ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151233 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/xmlstyle.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/xmloff/xmlstyle.hxx b/include/xmloff/xmlstyle.hxx
index 04a74b841a15..7e09259c7443 100644
--- a/include/xmloff/xmlstyle.hxx
+++ b/include/xmloff/xmlstyle.hxx
@@ -41,7 +41,7 @@ class XMLOFF_DLLPUBLIC SvXMLStyleContext : public SvXMLImportContext
{
OUString maName;
OUString maDisplayName;
- OUString maAutoName;
+ css::uno::Any maAutoName;
OUString maParentName;// Will be moved to XMLPropStyle soon!!!!
OUString maFollow; // Will be moved to XMLPropStyle soon!!!!
OUString maLinked;
@@ -51,7 +51,7 @@ class XMLOFF_DLLPUBLIC SvXMLStyleContext : public SvXMLImportContext
bool mbValid : 1; // Set this to false in CreateAndInsert
// if the style shouldn't be processed
- // by Finish() or si somehow invalid.
+ // by Finish() or is somehow invalid.
bool mbNew : 1; // Set this to false in CreateAnsInsert
// if the style is already existing.
bool mbDefaultStyle : 1;
@@ -61,7 +61,7 @@ protected:
virtual void SetAttribute( sal_Int32 nElement, const OUString& rValue );
void SetFamily( XmlStyleFamily nSet ) { mnFamily = nSet; }
- void SetAutoName( const OUString& rName ) { maAutoName = rName; }
+ void SetAutoName( const css::uno::Any& rName ) { maAutoName = rName; }
public:
@@ -77,7 +77,7 @@ public:
const OUString& GetName() const { return maName; }
const OUString& GetDisplayName() const { return maDisplayName.getLength() ? maDisplayName : maName; }
- const OUString& GetAutoName() const { return maAutoName; }
+ const css::uno::Any& GetAutoName() const { return maAutoName; }
const OUString& GetParentName() const { return maParentName; }
const OUString& GetFollow() const { return maFollow; }
const OUString& GetLinked() const { return maLinked; }