summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLTableContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/chart/SchXMLTableContext.cxx')
-rw-r--r--xmloff/source/chart/SchXMLTableContext.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx
index ff4ee0ac168a..49206329c86d 100644
--- a/xmloff/source/chart/SchXMLTableContext.cxx
+++ b/xmloff/source/chart/SchXMLTableContext.cxx
@@ -45,6 +45,7 @@
#include <vector>
#include <algorithm>
#include <iterator>
+#include <string_view>
using namespace com::sun::star;
using namespace ::xmloff::token;
@@ -183,11 +184,11 @@ bool lcl_mapContainsRange(
bool lcl_tableOfRangeMatches(
const OUString & rRange,
- const OUString & rTableName )
+ std::u16string_view rTableName )
{
// both strings are non-empty and the table name is part of the range
return ( !rRange.isEmpty() &&
- !rTableName.isEmpty() &&
+ !rTableName.empty() &&
(rRange.indexOf( rTableName ) != -1 ));
}