summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorAaron Bourdeaux <abourdeaux@csumb.edu>2024-04-05 19:38:00 -0400
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-04-13 20:31:00 +0200
commit734a84f33d3f08e31086c2dbd629715608a178d5 (patch)
tree9148137519c2abef8fa8025c1f7691608746152d /sw/source
parent4695d84b78d04af6682961732ae92655e03f49eb (diff)
tdf#158067 Replace OUStringLiteral with _ustr
Change-Id: I3a58469c52055121e8726cee2d3e42ecd23cdf96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165826 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/access/acccell.cxx4
-rw-r--r--sw/source/core/access/accembedded.cxx4
-rw-r--r--sw/source/core/access/accfootnote.cxx9
3 files changed, 4 insertions, 13 deletions
diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx
index 8b15fa095545..0cffe02d1e04 100644
--- a/sw/source/core/access/acccell.cxx
+++ b/sw/source/core/access/acccell.cxx
@@ -48,8 +48,6 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
using namespace sw::access;
-constexpr OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleCellView";
-
bool SwAccessibleCell::IsSelected()
{
bool bRet = false;
@@ -240,7 +238,7 @@ OUString SAL_CALL SwAccessibleCell::getAccessibleDescription()
OUString SAL_CALL SwAccessibleCell::getImplementationName()
{
- return sImplementationName;
+ return u"com.sun.star.comp.Writer.SwAccessibleCellView"_ustr;
}
sal_Bool SAL_CALL SwAccessibleCell::supportsService(const OUString& sTestServiceName)
diff --git a/sw/source/core/access/accembedded.cxx b/sw/source/core/access/accembedded.cxx
index 1eb54cf25878..7d4a5415bdcf 100644
--- a/sw/source/core/access/accembedded.cxx
+++ b/sw/source/core/access/accembedded.cxx
@@ -31,8 +31,6 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::accessibility;
-constexpr OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleEmbeddedObject";
-
SwAccessibleEmbeddedObject::SwAccessibleEmbeddedObject(
std::shared_ptr<SwAccessibleMap> const& pInitMap,
const SwFlyFrame* pFlyFrame ) :
@@ -71,7 +69,7 @@ void SAL_CALL
OUString SAL_CALL SwAccessibleEmbeddedObject::getImplementationName()
{
- return sImplementationName;
+ return u"com.sun.star.comp.Writer.SwAccessibleEmbeddedObject"_ustr;
}
sal_Bool SAL_CALL SwAccessibleEmbeddedObject::supportsService(const OUString& sTestServiceName)
diff --git a/sw/source/core/access/accfootnote.cxx b/sw/source/core/access/accfootnote.cxx
index 6fb7ebca864c..9fc265c53bc1 100644
--- a/sw/source/core/access/accfootnote.cxx
+++ b/sw/source/core/access/accfootnote.cxx
@@ -33,11 +33,6 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::accessibility;
-constexpr OUStringLiteral sImplementationNameFootnote
- = u"com.sun.star.comp.Writer.SwAccessibleFootnoteView";
-constexpr OUStringLiteral sImplementationNameEndnote
- = u"com.sun.star.comp.Writer.SwAccessibleEndnoteView";
-
SwAccessibleFootnote::SwAccessibleFootnote(
std::shared_ptr<SwAccessibleMap> const& pInitMap,
bool bIsEndnote,
@@ -90,9 +85,9 @@ OUString SAL_CALL SwAccessibleFootnote::getAccessibleDescription()
OUString SAL_CALL SwAccessibleFootnote::getImplementationName()
{
if( AccessibleRole::END_NOTE == GetRole() )
- return sImplementationNameEndnote;
+ return u"com.sun.star.comp.Writer.SwAccessibleEndnoteView"_ustr;
else
- return sImplementationNameFootnote;
+ return u"com.sun.star.comp.Writer.SwAccessibleFootnoteView"_ustr;
}
sal_Bool SAL_CALL SwAccessibleFootnote::supportsService(const OUString& sTestServiceName)