office-gobmx/editeng/source/items
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
..
borderline.cxx tdf#147021 Use std::size instead of SAL_N_ELEMENTS in editeng 2024-07-24 10:32:08 +02:00
bulitem.cxx
charhiddenitem.cxx
CustomPropertyField.cxx
flditem.cxx Make tools::Time ctor taking sal_Int64 private 2024-10-21 10:30:58 +02:00
frmitems.cxx tdf#158556 make SvxRightMarginItem hashable 2024-08-24 09:01:21 +02:00
itemtype.cxx tdf#147021 Use std::size instead of SAL_N_ELEMENTS in editeng 2024-07-24 10:32:08 +02:00
justifyitem.cxx
legacyitem.cxx
numitem.cxx
optitems.cxx
paperinf.cxx
paraitem.cxx tdf#158556 make SvxAdjustItem hashable 2024-08-24 09:01:29 +02:00
svdfield.cxx
svxfont.cxx
textitem.cxx tdf#158556 make SvxColorItem hashable 2024-08-23 16:44:41 +02:00
writingmodeitem.cxx
xmlcnitm.cxx