Commit Graph
1167 Commits
Author SHA1 Message Date
Andrea Gelmini df1fc5565a Fix typos
Change-Id: Id2f93ee6fd368007d515604a011331f284b1d705
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209483
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2026-09-02 07:40:32 +02:00
Andrea Gelmini d258ffe6cc Fix typo in code
Change-Id: Ib8f421fad6bcbbf8ebf31391028015190dd0ceac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209482
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-23 10:20:35 +02:00
Andrea Gelmini 0dcee64773 Fix typo in code.
Make getSystemDependantDataInternal (with "a") in
getSystemDependentDataInternal (with "e") to have it
coherent with addOrReplaceSystemDependentDataInternal and the class
addOrReplaceSystemDependentDataInternal

Change-Id: Id56d54c0981752f09387d43a3eb33fab81ccd5c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209484
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-23 10:20:08 +02:00
Andrea Gelmini 335726898d Fix typos
Change-Id: Idab619de99649c2fb0a1920844cb07e5ede9691c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209474
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-22 10:25:17 +02:00
Andrea Gelmini cf0a1268e3 Fix typos
Change-Id: Ib8964b0b98005da480826cfdd2c64bd68c88575c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209460
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-22 10:15:11 +02:00
Regina Henschel 28341a6927 Adds color interpolation in the HSL color model
The patch adds a color interpolation in the HSL color model to the
BColor tools and extends the 'Duplicate' dialog to include these new
color interpolations.

This patch also solves bug tdf#173142.

Change-Id: Ie7f15d65f20b6a8d116c2ac03a57540e6be25ae1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209366
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2026-08-21 14:06:08 +02:00
Andrea Gelmini 6347abedcf Fix typo
Change-Id: I007528d68712ce70acb7120228b770a21cb3a544
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209371
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-20 07:47:09 +02:00
Xisco Fauli 8c674c1a14 cid#1695417: silence Division or modulo by float zero
Change-Id: I82d38055cf8ed40afa4d64216fa77193280cabd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207948
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-07-11 09:11:18 +02:00
Tomaž Vajngerl a3253ebf8d basegfx: speed up B2DHomMatrix a bit
translate/scale/rotate/shearX/shearY each used to build a
temporary B2DHomMatrix in the obvious sparse form and run the
generic doMulMatrix to combine it with *this, which multiplies and
adds a lot of zeros for every call. Make it faster by applying each
transform directly to the six stored cells instead.

Also unroll doMulMatrix itself (caching the six old values in
locals since the result overwrites them) and unroll the isIdentity
/ identity loops.

Using the micro-bench the speedup can be 50% for translate and
shear operations. In practice this will not have much measurable
effect (it could accumulate as B2DHomMatrix is used a lot for
rendering) but as the code is also more straight forward it is
worth merging.

Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: If13d91d4c7353be4e4433d8d8bb7f40866578a5b
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2755
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 3db39371454fa7de994dbc9b214668a4818ed357)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205801
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-06-16 22:27:31 +02:00
Tomaž Vajngerl 46ab3f7681 basegfx: optimize B2DRange and B2DPolygon transform
Use the Arvo method for B2DRange::transform(), which computes the
new AABB directly from matrix element signs instead of transforming
all 4 corners. This reduces multiplications from 16 to 8 and
eliminates temporary B2DPoint construction and expand() branching.
Benchmark shows about 2.8x speedup.

For polygon transform, extract matrix values once before the loop
instead of calling rMatrix.get() per point. Applies to both the
simple point path and the Bezier control vector path.
Benchmark shows about 1.45x speedup.

Change-Id: I56c1b415fd59dc24a5bec515d952064dee46403e
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2870
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 6d682b4c9ae3e177a97be68ebeb7383c0148601d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205802
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-09 11:46:22 +02:00
Andrea Gelmini d0aa314f2f Fix typo
Change-Id: I611cb79df4eec5f264f1ab0de4130ddf55cc8181
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206159
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Tested-by: Jenkins
2026-06-05 23:24:23 +02:00
Armin Le Grand (collabora) 52ec9f11d8 CairoSDPR: Improve buffering of huge BitmapData
We already did some improvements, but I wanted to clean
this up somewhat. Reason for the needed corrections was
in principle the sqrt()-based general calculation of
the HoldTime in the default implementation of
calculateCombinedHoldCyclesInSeconds. The original idea
was to hold huge data shorter due to memory constraints.
To solve that we added an adapted version to
CairoPixelProcessor2D.

With lessons learned I decided to remove that and
provide a revised general implementation based on linear
scaling of the HoldTime. Based on assuming the seen
huge Bitmap and estimating 20min for it, just create a
factor and multiply with SizeInBytes.

I checked that and it works as intended. It will spare
us from this problem re-occurring with future SDPRs.

NOTE: This still keeps the CairoSDPR-specific avoiding
of buffering of small Bitmaps when these are available
from Bitmap directly. This stays useful and is
Cairo-specific.

Signed-off-by: Armin Le Grand (collabora) <Armin.LeGrand@collabora.com>
Change-Id: I30c7361c6fbfaf0be90be353091cbaf831db5cd2
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2005
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
(cherry picked from commit a3d3ae5e931a04ff5718382ccffe9f16de336a42)
(cherry picked from commit 7550c6ea0bb82f7574e4b974f8d24bd1662a878b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205991
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-06-05 08:43:16 +02:00
Andras Timar a0c1379009 basegfx: shorten line to centerline notch for concave-back arrows
EMF+ custom line caps (and any caller that supplies a notched arrow
polygon) left a visible triangular gap between the line shaft and the
arrowhead: createAreaGeometryForLineStartEnd shortened the line by the
polygon's full Y extent (out to the back wings) even though the
centerline exits the polygon interior earlier, at the back-of-cap notch.

Detect that case by computing the X=0 crossings of the transformed
arrow polygon and reducing the consumed line length to the first
crossing above Y=0 when the centerline is interior at Y=0+. Simple
convex caps (triangles, squares, etc.) are unaffected because their
centerline is interior all the way to the polygon back.

Includes basegfx unit tests covering both the notched-arrow case (line
must stop at the notch, not the wings) and a simple triangle (line
still consumed for full polygon length).

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I68618c7b2ac7cb5de0a2311d642478218de92652
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2208
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit fc0881223c9c5a01fb07aeb73bdc849caf981fbc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205088
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-12 14:50:58 +02:00
Xisco Fauli cfd3309a5d loplugin:unusedmethods
Check existing ones that can be removed

Change-Id: I6ee6fc1772c620ac5d12fea915681b094b7c3bfd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204583
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-04-30 08:54:45 +02:00
Andrea Gelmini 23e66a1c71 Fix typo "then"->"than"
Change-Id: I1fb43e16d4a15b7e2cb15939fac408322e3531a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202913
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-03-29 09:46:56 +02:00
Noel Grandin a7a44cb89a cool#15052 reduce time spent calculating selection outline
when it gets complex the solvePolygonOperationOr() algorithm
becomes rather expensive. But we can do much better in this
case since we know we only have rectangles.

Change-Id: I2fdfce7925e843e25f11890dac2c96ce21f3be67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202261
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-03-22 14:08:45 +01:00
Noel Grandin 6993d54041 std::lround is unnecessary here
because we are then casting to a type <=32 bits

Change-Id: Ief4a93724ccbae8d697edbd40e4085389d74473f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202156
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-03-19 15:27:43 +01:00
ayagamal-tech 9830fe8d39 tdf#146619 Remove unused #include b2dpolypolygontools.hxx from basegfx
Change-Id: I870d5c2964617eb4f615d63a16d9e380721c379f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198229
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-30 18:45:15 +01:00
Gabor Kelemen 3fc666e120 Fix some non self contained headers in modules [a-r]*
Change-Id: I844cfcfa2bc31fae0256e0c7b757b6223ac8ac35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196633
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-18 00:34:04 +01:00
Tomaž Vajngerl d37666e14f basegfx: don't allow in-place changing of BColorStops externally
All the changes should go through BColorStops interface and not
directly.

Change-Id: I4c6dd42f8d6b6c43cdcf9d53557ccb12f8d0507c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195386
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2025-12-15 04:07:44 +01:00
Tomaž Vajngerl 959decdcda basegfx: BColorStops shouldn't derive from std::vector
Change-Id: I9f246c0d9a5ddc7f8cf428bf7fc8c8957e8584b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158710
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2025-12-08 13:40:28 +01:00
Caolán McNamara 3305cb9eac cid#1659880 Division or modulo by float zero
Change-Id: I671b336f0b29302bd754930295ab274e95d9564f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195041
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-12-05 11:14:09 +01:00
Caolán McNamara d5a3cd6f12 cid#1664877 Division or modulo by float zero
in the unlikely case that fLength was 0f, then while we might (float)
divide by it and get some junk value, we multiply that by fLength of 0f
anyway so it would be a no-op

cid#1664878 Division or modulo by float zero
cid#1664879 Division or modulo by float zero
cid#1659880 Division or modulo by float zero

Change-Id: I8a0bf9f04975af252e59f9e15247871f915c8037
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194829
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-30 12:51:46 +01:00
Gabor Kelemen fd2e467ba3 tdf#146619 Run IWYU in fw decl mode on include/[a-c]*
After recent commit 851fb75779
recheck these directories in include/ again
to test drive the new --headersfwd mode of bin/find-unneeded-includes

Change-Id: I0ede437c4f9958cd98210ed1760a5b98ea8bd1ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192377
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-08 09:37:19 +01:00
Caolán McNamara 8d6dc45416 cid#1659813 Division or modulo by float zero
in unused code, so lets just remove it

Change-Id: I95b3441dd9ae2efcc5fe3d93c37f3062c1bc8edb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193008
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-10-27 11:00:32 +01:00
Noel Grandin 40e5bc6e68 lets have just one getB2DRange function/method
Change-Id: I5081abca177c6fb8bd21d971d93dc115d57de294
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192589
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-10-19 12:13:53 +02:00
Gabor Kelemen 851fb75779 tdf#146619 Run IWYU again on include/[a-c]*
Change-Id: I301b0d5585aa488e26ac5c3c2312043cd316671c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191910
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
2025-10-08 17:16:34 +02:00
ihtgoot 96585f14bb tdf#145614: Converted FACTOR_FOR_UNSHARPEN to constexpr
Change-Id: Ifc95624916b4509a87fcdeefccdaa6c581d23025
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190569
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2025-09-07 12:34:01 +02:00
Caolán McNamara dc584b4dd8 always pass fCandidateLength in at the boundary
Change-Id: Idcddf4e576bb74f241c532fbf66b8772f3cd1c6f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189932
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-20 09:25:44 +02:00
Caolán McNamara f2eda851f7 cid#1660547 avoid Division or modulo by float zero warning
and

cid#1659880 Division or modulo by float zero

drop the default arguments, they are always explicitly set
except for one single case.

Change-Id: I1fce4e7f6ff5c9421c40628e0b6a1e291650e51c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189862
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-18 16:30:36 +02:00
Caolán McNamara d3fcc9a5b6 drop apparently no longer needed coverity markup
Change-Id: Ia8b3b271bb5cc67131b50d563bed58400da5b317
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189662
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-15 11:25:12 +02:00
sahibjot b1309bcc8f tdf#145614 convert #define to constexpr
Change-Id: Ibb0d081992e6cab81a83096f94596184e9233b40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188642
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-08-11 07:50:40 +02:00
Caolán McNamara b88e89a8f6 cid#1659717 silence Division or modulo by float zero
Change-Id: Ib27714f5e1d79ff1880a7bf15ad108acc21dc610
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189161
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-09 00:45:39 +02:00
Gabor Kelemen 9d371029dd tdf#146619 Run IWYU on basegfx/
Change-Id: If2facc4c6c53d1981fd19bee9be483551471f5bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188481
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-08-06 18:41:42 +02:00
Caolán McNamara d89d5dbaa3 cid#1659722 Division or modulo by float zero
Change-Id: Ibc49973a7d2b7660187f8801dd88a95bcd57e0f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188893
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-04 12:37:10 +02:00
Caolán McNamara e102e77cdf cid#1659622 silence Division or modulo by float zero
and

cid#1659712 Division or modulo by float zero

Change-Id: Ib13a4f2c5cabad62db2099a83fb8fdeae38d6f99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188889
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-04 12:36:56 +02:00
Caolán McNamara a87e99e1b1 cid#1659963 Division or modulo by float zero
Change-Id: I9172cd18e82faada2b603543488e0b0e882da18a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188818
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-02 16:05:57 +02:00
Caolán McNamara da2bf456f5 cid#1659873 Division or modulo by float zero
Change-Id: Ibdac1a3a99395ca2023d91150608c600c01ad206
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188717
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-01 13:29:54 +02:00
Caolán McNamara 36ddba2f47 cid#1659840 silence Division or modulo by float zero
Change-Id: Idbf997e37991cae0457d8ed2f52059c383ecc9c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188716
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-01 13:29:34 +02:00
Caolán McNamara 519dab04bc cid#1659712 silence Division or modulo by float zero
Change-Id: I6eccec1f1dd62451a4301ba55db9ce0810712a21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188514
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-29 14:07:18 +02:00
Noel Grandin 9b79ae1161 loplugin:blockblock
found with a modified copy of this plugin

Change-Id: Ib2ca97c7479abdf1a375e2700f9c947e1101f0e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188065
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-07-19 19:11:16 +02:00
Ahmed Khaled 8bbc6fa88a tdf#145538 Use range based for loops
Refactor: Changed some loops to range based.

Change-Id: I5d157e62e71f0ae6e13aaa7a8ffcc2ce3a5c527e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182818
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2025-04-28 23:50:23 +02:00
Noel Grandin c03d752c61 improve fast_pow in BColorModifier_gamma
And add tests to demonstrate accuracy.

This is taken from
   https://martin.ankerl.com/2007/10/04/optimized-pow-approximation-for-java-and-c-c/
and results in a maximum error of 3% over our input range.

Change-Id: I1568dabb552d52a3eff085fd327ed3c1c246edcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184623
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-04-25 17:47:09 +02:00
Noel Grandin 23e158e4c3 tdf#165595 speedup BColorModifier_gamma
which shows up heavily on this profile. In this case we don't
need perfection and we can use a fast approximation for std::pow.
Thanks to the binary representation of float numbers, this new
code reduces to some basic bit-twiddling.

Change-Id: I064588f65cf8f5973ba45545fba9c5fe66500e37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184602
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-04-25 09:35:36 +02:00
Noel Grandin 437303ab97 add translate functions for B2D*Polygon
Change-Id: I1f9091c47f0145d6fa0a8bc2deb4864244aad896
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183309
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-03-26 15:06:24 +01:00
Noel Grandin 4503abd1a6 tdf#141415 speed up a perf hotspot in SalLayout
a translation is just 2 additions, no need to do expensive matrix math

Change-Id: I76949e6168acc8c50ade358fdccb61575b59a5e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183220
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-03-22 14:33:17 +01:00
Noel Grandin 427c83177e loplugin:constparams
Change-Id: Icf4efa7757d6b3f6ed6066cd07b8fdf4101aae5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183138
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-03-20 06:57:45 +01:00
Stephan Bergmann 41ab6a5dfa struct SN needs a strict weak ordering operator <
...so it can be used with std::sort in impSolve() (further down in
basegfx/source/polygon/b2dpolypolygoncutter.cxx).  At least on macOS with a
LLVM 20 trunk libc++ in hardened mode, JunitTest_sfx2_complex failed with

> ~/llvm/inst/bin/../include/c++/v1/__debug_utils/strict_weak_ordering_check.h:59: assertion __comp(*(__first + __a), *(__first + __b)) failed: Your comparator is not a valid strict-weak ordering

To simplify the new implementation of struct SN operator <, add a B2DPoint
operator <=> (but whose implementation would cause

> In file included from /home/tdf/lode/jenkins/workspace/android_arm/basegfx/source/curve/b2dbeziertools.cxx:21:
> In file included from /home/tdf/lode/jenkins/workspace/android_arm/include/basegfx/curve/b2dcubicbezier.hxx:22:
> /home/tdf/lode/jenkins/workspace/android_arm/include/basegfx/point/b2dpoint.hxx:129:41: error: invalid operands to binary expression ('tuple<const double &, const double &>' and 'tuple<const double &, const double &>')
>         { return std::tie(a.mnX, a.mnY) <=> std::tie(b.mnX, b.mnY); }
>                  ~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~~~~~~~~~~~~~~~~~~~

etc. on Android with NDK 23.2, see
<https://ci.libreoffice.org/job/gerrit_android_arm/43174/>, so work around that
in the implementation for now).

Change-Id: I9f46d39dc9e9024fe9ac59413c44e49642282c8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175622
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-12-09 15:13:46 +01:00
Mike Kaganski 1180b3473a com::sun::star -> css
Change-Id: I890ec73e30d3cc6b210903ecee29431f3cb5f635
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175979
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-10 10:50:15 +01:00
Caolán McNamara 9c3133fc33 cid#1634585 Use of auto that causes a copy
and

cid#1634580 Use of auto that causes a copy
cid#1634578 Use of auto that causes a copy

Change-Id: Iad2ec6285b1eb923f3f30e8b18ee577d53ca140b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176312
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-09 20:21:51 +01:00