office-gobmx/tools
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 loplugin:noexceptmove (macOS, LLVM 20 trunk libc++) 2024-09-30 11:21:34 +02:00
qa Make tools::Time ctor taking sal_Int64 private 2024-10-21 10:30:58 +02:00
source Make tools::Time ctor taking sal_Int64 private 2024-10-21 10:30:58 +02:00
CppunitTest_tools_config.mk
CppunitTest_tools_test.mk Drop FRound, and use generalized basegfx::fround 2024-04-17 03:56:59 +02:00
CppunitTest_tools_unique_id.mk move UniqueID to tools and rework to increase counter in constructor 2024-07-07 09:41:02 +02:00
CustomTarget_reversemap.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Executable_bestreversemap.mk
IwyuFilter_tools.yaml
Library_tl.mk move UniqueID to tools and rework to increase counter in constructor 2024-07-07 09:41:02 +02:00
Makefile
Module_tools.mk move UniqueID to tools and rework to increase counter in constructor 2024-07-07 09:41:02 +02:00
README.md
StaticLibrary_ooopathutils.mk

Old Tools (Deprecated)

Predates sal - string functions, url manipulation, stream stuff, polygons, etc.

Exact history is lost before Sept. 18th, 2000, but old source code comments show that part of the tools library dates back until at least April 1991.

This directory will be removed in the near future (see tdf#39445 or tdf#63154).