diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-11 13:15:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-11 14:46:46 +0100 |
commit | 8f5629fd5aafc85e509a4160a11a285b0a66e7c0 (patch) | |
tree | 143883c85467b5ce9f5c665338e0f8a25067a0cd /dbaccess/source/ui/misc/RtfReader.cxx | |
parent | 2106d8e648449d34b195068eef5f672a14ea64a8 (diff) |
remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
Diffstat (limited to 'dbaccess/source/ui/misc/RtfReader.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/RtfReader.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/RtfReader.cxx b/dbaccess/source/ui/misc/RtfReader.cxx index 2ef4ccb86c36..4534c9528156 100644 --- a/dbaccess/source/ui/misc/RtfReader.cxx +++ b/dbaccess/source/ui/misc/RtfReader.cxx @@ -47,6 +47,7 @@ #include <connectivity/dbconversion.hxx> #include <connectivity/dbtools.hxx> #include <comphelper/extract.hxx> +#include <comphelper/string.hxx> #include <tools/color.hxx> #include "WExtendPages.hxx" #include "moduledbu.hxx" @@ -301,8 +302,7 @@ sal_Bool ORTFReader::CreateTable(int nToken) break; case RTF_CELL: { - aColumnName.EraseLeadingChars(); - aColumnName.EraseTrailingChars(); + aColumnName = comphelper::string::strip(aColumnName, ' '); if (!aColumnName.Len() || m_bAppendFirstLine ) aColumnName = String(ModuleRes(STR_COLUMN_NAME)); |