diff options
author | Arnaud VERSINI <arnaud.versini@pm.me> | 2023-12-26 14:18:14 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2023-12-29 00:36:51 +0100 |
commit | 0f6f5048d223731aa52b768a77244d0208711391 (patch) | |
tree | 3d946fce248c0eed9efe13fb77df4e3e2040b3d4 /accessibility/source/extended | |
parent | 029d761b92d7a5754ad7066238b8c20ae420d263 (diff) |
use string OUString literals in a11y for XServiceInfo impl.
Used in getImplementationName and getSupportedServiceNames
Change-Id: I003db960123c66d4d47b99aec678b156bf4c4d91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161301
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'accessibility/source/extended')
22 files changed, 37 insertions, 37 deletions
diff --git a/accessibility/source/extended/AccessibleBrowseBox.cxx b/accessibility/source/extended/AccessibleBrowseBox.cxx index 6085ff9ec3ce..8408c0abe23a 100644 --- a/accessibility/source/extended/AccessibleBrowseBox.cxx +++ b/accessibility/source/extended/AccessibleBrowseBox.cxx @@ -171,7 +171,7 @@ void SAL_CALL AccessibleBrowseBox::grabFocus() OUString SAL_CALL AccessibleBrowseBox::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleBrowseBox"; + return u"com.sun.star.comp.svtools.AccessibleBrowseBox"_ustr; } diff --git a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx index 121655d78823..8d9a0577e638 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx @@ -304,7 +304,7 @@ sal_Bool SAL_CALL AccessibleBrowseBoxBase::supportsService( Sequence< OUString > SAL_CALL AccessibleBrowseBoxBase::getSupportedServiceNames() { - return { "com.sun.star.accessibility.AccessibleContext" }; + return { u"com.sun.star.accessibility.AccessibleContext"_ustr }; } // other public methods diff --git a/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx index e59755555624..f5d47b0a30f8 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx @@ -136,7 +136,7 @@ namespace accessibility OUString SAL_CALL AccessibleCheckBoxCell::getImplementationName() { - return "com.sun.star.comp.svtools.TableCheckBoxCell"; + return u"com.sun.star.comp.svtools.TableCheckBoxCell"_ustr; } sal_Int64 SAL_CALL AccessibleCheckBoxCell::getAccessibleIndexInParent() diff --git a/accessibility/source/extended/AccessibleBrowseBoxHeaderBar.cxx b/accessibility/source/extended/AccessibleBrowseBoxHeaderBar.cxx index 8bd19f825221..024e95d588cc 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxHeaderBar.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxHeaderBar.cxx @@ -291,7 +291,7 @@ void SAL_CALL AccessibleBrowseBoxHeaderBar::release() noexcept OUString SAL_CALL AccessibleBrowseBoxHeaderBar::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleBrowseBoxHeaderBar"; + return u"com.sun.star.comp.svtools.AccessibleBrowseBoxHeaderBar"_ustr; } Sequence< sal_Int8 > SAL_CALL AccessibleBrowseBoxHeaderBar::getImplementationId() diff --git a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx index 536c3d4c25b6..87a9d2b7ab83 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx @@ -108,7 +108,7 @@ void SAL_CALL AccessibleBrowseBoxHeaderCell::grabFocus() */ OUString SAL_CALL AccessibleBrowseBoxHeaderCell::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleBrowseBoxHeaderCell"; + return u"com.sun.star.comp.svtools.AccessibleBrowseBoxHeaderCell"_ustr; } namespace diff --git a/accessibility/source/extended/AccessibleBrowseBoxTable.cxx b/accessibility/source/extended/AccessibleBrowseBoxTable.cxx index 09c7448be4bd..7046ed792507 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxTable.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxTable.cxx @@ -185,7 +185,7 @@ sal_Bool SAL_CALL AccessibleBrowseBoxTable::isAccessibleSelected( OUString SAL_CALL AccessibleBrowseBoxTable::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleBrowseBoxTable"; + return u"com.sun.star.comp.svtools.AccessibleBrowseBoxTable"_ustr; } // internal virtual methods --------------------------------------------------- diff --git a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx index 12571484e69d..7c77128aa237 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx @@ -138,7 +138,7 @@ namespace accessibility */ OUString SAL_CALL AccessibleBrowseBoxTableCell::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleBrowseBoxTableCell"; + return u"com.sun.star.comp.svtools.AccessibleBrowseBoxTableCell"_ustr; } /** @return The count of visible children. */ diff --git a/accessibility/source/extended/AccessibleGridControl.cxx b/accessibility/source/extended/AccessibleGridControl.cxx index 00c982a943bc..b2577ea588b3 100644 --- a/accessibility/source/extended/AccessibleGridControl.cxx +++ b/accessibility/source/extended/AccessibleGridControl.cxx @@ -181,7 +181,7 @@ void SAL_CALL AccessibleGridControl::grabFocus() OUString SAL_CALL AccessibleGridControl::getImplementationName() { - return "com.sun.star.accessibility.AccessibleGridControl"; + return u"com.sun.star.accessibility.AccessibleGridControl"_ustr; } diff --git a/accessibility/source/extended/AccessibleGridControlBase.cxx b/accessibility/source/extended/AccessibleGridControlBase.cxx index 254758205030..a57946989e1b 100644 --- a/accessibility/source/extended/AccessibleGridControlBase.cxx +++ b/accessibility/source/extended/AccessibleGridControlBase.cxx @@ -260,7 +260,7 @@ sal_Bool SAL_CALL AccessibleGridControlBase::supportsService( Sequence< OUString > SAL_CALL AccessibleGridControlBase::getSupportedServiceNames() { - return { "com.sun.star.accessibility.AccessibleContext" }; + return { u"com.sun.star.accessibility.AccessibleContext"_ustr }; } // internal virtual methods diff --git a/accessibility/source/extended/AccessibleGridControlHeader.cxx b/accessibility/source/extended/AccessibleGridControlHeader.cxx index ebe5f9d09d9e..c6b278386b9b 100644 --- a/accessibility/source/extended/AccessibleGridControlHeader.cxx +++ b/accessibility/source/extended/AccessibleGridControlHeader.cxx @@ -182,7 +182,7 @@ sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleSelected( OUString SAL_CALL AccessibleGridControlHeader::getImplementationName() { - return "com.sun.star.accessibility.AccessibleGridControlHeader"; + return u"com.sun.star.accessibility.AccessibleGridControlHeader"_ustr; } Sequence< sal_Int8 > SAL_CALL AccessibleGridControlHeader::getImplementationId() diff --git a/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx b/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx index 00b3e60d7d92..57baebd2df28 100644 --- a/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx +++ b/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx @@ -123,7 +123,7 @@ void SAL_CALL AccessibleGridControlHeaderCell::grabFocus() */ OUString SAL_CALL AccessibleGridControlHeaderCell::getImplementationName() { - return "com.sun.star.accessibility.AccessibleGridControlHeaderCell"; + return u"com.sun.star.accessibility.AccessibleGridControlHeaderCell"_ustr; } tools::Rectangle AccessibleGridControlHeaderCell::implGetBoundingBox() diff --git a/accessibility/source/extended/AccessibleGridControlTable.cxx b/accessibility/source/extended/AccessibleGridControlTable.cxx index 9057a0360093..3b8f0138267e 100644 --- a/accessibility/source/extended/AccessibleGridControlTable.cxx +++ b/accessibility/source/extended/AccessibleGridControlTable.cxx @@ -293,7 +293,7 @@ void SAL_CALL AccessibleGridControlTable::release() noexcept OUString SAL_CALL AccessibleGridControlTable::getImplementationName() { - return "com.sun.star.accessibility.AccessibleGridControlTable"; + return u"com.sun.star.accessibility.AccessibleGridControlTable"_ustr; } void AccessibleGridControlTable::dispose() diff --git a/accessibility/source/extended/AccessibleGridControlTableCell.cxx b/accessibility/source/extended/AccessibleGridControlTableCell.cxx index 43e56aefae7e..63bb24304c71 100644 --- a/accessibility/source/extended/AccessibleGridControlTableCell.cxx +++ b/accessibility/source/extended/AccessibleGridControlTableCell.cxx @@ -155,7 +155,7 @@ namespace accessibility */ OUString SAL_CALL AccessibleGridControlTableCell::getImplementationName() { - return "com.sun.star.accessibility.AccessibleGridControlTableCell"; + return u"com.sun.star.accessibility.AccessibleGridControlTableCell"_ustr; } /** @return The count of visible children. */ diff --git a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx index d447b906e394..a61e86a4e2d7 100644 --- a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx +++ b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx @@ -58,7 +58,7 @@ namespace accessibility OUString SAL_CALL EditBrowseBoxTableCell::getImplementationName() { - return "com.sun.star.comp.svtools.TableCellProxy"; + return u"com.sun.star.comp.svtools.TableCellProxy"_ustr; } IMPLEMENT_FORWARD_XINTERFACE2( EditBrowseBoxTableCell, AccessibleBrowseBoxCell, OAccessibleContextWrapperHelper ) diff --git a/accessibility/source/extended/accessibleiconchoicectrl.cxx b/accessibility/source/extended/accessibleiconchoicectrl.cxx index 032c9dae95bc..33b15d5f54c8 100644 --- a/accessibility/source/extended/accessibleiconchoicectrl.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrl.cxx @@ -120,14 +120,14 @@ namespace accessibility OUString SAL_CALL AccessibleIconChoiceCtrl::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleIconChoiceControl"; + return u"com.sun.star.comp.svtools.AccessibleIconChoiceControl"_ustr; } Sequence< OUString > SAL_CALL AccessibleIconChoiceCtrl::getSupportedServiceNames() { - return {"com.sun.star.accessibility.AccessibleContext", - "com.sun.star.accessibility.AccessibleComponent", - "com.sun.star.awt.AccessibleIconChoiceControl"}; + return {u"com.sun.star.accessibility.AccessibleContext"_ustr, + u"com.sun.star.accessibility.AccessibleComponent"_ustr, + u"com.sun.star.awt.AccessibleIconChoiceControl"_ustr}; } sal_Bool SAL_CALL AccessibleIconChoiceCtrl::supportsService( const OUString& _rServiceName ) diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx index 9e7b75cf1488..25587444b154 100644 --- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx @@ -216,14 +216,14 @@ namespace accessibility OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleIconChoiceControlEntry"; + return u"com.sun.star.comp.svtools.AccessibleIconChoiceControlEntry"_ustr; } Sequence< OUString > SAL_CALL AccessibleIconChoiceCtrlEntry::getSupportedServiceNames() { - return {"com.sun.star.accessibility.AccessibleContext", - "com.sun.star.accessibility.AccessibleComponent", - "com.sun.star.awt.AccessibleIconChoiceControlEntry"}; + return {u"com.sun.star.accessibility.AccessibleContext"_ustr, + u"com.sun.star.accessibility.AccessibleComponent"_ustr, + u"com.sun.star.awt.AccessibleIconChoiceControlEntry"_ustr}; } sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::supportsService( const OUString& _rServiceName ) diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index 31330c845448..fb800403a302 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -251,14 +251,14 @@ namespace accessibility OUString SAL_CALL AccessibleListBox::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleTreeListBox"; + return u"com.sun.star.comp.svtools.AccessibleTreeListBox"_ustr; } Sequence< OUString > SAL_CALL AccessibleListBox::getSupportedServiceNames() { - return {"com.sun.star.accessibility.AccessibleContext", - "com.sun.star.accessibility.AccessibleComponent", - "com.sun.star.awt.AccessibleTreeListBox"}; + return {u"com.sun.star.accessibility.AccessibleContext"_ustr, + u"com.sun.star.accessibility.AccessibleComponent"_ustr, + u"com.sun.star.awt.AccessibleTreeListBox"_ustr}; } sal_Bool SAL_CALL AccessibleListBox::supportsService( const OUString& _rServiceName ) diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index 10433d882730..f68e042f76ea 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -269,14 +269,14 @@ namespace accessibility OUString SAL_CALL AccessibleListBoxEntry::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleTreeListBoxEntry"; + return u"com.sun.star.comp.svtools.AccessibleTreeListBoxEntry"_ustr; } Sequence< OUString > SAL_CALL AccessibleListBoxEntry::getSupportedServiceNames() { - return {"com.sun.star.accessibility.AccessibleContext", - "com.sun.star.accessibility.AccessibleComponent", - "com.sun.star.awt.AccessibleTreeListBoxEntry"}; + return {u"com.sun.star.accessibility.AccessibleContext"_ustr, + u"com.sun.star.accessibility.AccessibleComponent"_ustr, + u"com.sun.star.awt.AccessibleTreeListBoxEntry"_ustr}; } sal_Bool SAL_CALL AccessibleListBoxEntry::supportsService( const OUString& _rServiceName ) diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx index 518d068d65ba..d928b45550ed 100644 --- a/accessibility/source/extended/accessibletabbar.cxx +++ b/accessibility/source/extended/accessibletabbar.cxx @@ -175,7 +175,7 @@ namespace accessibility OUString AccessibleTabBar::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleTabBar"; + return u"com.sun.star.comp.svtools.AccessibleTabBar"_ustr; } @@ -187,7 +187,7 @@ namespace accessibility Sequence< OUString > AccessibleTabBar::getSupportedServiceNames() { - return { "com.sun.star.awt.AccessibleTabBar" }; + return { u"com.sun.star.awt.AccessibleTabBar"_ustr }; } diff --git a/accessibility/source/extended/accessibletabbarpage.cxx b/accessibility/source/extended/accessibletabbarpage.cxx index eab2cf269cf2..6c8a9dd8bf34 100644 --- a/accessibility/source/extended/accessibletabbarpage.cxx +++ b/accessibility/source/extended/accessibletabbarpage.cxx @@ -201,7 +201,7 @@ namespace accessibility OUString AccessibleTabBarPage::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleTabBarPage"; + return u"com.sun.star.comp.svtools.AccessibleTabBarPage"_ustr; } @@ -213,7 +213,7 @@ namespace accessibility Sequence< OUString > AccessibleTabBarPage::getSupportedServiceNames() { - return { "com.sun.star.awt.AccessibleTabBarPage" }; + return { u"com.sun.star.awt.AccessibleTabBarPage"_ustr }; } diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx index 8ad6b168ebaf..8ba5571155aa 100644 --- a/accessibility/source/extended/accessibletabbarpagelist.cxx +++ b/accessibility/source/extended/accessibletabbarpagelist.cxx @@ -334,7 +334,7 @@ namespace accessibility OUString AccessibleTabBarPageList::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleTabBarPageList"; + return u"com.sun.star.comp.svtools.AccessibleTabBarPageList"_ustr; } @@ -346,7 +346,7 @@ namespace accessibility Sequence< OUString > AccessibleTabBarPageList::getSupportedServiceNames() { - return { "com.sun.star.awt.AccessibleTabBarPageList" }; + return { u"com.sun.star.awt.AccessibleTabBarPageList"_ustr }; } diff --git a/accessibility/source/extended/accessibletablistboxtable.cxx b/accessibility/source/extended/accessibletablistboxtable.cxx index fe2d51b0ee3f..1737be00ce47 100644 --- a/accessibility/source/extended/accessibletablistboxtable.cxx +++ b/accessibility/source/extended/accessibletablistboxtable.cxx @@ -256,7 +256,7 @@ namespace accessibility OUString AccessibleTabListBoxTable::getImplementationName() { - return "com.sun.star.comp.svtools.AccessibleTabListBoxTable"; + return u"com.sun.star.comp.svtools.AccessibleTabListBoxTable"_ustr; } // XAccessibleSelection |