2f5f45921b
When I did the fast string concatenation, I didn't add any support for number(), which simply returned a O(U)String, and so it did the extra allocation/deallocation, although that could be avoided. In order to support this, number() now returns a special temporary return type, similarly to O(U)StringConcat, which allows delaying the concatenation the same way. Also similarly, the change of the return type in some cases requires explicit cast to the actual string type. Usage of OString::getStr() is so extensive in the codebase that I actually added it to the helper class, after that it's only relatively few cases. Change-Id: Iba6e158010e1e458089698c426803052b6f46031 Reviewed-on: https://gerrit.libreoffice.org/78873 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com> |
||
---|---|---|
.. | ||
inc | ||
qa | ||
source | ||
CppunitTest_tools_config.mk | ||
CppunitTest_tools_test.mk | ||
CustomTarget_reversemap.mk | ||
Executable_bestreversemap.mk | ||
IwyuFilter_tools.yaml | ||
Library_tl.mk | ||
Makefile | ||
Module_tools.mk | ||
README | ||
StaticLibrary_ooopathutils.mk |
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 fdo#39445 or fdo#63154).