summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-08-11 13:13:35 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-08-11 14:19:24 +0200
commitbfed58821fc3a83fec4a985087cd45fa963bed3e (patch)
tree427156ed03b2b72069e47d9f1250dc36670c09cf /sw/source/uibase/utlui
parentc46950fee11f5207fb8324947280cd565ae483e7 (diff)
Drop convertMm100ToTwip in favor of the new o3tl::toTwips
Step by step, duplicates from <tools/UnitConversion.hxx> may go Change-Id: Id4c03ff8adc120ae06dbfdbdfb4f5ff0bb51f489 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120315 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r--sw/source/uibase/utlui/uiitems.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/utlui/uiitems.cxx b/sw/source/uibase/utlui/uiitems.cxx
index de816541cb07..7088018ccb63 100644
--- a/sw/source/uibase/utlui/uiitems.cxx
+++ b/sw/source/uibase/utlui/uiitems.cxx
@@ -129,7 +129,7 @@ bool SwPageFootnoteInfoItem::PutValue(const Any& rVal, sal_uInt8 nMemberId)
bRet = false;
else
{
- nSet32 = convertMm100ToTwip(nSet32);
+ nSet32 = o3tl::toTwips(nSet32, o3tl::Length::mm100);
switch(nMemberId & ~CONVERT_TWIPS)
{
case MID_FTN_HEIGHT: aFootnoteInfo.SetHeight(nSet32); break;
@@ -143,7 +143,7 @@ bool SwPageFootnoteInfoItem::PutValue(const Any& rVal, sal_uInt8 nMemberId)
sal_Int16 nSet = 0;
rVal >>= nSet;
if(nSet >= 0)
- aFootnoteInfo.SetLineWidth(convertMm100ToTwip(nSet));
+ aFootnoteInfo.SetLineWidth(o3tl::toTwips(nSet, o3tl::Length::mm100));
else
bRet = false;
}