summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNalini Prasad Dash <nnnalinidash@protonmail.com>2022-11-23 17:09:55 +0530
committerStephan Bergmann <sbergman@redhat.com>2022-12-08 22:44:38 +0000
commit855bf4d68865ef046c8f527bf19e3ec78c7b033a (patch)
tree597d4ca0059af5a1e510a60b680c1fd3df717ff4 /forms
parent0569a84c16e6ee6ed6f4fb52c23ed6dfe4225cdf (diff)
tdf#114441 - Convert use of sal_uLong to better integer types
The variable type of nHeight was changed as the return type of pFontHeightItem->GetHeight() is sal_uInt32.Also nBit was assigned the underlying datatype of LB(int) as it was checked against LB::LAST(Value converted to underlying datatype of LB) in the for loop . Change-Id: I657d545ac7af1786edd61569ba43b42e55d1f47b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143145 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/richtext/rtattributehandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/richtext/rtattributehandler.cxx b/forms/source/richtext/rtattributehandler.cxx
index 582b451a8423..b5cfb55b7820 100644
--- a/forms/source/richtext/rtattributehandler.cxx
+++ b/forms/source/richtext/rtattributehandler.cxx
@@ -320,7 +320,7 @@ namespace frm
if ( pFontHeightItem )
{
// by definition, the item should have the unit twip
- sal_uLong nHeight = pFontHeightItem->GetHeight();
+ sal_uInt32 nHeight = pFontHeightItem->GetHeight();
if ( _rAttribs.GetPool()->GetMetric( getWhich() ) != MapUnit::MapTwip )
{
nHeight = OutputDevice::LogicToLogic(
@@ -347,7 +347,7 @@ namespace frm
if ( !pFontHeightItem )
return;
- sal_uLong nHeight = pFontHeightItem->GetHeight();
+ sal_uInt32 nHeight = pFontHeightItem->GetHeight();
if ( _rNewAttribs.GetPool()->GetMetric( getWhich() ) != MapUnit::MapTwip )
{
nHeight = OutputDevice::LogicToLogic(