diff options
author | Aaron Bourdeaux <abourdeaux@csumb.edu> | 2024-04-05 19:38:00 -0400 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-04-13 20:31:00 +0200 |
commit | 734a84f33d3f08e31086c2dbd629715608a178d5 (patch) | |
tree | 9148137519c2abef8fa8025c1f7691608746152d /sw/source | |
parent | 4695d84b78d04af6682961732ae92655e03f49eb (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.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/access/accembedded.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/access/accfootnote.cxx | 9 |
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) |