diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 22:17:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 23:16:45 +0000 |
commit | 709c1f365b3bdd0d46ec4f1ddc244580a0dfa637 (patch) | |
tree | 63668e23e125bf3fd1921f906cc269ed6ece8f38 /sw | |
parent | 868bd3b778b6c7b970c67d1dacc469967f69e551 (diff) |
remove various EraseLeadingAndTrailingChars
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/rtf/rtffld.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par5.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/rtf/rtffld.cxx b/sw/source/filter/rtf/rtffld.cxx index 44563d0c3ca3..43af25460b31 100644 --- a/sw/source/filter/rtf/rtffld.cxx +++ b/sw/source/filter/rtf/rtffld.cxx @@ -408,7 +408,7 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr ) case RTFFLD_IMPORT: { - aSaveStr.EraseLeadingAndTrailingChars(); + aSaveStr = comphelper::string::strip(aSaveStr, ' '); if( aSaveStr.Len() ) { sal_Unicode c = aSaveStr.GetChar( 0 ); diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index 6287d8ce3bd4..edf4c7c7de0f 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -3444,10 +3444,10 @@ eF_ResT SwWW8ImplReader::Read_F_Hyperlink( WW8FieldDesc* /*pF*/, String& rStr ) String sURL, sTarget, sMark; bool bDataImport = false; - //HYPERLINk "filename" [switches] + //HYPERLINK "filename" [switches] bool bOptions=false; - rStr.EraseTrailingChars( 1 ); + rStr = comphelper::strip::stripEnd(rStr, 1); if (!bDataImport) { diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 1d0d189336bb..032bf4a238a6 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -6251,7 +6251,7 @@ void lcl_checkFontname( String& sString ) if( bFound ) { sString = comphelper::string::remove(sString, 1); - sString.EraseLeadingAndTrailingChars( sal_Unicode( ';' ) ); + sString = comphelper::string::strip(aString, ';'); } } |