diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-09-03 16:47:06 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-09-03 19:32:28 +0200 |
commit | f12050bfb15580b564e342b704d5c55128fac644 (patch) | |
tree | e4a825d72c93548bf7ec39e7a8325855d58b288e /basic | |
parent | 07dcb0dab759d4ab535d99c0e6d326959906b87e (diff) |
Make ImpSvNumberformatScan::GetColor const
Change-Id: Idbcce18029944ab884cdde03e21190cbb574a00f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102005
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/methods.cxx | 6 | ||||
-rw-r--r-- | basic/source/runtime/methods1.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxdate.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 7f43ee0c7c60..7fcf5cecd40a 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -2259,7 +2259,7 @@ void SbRtl_Time(StarBASIC *, SbxArray & rPar, bool bWrite) nSeconds += aTime.GetMin() * 60; nSeconds += aTime.GetSec(); double nDays = static_cast<double>(nSeconds) * ( 1.0 / (24.0*3600.0) ); - Color* pCol; + const Color* pCol; std::shared_ptr<SvNumberFormatter> pFormatter; sal_uInt32 nIndex; @@ -2305,7 +2305,7 @@ void SbRtl_Date(StarBASIC *, SbxArray & rPar, bool bWrite) if( pMeth->IsString() ) { OUString aRes; - Color* pCol; + const Color* pCol; std::shared_ptr<SvNumberFormatter> pFormatter; sal_uInt32 nIndex; @@ -3074,7 +3074,7 @@ void SbRtl_FileDateTime(StarBASIC *, SbxArray & rPar, bool) double nDays = static_cast<double>(nSeconds) / (24.0*3600.0); fSerial += nDays; - Color* pCol; + const Color* pCol; std::shared_ptr<SvNumberFormatter> pFormatter; sal_uInt32 nIndex; diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index 898fc0329672..fdf4e9560b1b 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -2327,7 +2327,7 @@ void SbRtl_FormatDateTime(StarBASIC *, SbxArray & rPar, bool) LanguageType eLangType = Application::GetSettings().GetLanguageTag().getLanguageType(); const sal_uInt32 nIndex = pFormatter->GetFormatIndex( NF_DATE_SYSTEM_LONG, eLangType ); - Color* pCol; + const Color* pCol; pFormatter->GetOutputString( dDate, nIndex, aRetStr, &pCol ); break; } diff --git a/basic/source/sbx/sbxdate.cxx b/basic/source/sbx/sbxdate.cxx index e716b57eeac8..ebfbda55aa02 100644 --- a/basic/source/sbx/sbxdate.cxx +++ b/basic/source/sbx/sbxdate.cxx @@ -280,7 +280,7 @@ start: { p->pOUString = new OUString; } - Color* pColor; + const Color* pColor; LanguageType eLangType = Application::GetSettings().GetLanguageTag().getLanguageType(); std::shared_ptr<SvNumberFormatter> pFormatter; diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index 36b62376fbb0..fe86154e8a2b 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -693,7 +693,7 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const // locale in case the formatter wasn't default created with it. sal_uInt32 nIndex = pFormatter->GetStandardIndex( eLangType); double nNumber; - Color* pCol; + const Color* pCol; bool bSuccess = pFormatter->IsNumberFormat( aStr, nIndex, nNumber ); |