diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-07 10:12:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-07 11:46:58 +0100 |
commit | b8cf30e93f18ddc16fd648976a41a6bbb6c6d8b2 (patch) | |
tree | 2f1aeba61b0b943fcd67d3f4b2ca73002eaf60dd /sc/source/ui/Accessibility/AccessiblePreviewTable.cxx | |
parent | 511b3ce85ebb2261f5ea866efdb333eaf94c64f8 (diff) |
Related: fdo#38838 remove UniString::SearchAndReplaceAscii
Change-Id: I86019d7ab248679cd8518a621fe8e3721b44aeb0
Diffstat (limited to 'sc/source/ui/Accessibility/AccessiblePreviewTable.cxx')
-rw-r--r-- | sc/source/ui/Accessibility/AccessiblePreviewTable.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx b/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx index 2ed5c55fcb5f..f0b17d6d00f6 100644 --- a/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx +++ b/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx @@ -615,7 +615,7 @@ OUString SAL_CALL ScAccessiblePreviewTable::createAccessibleDescription(void) OUString SAL_CALL ScAccessiblePreviewTable::createAccessibleName(void) throw (uno::RuntimeException) { - String sName(ScResId(STR_ACC_TABLE_NAME)); + OUString sName(SC_RESSTR(STR_ACC_TABLE_NAME)); if (mpViewShell && mpViewShell->GetDocument()) { @@ -625,11 +625,11 @@ OUString SAL_CALL ScAccessiblePreviewTable::createAccessibleName(void) { OUString sCoreName; if (mpViewShell->GetDocument()->GetName( mpTableInfo->GetTab(), sCoreName )) - sName.SearchAndReplaceAscii("%1", sCoreName); + sName = sName.replaceFirst("%1", sCoreName); } } - return OUString(sName); + return sName; } Rectangle ScAccessiblePreviewTable::GetBoundingBoxOnScreen() const throw (uno::RuntimeException) |