summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/view/tabvwshe.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-11 13:15:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-11 14:46:46 +0100
commit8f5629fd5aafc85e509a4160a11a285b0a66e7c0 (patch)
tree143883c85467b5ce9f5c665338e0f8a25067a0cd /sc/source/ui/view/tabvwshe.cxx
parentcallcatcher: update unused code (diff)
downloadcore-8f5629fd5aafc85e509a4160a11a285b0a66e7c0.tar.gz
core-8f5629fd5aafc85e509a4160a11a285b0a66e7c0.zip
remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
Diffstat (limited to 'sc/source/ui/view/tabvwshe.cxx')
-rw-r--r--sc/source/ui/view/tabvwshe.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwshe.cxx b/sc/source/ui/view/tabvwshe.cxx
index 08195cb4b0f7..f3c678f3ce16 100644
--- a/sc/source/ui/view/tabvwshe.cxx
+++ b/sc/source/ui/view/tabvwshe.cxx
@@ -26,6 +26,7 @@
*
************************************************************************/
+#include <comphelper/string.hxx>
#include <editeng/eeitem.hxx>
#include "scitems.hxx"
@@ -122,7 +123,7 @@ String ScTabViewShell::GetSelectionText( sal_Bool bWholeWord )
while ( (nAt = aStrSelection.Search( '\t' )) != STRING_NOTFOUND )
aStrSelection.SetChar( nAt, ' ' );
- aStrSelection.EraseTrailingChars( ' ' );
+ aStrSelection = comphelper::string::stripEnd(aStrSelection, ' ');
}
}
}