summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorIsamu Mogi <saturday6c@gmail.com>2014-05-30 20:18:49 +0900
committerThomas Arnhold <thomas@arnhold.org>2014-06-01 16:22:12 +0000
commit4452ac23224cc6fc9c575f1b128dd71f79e12d88 (patch)
treeb6eba110e5439f6734988e502f8f2960e5def7d2 /unotools
parentc84c2e4abad318f1be98d12599787a051dce2b50 (diff)
Fix hungarian prefix for calendars
Change-Id: I78b3c0a8d32610e86e09ab5ad6da6cc4e0395926 Reviewed-on: https://gerrit.libreoffice.org/9566 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/calendarwrapper.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/unotools/source/i18n/calendarwrapper.cxx b/unotools/source/i18n/calendarwrapper.cxx
index 5ca9ad966aff..fc11ee756d77 100644
--- a/unotools/source/i18n/calendarwrapper.cxx
+++ b/unotools/source/i18n/calendarwrapper.cxx
@@ -98,12 +98,12 @@ OUString CalendarWrapper::getUniqueID() const
return OUString();
}
-void CalendarWrapper::setDateTime( double nTimeInDays )
+void CalendarWrapper::setDateTime( double fTimeInDays )
{
try
{
if ( xC.is() )
- xC->setDateTime( nTimeInDays );
+ xC->setDateTime( fTimeInDays );
}
catch (const Exception& e)
{
@@ -160,7 +160,7 @@ sal_Int32 CalendarWrapper::getDSTOffsetInMillis() const
CalendarFieldIndex::DST_OFFSET_SECOND_MILLIS);
}
-void CalendarWrapper::setLocalDateTime( double nTimeInDays )
+void CalendarWrapper::setLocalDateTime( double fTimeInDays )
{
try
{
@@ -173,11 +173,11 @@ void CalendarWrapper::setLocalDateTime( double nTimeInDays )
// dates! (Which was the cause for #i76623# when the timezone of a
// previously set date was used.) Timezone may also include
// seconds, so use milliseconds field as well.
- xC->setDateTime( nTimeInDays );
+ xC->setDateTime( fTimeInDays );
sal_Int32 nZone1 = getZoneOffsetInMillis();
sal_Int32 nDST1 = getDSTOffsetInMillis();
- double nLoc = nTimeInDays - (double)(nZone1 + nDST1) / MILLISECONDS_PER_DAY;
- xC->setDateTime( nLoc );
+ double fLoc = fTimeInDays - (double)(nZone1 + nDST1) / MILLISECONDS_PER_DAY;
+ xC->setDateTime( fLoc );
sal_Int32 nZone2 = getZoneOffsetInMillis();
sal_Int32 nDST2 = getDSTOffsetInMillis();
// If DSTs differ after calculation, we crossed boundaries. Do it
@@ -187,8 +187,8 @@ void CalendarWrapper::setLocalDateTime( double nTimeInDays )
// http://www.erack.de/download/timetest.c
if ( nDST1 != nDST2 )
{
- nLoc = nTimeInDays - (double)(nZone2 + nDST2) / MILLISECONDS_PER_DAY;
- xC->setDateTime( nLoc );
+ fLoc = fTimeInDays - (double)(nZone2 + nDST2) / MILLISECONDS_PER_DAY;
+ xC->setDateTime( fLoc );
// #i17222# If the DST onset rule says to switch from 00:00 to
// 01:00 and we tried to set onsetDay 00:00 with DST, the
// result was onsetDay-1 23:00 and no DST, which is not what we
@@ -198,8 +198,8 @@ void CalendarWrapper::setLocalDateTime( double nTimeInDays )
sal_Int32 nDST3 = getDSTOffsetInMillis();
if ( nDST2 != nDST3 && !nDST3 )
{
- nLoc = nTimeInDays - (double)(nZone2 + nDST3) / MILLISECONDS_PER_DAY;
- xC->setDateTime( nLoc );
+ fLoc = fTimeInDays - (double)(nZone2 + nDST3) / MILLISECONDS_PER_DAY;
+ xC->setDateTime( fLoc );
}
}
}
@@ -216,11 +216,11 @@ double CalendarWrapper::getLocalDateTime() const
{
if ( xC.is() )
{
- double nTimeInDays = xC->getDateTime();
+ double fTimeInDays = xC->getDateTime();
sal_Int32 nZone = getZoneOffsetInMillis();
sal_Int32 nDST = getDSTOffsetInMillis();
- nTimeInDays += (double)(nZone + nDST) / MILLISECONDS_PER_DAY;
- return nTimeInDays;
+ fTimeInDays += (double)(nZone + nDST) / MILLISECONDS_PER_DAY;
+ return fTimeInDays;
}
}
catch (const Exception& e)