diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 01:10:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 09:50:11 +0000 |
commit | c364fc1fc3555fc26dbcc04feaac2436cb8b6b7d (patch) | |
tree | ba1eab5a91176145e8d054e09d80bb9968bacba7 /vcl/source | |
parent | 1b7a5c634a22dee2f7d6e9f3d82820765725943a (diff) |
longparas: xub_StrLen to sal_Int32
Change-Id: Ib3eb5f9df112696b326bb30e4deed49d37f30c86
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/edit.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 3 | ||||
-rw-r--r-- | vcl/source/control/spinfld.cxx | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index d260b078f708..3a5e5791b47d 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2942,7 +2942,7 @@ Size Edit::GetOptimalSize() const // ----------------------------------------------------------------------- -Size Edit::CalcSize( xub_StrLen nChars ) const +Size Edit::CalcSize(sal_Int32 nChars) const { // width for N characters, independent from content. // works only correct for fixed fonts, average otherwise diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index e15898defa45..972447458935 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -2154,12 +2154,11 @@ void ImplListBoxWindow::ScrollHorz( long n ) // ----------------------------------------------------------------------- -Size ImplListBoxWindow::CalcSize( sal_uInt16 nMaxLines ) const +Size ImplListBoxWindow::CalcSize(sal_Int32 nMaxLines) const { // FIXME: LISTBOX_ENTRY_FLAG_MULTILINE Size aSz; -// sal_uInt16 nL = Min( nMaxLines, mpEntryList->GetEntryCount() ); aSz.Height() = nMaxLines * mnMaxHeight; aSz.Width() = mnMaxWidth + 2*mnBorder; return aSz; diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index f070dfa2cfd4..6f619ccc62cc 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -1005,7 +1005,7 @@ Size SpinField::GetOptimalSize() const // ----------------------------------------------------------------------- -Size SpinField::CalcSize( sal_uInt16 nChars ) const +Size SpinField::CalcSize(sal_Int32 nChars) const { Size aSz = Edit::CalcSize( nChars ); |