diff options
Diffstat (limited to 'sw/source/ui/fldui/inpdlg.cxx')
-rw-r--r-- | sw/source/ui/fldui/inpdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/fldui/inpdlg.cxx b/sw/source/ui/fldui/inpdlg.cxx index ed1b04bc45da..50f730a3a4d9 100644 --- a/sw/source/ui/fldui/inpdlg.cxx +++ b/sw/source/ui/fldui/inpdlg.cxx @@ -33,6 +33,7 @@ #undef SW_DLLIMPLEMENTATION #endif +#include <comphelper/string.hxx> #include <vcl/msgbox.hxx> #include <unotools/charclass.hxx> #include <editeng/unolingu.hxx> @@ -156,8 +157,7 @@ void SwFldInputDlg::StateChanged( StateChangedType nType ) void SwFldInputDlg::Apply() { - String aTmp( aEditED.GetText() ); - aTmp.EraseAllChars( '\r' ); + String aTmp(comphelper::string::remove(aEditED.GetText(), '\r')); rSh.StartAllAction(); sal_Bool bModified = sal_False; |