office-gobmx/unotools
Mike Kaganski 7e5f69aa33 Make tools::Time ctor taking sal_Int64 private
This ctor is meant to set the value of nTime directly; and that value
is not nanoseconds, but an encoded value, using SEC_/MIN_/HOUR_MASK.
But in some places, this ctor was misused for setting of nanoseconds,
which would only accidentally work for values less than one second.
All places that initialized tools::Time with 0, now use EMPTY.

This makes the ctor private; and for the very few cases where really
the encoded value of nTime is stored / restored, fromEncodedTime is
introduced.

Change-Id: I1f1994bd9aab1b51a41b1de637619049fe820da4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175283
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-21 10:30:58 +02:00
..
inc/pch
qa loplugin:ostr in unotools 2024-05-16 11:36:10 +02:00
source Make tools::Time ctor taking sal_Int64 private 2024-10-21 10:30:58 +02:00
util
CppunitTest_unotools_configpaths.mk
CppunitTest_unotools_fontcvt.mk Use less boost_headers in low level libraries 2024-03-06 21:23:17 +01:00
CppunitTest_unotools_fontdefs.mk Use less boost_headers in low level libraries 2024-03-06 21:23:17 +01:00
IwyuFilter_unotools.yaml
JunitTest_unotools_complex.mk
Library_utl.mk Make isProductVersionUpgraded update ooSetupLastVersion again 2024-06-14 15:13:34 +02:00
Makefile
Module_unotools.mk
PythonTest_unotools_python.mk
README.md

UNO C++ Helpers

Helpers for C++ use of UNO.