diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-09-18 00:05:54 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-25 22:06:48 +0000 |
commit | 8a183e1a7dec63742d6438adc0aa03b9b02396c3 (patch) | |
tree | 9f08356ae66a4824569a594bc20007562b67e77f /sw/source/ui/table | |
parent | 96d97654611386eae3254ce184b9ad0944d37879 (diff) |
String to OUString
Change-Id: Iee0d6356ad8f06d97f7fa25223f3429857b1309f
Reviewed-on: https://gerrit.libreoffice.org/6024
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/table')
-rw-r--r-- | sw/source/ui/table/instable.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx index db78747aa3d0..4b86528224b7 100644 --- a/sw/source/ui/table/instable.cxx +++ b/sw/source/ui/table/instable.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <comphelper/string.hxx> #include <vcl/msgbox.hxx> #include "wrtsh.hxx" @@ -145,10 +144,10 @@ SwInsTableDlg::~SwInsTableDlg() IMPL_LINK_INLINE_START( SwInsTableDlg, ModifyName, Edit *, pEdit ) { - String sTblName = pEdit->GetText(); - if(sTblName.Search(' ') != STRING_NOTFOUND) + OUString sTblName = pEdit->GetText(); + if (sTblName.indexOf(' ') != -1) { - sTblName = comphelper::string::remove(sTblName, ' '); + sTblName = sTblName.replaceAll(" ", ""); pEdit->SetText(sTblName); } |