convert some LogicToLogic calls to use o3tl::convert instead
commitfa339b3adb53300ae68913bed87e18caf9f2e262
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Mon, 9 Aug 2021 23:10:19 +0000 (10 08:10 +0900)
committerTomaž Vajngerl <quikee@gmail.com>
Wed, 11 Aug 2021 04:41:17 +0000 (11 06:41 +0200)
treee3aed1bb38664cfe343a6d7f0803d2312c86c76a
parente89404f00b25cfddd4098b4b2cf900d190617221
convert some LogicToLogic calls to use o3tl::convert instead

If a LogicToLogic uses fixed units, we can use o3tl::convert
instead. We can also do the same for all other cases where
LogicToLogic is used, but that needs additional investigation to
determine if it is safe to do so.

Note:
MapUnit::Pixel is converted to o3tl::Length::pt because it assumed
72 PPI for a logical pixel, which corresponds with the conversion
rate of a point (72 PPI).
Today, 96 PPI is standard, which is also used for o3tl::Length:px.

Change-Id: I29126df38bfcfda74b5d83d4cb880a378aecd18b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120230
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
33 files changed:
chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
chart2/source/controller/main/ChartWindow.cxx
cui/source/tabpages/chardlg.cxx
cui/source/tabpages/tpbitmap.cxx
desktop/source/lib/init.cxx
editeng/source/editeng/impedit.cxx
editeng/source/items/paperinf.cxx
extensions/source/propctrlr/fontdialog.cxx
o3tl/qa/test-unit_conversion.cxx
reportdesign/source/ui/dlg/Condition.cxx
reportdesign/source/ui/misc/UITools.cxx
sc/qa/unit/tiledrendering/tiledrendering.cxx
sc/source/filter/rtf/rtfparse.cxx
sc/source/ui/view/drawview.cxx
sc/source/ui/view/gridwin4.cxx
sc/source/ui/view/gridwin_dbgutil.cxx
sc/source/ui/view/viewdata.cxx
sd/qa/unit/tiledrendering/LOKitSearchTest.cxx
sd/source/core/annotations/Annotation.cxx
sd/source/core/drawdoc.cxx
sd/source/ui/view/Outliner.cxx
sd/source/ui/view/sdview.cxx
sd/source/ui/view/sdwindow.cxx
sfx2/source/control/unoctitm.cxx
sfx2/source/view/ipclient.cxx
svx/source/sdr/overlay/overlayobjectlist.cxx
svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
svx/source/svdraw/sdrpagewindow.cxx
svx/source/svdraw/svdmrkv.cxx
svx/source/tbxctrls/grafctrl.cxx
sw/source/uibase/dochdl/swdtflvr.cxx
sw/source/uibase/shells/textsh.cxx
vcl/source/treelist/transfer.cxx