tdf#170595 StyleSheetTable::getOrCreateCharStyle can take const param

Change-Id: I3fee3375096069cbb68bedbcf3a72a3bd1bdb8ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198598
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2026-02-05 09:27:23 +01:00
parent 2aa9e6a778
commit a015bd6ed7
2 changed files with 2 additions and 2 deletions
@@ -2181,7 +2181,7 @@ void StyleSheetTable::applyDefaults(bool bParaProperties)
}
OUString StyleSheetTable::getOrCreateCharStyle( PropertyValueVector_t& rCharProperties, bool bAlwaysCreate )
OUString StyleSheetTable::getOrCreateCharStyle( const PropertyValueVector_t& rCharProperties, bool bAlwaysCreate )
{
//find out if any of the styles already has the required properties then return its name
OUString sListLabel = HasListCharStyle(rCharProperties);
@@ -116,7 +116,7 @@ public:
OUString CloneTOCStyle(FontTablePtr const& rFontTable, StyleSheetEntryPtr const pStyle, OUString const& rName);
void ApplyClonedTOCStyles();
OUString getOrCreateCharStyle( PropertyValueVector_t& rCharProperties, bool bAlwaysCreate );
OUString getOrCreateCharStyle( const PropertyValueVector_t& rCharProperties, bool bAlwaysCreate );
void SetDefaultParaProps(PropertyIds eId, const css::uno::Any& rAny);
PropertyMapPtr const & GetDefaultParaProps() const;