diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-04 23:58:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-09 12:16:56 +0100 |
commit | 104261010aa5ccbb7df4a82a3a3cafcfb0591fa7 (patch) | |
tree | b8db79d2707ff5925ad01dba8a41bd8ab6d66847 /vcl/source/control | |
parent | 1a1e953ee33c213dc8b88dd96a69ca9fc5e42d50 (diff) |
some UniString->rtl::OUString
Change-Id: Ie69b30094da25df23a36baca2c7723d6a41f48c3
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/edit.cxx | 4 | ||||
-rw-r--r-- | vcl/source/control/lstbox.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index adeaf5ca6ddf..8c47e2c51555 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2880,7 +2880,7 @@ Size Edit::CalcSize( xub_StrLen nChars ) const { // width for N characters, independent from content. // works only correct for fixed fonts, average otherwise - Size aSz( GetTextWidth( XubString( 'x' ) ), GetTextHeight() ); + Size aSz( GetTextWidth( rtl::OUString('x') ), GetTextHeight() ); aSz.Width() *= nChars; aSz = CalcWindowSize( aSz ); return aSz; @@ -2892,7 +2892,7 @@ xub_StrLen Edit::GetMaxVisChars() const { const Window* pW = mpSubEdit ? mpSubEdit : this; long nOutWidth = pW->GetOutputSizePixel().Width(); - long nCharWidth = GetTextWidth( XubString( 'x' ) ); + long nCharWidth = GetTextWidth( rtl::OUString('x') ); return nCharWidth ? (xub_StrLen)(nOutWidth/nCharWidth) : 0; } diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx index d0bb734309a3..bf12e2d1c0b6 100644 --- a/vcl/source/control/lstbox.cxx +++ b/vcl/source/control/lstbox.cxx @@ -1400,7 +1400,7 @@ Size ListBox::CalcSize( sal_uInt16 nColumns, sal_uInt16 nLines ) const // Breite if ( nColumns ) - aSz.Width() = nColumns * GetTextWidth( XubString( 'X' ) ); + aSz.Width() = nColumns * GetTextWidth( rtl::OUString('X') ); else aSz.Width() = aMinSz.Width(); |