diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-07 14:26:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-08 10:03:13 +0200 |
commit | 24c079605645cf29ba366ca39b7c1177da8b317f (patch) | |
tree | f3a48d50a16cd3a72b688570f667bb8703663b83 /sc/source/ui/dbgui/csvruler.cxx | |
parent | d872c9e8a2f234956ee4af21bc10d639a0d83c10 (diff) |
convert sc/source/ui/dbgui/*.cxx from String to OUString
Change-Id: Iba489d8301f8885dee919e5a433281ce3761988f
Diffstat (limited to 'sc/source/ui/dbgui/csvruler.cxx')
-rw-r--r-- | sc/source/ui/dbgui/csvruler.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx index 7267a41a8050..3ea0d517fc18 100644 --- a/sc/source/ui/dbgui/csvruler.cxx +++ b/sc/source/ui/dbgui/csvruler.cxx @@ -41,7 +41,7 @@ using namespace com::sun::star::uno; static void load_FixedWidthList(ScCsvSplits &aSplits) { - String sSplits; + OUString sSplits; OUString sFixedWidthLists; Sequence<Any>aValues; @@ -59,12 +59,12 @@ static void load_FixedWidthList(ScCsvSplits &aSplits) aSplits.Clear(); pProperties[0] >>= sFixedWidthLists; - sSplits = String( sFixedWidthLists ); + sSplits = sFixedWidthLists; // String ends with a semi-colon so there is no 'int' after the last one. xub_StrLen n = comphelper::string::getTokenCount(sSplits, ';') - 1; for (xub_StrLen i = 0; i < n; ++i) - aSplits.Insert( sSplits.GetToken(i).ToInt32() ); + aSplits.Insert( sSplits.getToken(i, ';').toInt32() ); } } static void save_FixedWidthList(ScCsvSplits aSplits) @@ -590,7 +590,7 @@ void ScCsvRuler::ImplDrawBackgrDev() maBackgrDev.SetTextFillColor(); for( nPos = ((nFirstPos + 9) / 10) * 10; nPos <= nLastPos; nPos += 10 ) { - String aText( OUString::number( nPos ) ); + OUString aText( OUString::number( nPos ) ); sal_Int32 nTextWidth = maBackgrDev.GetTextWidth( aText ); sal_Int32 nTextX = GetX( nPos ) - nTextWidth / 2; ImplDrawArea( nTextX - 1, nTextWidth + 2 ); |