diff options
author | Hossein <hossein@libreoffice.org> | 2021-11-16 12:56:49 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-16 15:54:30 +0100 |
commit | b0ce4e848f786a2f452a6a6e426df4b95af4da3c (patch) | |
tree | 2d1c2b9b981e89c334246523155f03cb69e8d23c /i18npool/inc | |
parent | 84b817130a1b19591c3add9af5db0f42af64be68 (diff) |
Use basegfx::deg2rad instead of *0.01745329251994
* Replaced multiplying by magic number 0.01745329251994 with
basegfx::deg2rad() which is equal to M_PI/180.0
* Instances of this could be found using:
git grep 0.01745329251994 *.cxx *.hxx
Change-Id: Ib813251f6223e4218fe977c0211732c22199295d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125294
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/calendar_hijri.hxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/i18npool/inc/calendar_hijri.hxx b/i18npool/inc/calendar_hijri.hxx index f8511842d6a7..9732ca373155 100644 --- a/i18npool/inc/calendar_hijri.hxx +++ b/i18npool/inc/calendar_hijri.hxx @@ -37,9 +37,6 @@ private: void mapToGregorian() override; void mapFromGregorian() override; - // radians per degree (pi/180) - static const double RadPerDeg; - // Synodic Period (mean time between 2 successive new moon: 29d, 12 hr, 44min, 3sec static const double SynPeriod; |