summaryrefslogtreecommitdiff
path: root/sw/source/ui/table/instable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/table/instable.cxx')
-rw-r--r--sw/source/ui/table/instable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx
index 9f8a711c4533..727fceb61242 100644
--- a/sw/source/ui/table/instable.cxx
+++ b/sw/source/ui/table/instable.cxx
@@ -33,7 +33,7 @@
#undef SW_DLLIMPLEMENTATION
#endif
-
+#include <comphelper/string.hxx>
#include <vcl/msgbox.hxx>
#include "wrtsh.hxx"
@@ -176,7 +176,7 @@ IMPL_LINK_INLINE_START( SwInsTableDlg, ModifyName, Edit *, pEdit )
String sTblName = pEdit->GetText();
if(sTblName.Search(' ') != STRING_NOTFOUND)
{
- sTblName.EraseAllChars( );
+ sTblName = comphelper::string::remove(sTblName, ' ');
pEdit->SetText(sTblName);
}