sw/source/core/access/acccell.cxx     |    4 +---
 sw/source/core/access/accembedded.cxx |    4 +---
 sw/source/core/access/accfootnote.cxx |    9 ++-------
 3 files changed, 4 insertions(+), 13 deletions(-)

New commits:
commit 734a84f33d3f08e31086c2dbd629715608a178d5
Author:     Aaron Bourdeaux <abourde...@csumb.edu>
AuthorDate: Fri Apr 5 19:38:00 2024 -0400
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Sat Apr 13 20:31:00 2024 +0200

    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.lauhakan...@libreoffice.org>
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

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)

Reply via email to