diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-29 10:06:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-29 16:48:42 +0200 |
commit | 2d2497dd3cea9ad01f7ade0b2bf4129083cd5875 (patch) | |
tree | 3c99f83a9b43cb68eabbfec5daabefca551e5f85 /svl | |
parent | 917fadedee4459ff75e78e1b746ba320503301e0 (diff) |
replace and drop MiscCfg
Change-Id: I5ea9e3663fc5d30d725cf18757badb9b9802da18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99675
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 7c1fa0da613e..d113c6b9f767 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -20,6 +20,7 @@ #include <sal/config.h> #include <sal/log.hxx> +#include <officecfg/Office/Common.hxx> #include <svl/zforlist.hxx> #include <svl/currencytable.hxx> @@ -37,8 +38,6 @@ #include <com/sun/star/i18n/XNumberFormatCode.hpp> #include <com/sun/star/i18n/NumberFormatMapper.hpp> #include <comphelper/processfactory.hxx> -#include <unotools/misccfg.hxx> - #include <osl/mutex.hxx> @@ -3488,7 +3487,7 @@ sal_uInt16 SvNumberFormatter::ExpandTwoDigitYear( sal_uInt16 nYear ) const sal_uInt16 SvNumberFormatter::GetYear2000Default() { if (!utl::ConfigManager::IsFuzzing()) - return static_cast<sal_uInt16>(::utl::MiscCfg().GetYear2000()); + return officecfg::Office::Common::DateFormat::TwoDigitYear::get(); return 1930; } |