diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-07-21 15:15:15 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-07-23 12:38:03 +0200 |
commit | 27bb16a920d461f25d9ea69a0b515f6b85aff5b6 (patch) | |
tree | 4b3987b9196c02a06d0838506156b2d56e07068a /sw/inc/swtypes.hxx | |
parent | 590f67e0c746aacca30a80da8de1956dbc0d8768 (diff) |
sw: get rid of MmToTwips function and use o3tl::convert instead
It's used in 1! place only (but could be others have been coverted
already).
Change-Id: I6ba9dbaf00afe7662321fa202eaaaa652d16e0b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119395
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw/inc/swtypes.hxx')
-rw-r--r-- | sw/inc/swtypes.hxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sw/inc/swtypes.hxx b/sw/inc/swtypes.hxx index 2a662a7ee2a2..e76b521b1f8b 100644 --- a/sw/inc/swtypes.hxx +++ b/sw/inc/swtypes.hxx @@ -52,10 +52,6 @@ typedef tools::Long SwTwips; #define INVALID_TWIPS LONG_MAX #define TWIPS_MAX (LONG_MAX - 1) -// Converts Millimeters to Twips (1 mm == 56.905479 twips). -template <typename T = SwTwips> -constexpr T MmToTwips(const double mm) { return static_cast<T>(mm / 0.017573); } - #define MM50 283 // 1/2 cm in TWIPS. const sal_Int32 COMPLETE_STRING = SAL_MAX_INT32; |