diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-11 16:42:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-11 20:18:18 +0000 |
commit | f8f18871b0293e8a8b5a9fa24a99e44902946ff4 (patch) | |
tree | 793e8c9de1bd8312df6611ee4291e0e3ff9e9927 /vcl/source/control | |
parent | beaa383389a4e66b914c0fad1ed8ee3a0339d848 (diff) |
longparas: convert GetMaxVisChars from xub_StrLen to sal_Int32
Change-Id: I25fcfc3ae5a599bbd7ebef3071895ec9dbf2949e
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/edit.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index dee721f0893b..85022c9a4d1e 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2957,12 +2957,12 @@ Size Edit::CalcSize( xub_StrLen nChars ) const // ----------------------------------------------------------------------- -xub_StrLen Edit::GetMaxVisChars() const +sal_Int32 Edit::GetMaxVisChars() const { const Window* pW = mpSubEdit ? mpSubEdit : this; - long nOutWidth = pW->GetOutputSizePixel().Width(); - long nCharWidth = GetTextWidth( OUString('x') ); - return nCharWidth ? (xub_StrLen)(nOutWidth/nCharWidth) : 0; + sal_Int32 nOutWidth = pW->GetOutputSizePixel().Width(); + sal_Int32 nCharWidth = GetTextWidth( OUString('x') ); + return nCharWidth ? nOutWidth/nCharWidth : 0; } // ----------------------------------------------------------------------- |