diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-18 21:03:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-19 21:11:02 +0000 |
commit | ca02d728082a86780d68ede7b9d565128dbc0434 (patch) | |
tree | 8c0a857ad73f89d592295f99e5f72a0c96e55e57 /sc/source/ui/miscdlgs/acredlin.cxx | |
parent | e4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff) |
remove [Byte]String::EraseAllChars
Diffstat (limited to 'sc/source/ui/miscdlgs/acredlin.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/acredlin.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx index 69585be38e1d..756c51254eef 100644 --- a/sc/source/ui/miscdlgs/acredlin.cxx +++ b/sc/source/ui/miscdlgs/acredlin.cxx @@ -29,6 +29,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sc.hxx" +#include <comphelper/string.hxx> #include <svl/undo.hxx> #include <unotools/textsearch.hxx> #include <unotools/localedatawrapper.hxx> @@ -339,8 +340,7 @@ bool ScAcceptChgDlg::IsValidAction(const ScChangeAction* pScChangeAction) String aString; String aDesc; - String aComment=pScChangeAction->GetComment(); - aComment.EraseAllChars('\n'); + String aComment = comphelper::string::remove(pScChangeAction->GetComment(), '\n'); if(eType==SC_CAT_CONTENT) { @@ -465,8 +465,8 @@ SvLBoxEntry* ScAcceptChgDlg::InsertChangeAction( bIsGenerated = true; } - String aComment=pScChangeAction->GetComment(); - aComment.EraseAllChars('\n'); + String aComment = comphelper::string::remove(pScChangeAction->GetComment(), '\n'); + if(aDesc.Len()>0) { aComment.AppendAscii(RTL_CONSTASCII_STRINGPARAM( " (" )); @@ -637,8 +637,8 @@ SvLBoxEntry* ScAcceptChgDlg::InsertFilteredAction( aString+='\t'; } - String aComment=pScChangeAction->GetComment(); - aComment.EraseAllChars('\n'); + String aComment = comphelper::string::remove(pScChangeAction->GetComment(), '\n'); + if(aDesc.Len()>0) { aComment.AppendAscii(RTL_CONSTASCII_STRINGPARAM( " (" )); @@ -747,8 +747,8 @@ SvLBoxEntry* ScAcceptChgDlg::InsertChangeActionContent(const ScChangeActionConte aString+='\t'; aString+='\t'; } - String aComment=pScChangeAction->GetComment(); - aComment.EraseAllChars('\n'); + + String aComment = comphelper::string::remove(pScChangeAction->GetComment(), '\n'); if(aDesc.Len()>0) { |