diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-22 23:40:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 10:10:09 +0000 |
commit | b7ea36101497c275cb08b0e37facbde656197d9b (patch) | |
tree | a05e25d4f01c94c69712d17a1ab4cdbc925ef355 /extensions | |
parent | 62d880f3228c7f5c3f8a1d30f5a5c9ed390a1eb5 (diff) |
add stripStart, can replace EraseTrailingChars
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/browserline.cxx | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx index e337bc6fe146..0105e346b88a 100644 --- a/extensions/source/propctrlr/browserline.cxx +++ b/extensions/source/propctrlr/browserline.cxx @@ -30,19 +30,17 @@ #include "precompiled_extensions.hxx" #include "browserline.hxx" -/** === begin UNO includes === **/ #include <com/sun/star/inspection/PropertyLineElement.hpp> #include <com/sun/star/graphic/XGraphicProvider.hpp> -/** === end UNO includes === **/ -#include <vcl/svapp.hxx> +#include <comphelper/componentcontext.hxx> +#include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <tools/debug.hxx> #include <tools/diagnose_ex.h> #include <tools/urlobj.hxx> #include <toolkit/helper/vclunohelper.hxx> - -#include <comphelper/processfactory.hxx> -#include <comphelper/componentcontext.hxx> +#include <vcl/svapp.hxx> //............................................................................ namespace pcr @@ -306,16 +304,16 @@ namespace pcr //------------------------------------------------------------------ XubString OBrowserLine::GetTitle() const { - String sDisplayName = m_aFtTitle.GetText(); + rtl::OUString sDisplayName = m_aFtTitle.GetText(); - // for Issue 69452 - if (Application::GetSettings().GetLayoutRTL()) - { - sal_Unicode cRTL_mark = 0x200F; - sDisplayName.EraseTrailingChars(cRTL_mark); - } + // for Issue 69452 + if (Application::GetSettings().GetLayoutRTL()) + { + sal_Unicode cRTL_mark = 0x200F; + sDisplayName = comphelper::string::stripEnd(sDisplayName, cRTL_mark); + } - sDisplayName.EraseTrailingChars( '.' ); + sDisplayName = comphelper::string::stripEnd(sDisplayName, '.'); return sDisplayName; } |