diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-03 09:58:25 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-03 09:14:25 +0100 |
commit | 17dface79321c87b2d30a53a67aeda2e9f9dfff6 (patch) | |
tree | c2f7bc952071bfa7f3cee43a80eb544d4ffadb80 /include | |
parent | 996ca8ecfde2c9aa2f8b188f1f8eec3a912b2cd2 (diff) |
Drop TWIPS_PER_PIXEL and use o3tl::convert
Change-Id: I8ee3fddaccf6809c95319db1da9a1d2897d00c25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124626
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/o3tl/unit_conversion.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/o3tl/unit_conversion.hxx b/include/o3tl/unit_conversion.hxx index 7bee0ed397e5..27fb184d52a4 100644 --- a/include/o3tl/unit_conversion.hxx +++ b/include/o3tl/unit_conversion.hxx @@ -142,6 +142,9 @@ template <int N> constexpr auto prepareMDArray(const m_and_d (&mdBase)[N]) return a; } +// A generic template used for fundamental arithmetic types +template <typename U> constexpr sal_Int64 md(U i, U /*j*/) { return i; } + // Length units implementation // Array of conversion quotients for mm, used to build final conversion table. Entries |