diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-01 13:20:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-04 06:49:52 +0000 |
commit | 7855ea48309ee2ba06ee5f3d5dac27ecfc4ca4a6 (patch) | |
tree | 359d2a334303f6e32582981efef6e6e0d6b69e01 /sc/source/ui | |
parent | cd71034b26a404c8f9b763865ef6ebdd0adeebb7 (diff) |
remove comphelper::string::remove
and replace it with OUString/OString::replaceAll
Change-Id: I37b1c3b51251dfd9d749d6f1060c75b3a93d7f1a
Reviewed-on: https://gerrit.libreoffice.org/26850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/docshell/docsh8.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/acredlin.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx index 7fa8dc5cd18b..caea9fd9fa87 100644 --- a/sc/source/ui/docshell/docsh8.cxx +++ b/sc/source/ui/docshell/docsh8.cxx @@ -510,7 +510,7 @@ void lcl_GetColumnTypes( if ( nToken > 1 ) { aFieldName = aString.getToken( 0, ',' ); - aString = comphelper::string::remove(aString, ' '); + aString = aString.replaceAll(" ", ""); switch ( aString.getToken( 1, ',' )[0] ) { case 'L' : diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx index 3121b36ee381..ade5249347ee 100644 --- a/sc/source/ui/miscdlgs/acredlin.cxx +++ b/sc/source/ui/miscdlgs/acredlin.cxx @@ -304,7 +304,7 @@ bool ScAcceptChgDlg::IsValidAction(const ScChangeAction* pScChangeAction) ScChangeActionType eType=pScChangeAction->GetType(); OUString aDesc; - OUString aComment = comphelper::string::remove(pScChangeAction->GetComment(), '\n'); + OUString aComment = pScChangeAction->GetComment().replaceAll("\n", ""); if(eType==SC_CAT_CONTENT) { @@ -429,7 +429,7 @@ SvTreeListEntry* ScAcceptChgDlg::InsertChangeAction( bIsGenerated = true; } - OUString aComment = comphelper::string::remove(pScChangeAction->GetComment(), '\n'); + OUString aComment = pScChangeAction->GetComment().replaceAll("\n", ""); if (!aDesc.isEmpty()) { @@ -600,7 +600,7 @@ SvTreeListEntry* ScAcceptChgDlg::InsertFilteredAction( aString += "\t"; } - OUString aComment = comphelper::string::remove(pScChangeAction->GetComment(), '\n'); + OUString aComment = pScChangeAction->GetComment().replaceAll("\n", ""); if (!aDesc.isEmpty()) { @@ -715,7 +715,7 @@ SvTreeListEntry* ScAcceptChgDlg::InsertChangeActionContent(const ScChangeActionC aString += "\t"; } - OUString aComment = comphelper::string::remove(pScChangeAction->GetComment(), '\n'); + OUString aComment = pScChangeAction->GetComment().replaceAll("\n", ""); if(!aDesc.isEmpty()) { |