Commit graph

501620 commits

Author SHA1 Message Date
Xisco Fauli
95bc3adf3a tdf#163486: PVS: Expression is always true
Since
commit 9cddf9da7f
Author: Vladimir Glazounov <vg@openoffice.org>
Date:   Tue May 22 15:33:44 2007 +0000

    INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED

V560 	A part of conditional expression is always false: (!(pTableFormat && pUnoCursor)).
V560 	A part of conditional expression is always true: pTableFormat.
V560 	A part of conditional expression is always true: pUnoCursor.

Change-Id: Id690161e2a64a82f94530142879bf291bd8df743
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176583
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-14 13:42:09 +01:00
Xisco Fauli
0f08d5cac5 tdf#163486: PVS: Expression is always true
V560 	A part of conditional expression is always true: pFormatItem.

Change-Id: I82009191496573e7f9dd1a6ab7f19df2243a30b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176582
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-14 13:31:49 +01:00
Xisco Fauli
333b215427 tdf#163486: PVS: Expression is always true
V560 	A part of conditional expression is always true: pV != nullptr.

Change-Id: I4af6361993f3b172c54479e1011358c37fcde64b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176580
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-14 13:19:02 +01:00
Xisco Fauli
9b3159b984 tdf#163486: PVS: Expression is always true
V560 	A part of conditional expression is always true: pItem->mbVisible.

Change-Id: Id9c55e610fa81003a5ad7661d98962aa6d48c062
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176579
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-14 12:59:57 +01:00
Xisco Fauli
7b7d935478 tdf#163486: PVS: Expression is always true
V560 	A part of conditional expression is always true: pArguments == nullptr.

Change-Id: I1fd44091173ed81cdb0c4a4e27e9408cb6a25e5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176578
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-14 12:54:51 +01:00
Stephan Bergmann
16e3b84d2e Improve loplugin:dyncastvisibility to check for non-inline key functions
This would have caught the issue discussed in
709b1f3ddb "Make sure VCLXPopupMenu has unique
RTTI".  (The commit message talks about RTTI there, while what Clang actually
compared for an optimized implementation of a dynamic_cast to a final class is
vtable pointers, but the overall picture remains the same.  Both RTTI and
vtables are emitted along the key function, and if that is missing or inline,
they are emitted for each dynamic library individually, and as internal symbols
on macOS.)

This commit also addresses all the issues found by the improved
loplugin:dyncastvisibility on Linux.  See the newly added TODO in
compilerplugins/clang/dyncastvisibility.cxx and
86b86ac87e "Give DocumentEventHolder (aka
EventHolder<DocumentEvent>) a key function" for an issue with key functions for
class template instantiations.

Change-Id: Ia19155efb1d23692c92b9c97ff17f18ae7a1f3ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176576
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-14 12:49:22 +01:00
Andrea Gelmini
ac2983bbfb Fix typos
Change-Id: I67b770e3973b78cd59bc1e7c23d780187814c07a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176587
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-14 12:34:27 +01:00
Xisco Fauli
d6e81eaf73 tdf#163486: PVS: simplify expression
V728 	An excessive check can be simplified. The '(A && !B) || (!A && B)' expression is equivalent to the 'bool(A) != bool(B)' expression.

Change-Id: I31edbbc7ce3b10085c5f1404e74485ea180ddec3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176577
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-14 12:32:24 +01:00
Tomaž Vajngerl
a37890e704 render slide layers with VCL / drawinglayer primitives
Instead of using slideshow module to render the slide layers, use
the VCL / drawinglayer instead, which makes it possible to render
transparency correctly and fast.

Change-Id: Idfc9fcc8bc0e2bc139df93d1805f7a19fb1bce1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176575
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-11-14 11:55:09 +01:00
Stephan Bergmann
86b86ac87e Give DocumentEventHolder (aka EventHolder<DocumentEvent>) a key function
...that is not inline, so that RTTI and vtable are not emitted for each dynamic
library individually.  (Where they would be internal on macOS, which could break
optimized uses of dynamic_cast for that final class just checking vtable pointer
identity, as could happen for the dynamic_cast at
dbaccess/source/core/dataaccess/documenteventnotifier.cxx:232:51,

>   232 |         const DocumentEventHolder& rEventHolder = dynamic_cast< const DocumentEventHolder& >( _rEvent );
>       |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

And with the extern explicit template instantiation, EventHolder needs to be
SAL_DLLPUBLIC_TEMPLATE instead of just SAL_DLLPUBLIC_RTTI now, so that
Library_comphelper will export the DocumentEventHolder ctors and
DocumentEventHolder::getEventObject.)

(This would ideally have been caught by an upcoming improvement of
loplugin:dyncastvisibility, but might be complicated to check there for template
instantiations.)

Change-Id: I1e6280b185535968a870fbfadaff6238d38858e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176547
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-14 11:10:30 +01:00
Jonathan Clark
cf42d70e8c cid#1634809 Null pointer dereferences
and

cid#1634807 Null pointer dereferences

Change-Id: I9a100651a744cb77ff89769e8c98afcfb771f593
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176563
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-11-14 10:29:31 +01:00
Stephan Bergmann
08aa3c4fa7 loplugin:reftotemp
(plus ensuing -Werror,-Wpessimizing-move)

Change-Id: Ie2bc5310f0c4a50ba6cdc351cc99f09e7534de29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176562
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-14 09:15:00 +01:00
Mike Kaganski
eecdaa02b6 Turn a macro to a function
Change-Id: I39cfbe43e7f27ada9999daf93aa6ccfd38fb0c52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176561
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-14 08:57:32 +01:00
Pranam Lashkari
df8941ee5b tdf#163805: set fill style to solid on fill color selection
problem:
The issue here is that the table does not have a fill style set,
but using the fill tool from the menubar does not give any error
or warning, either, which confuses the user.

Change-Id: Ib7d6ecdbb315b6eb2eca21423fba28d3cb086450
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176245
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit c0623158f010e08e0bfadaffb988eac14e1ff34e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176238
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Tested-by: Jenkins
2024-11-14 07:17:08 +01:00
Chris Sherlock
221194dda8 vcl: make BitmapArithmeticBlendFilter variables constant
Change-Id: I8e1219ef5ecdbb507b41756304d30eb49ae9a227
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173699
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-11-14 05:10:42 +01:00
Jim Raykowski
2b1b78e11b SwNavigator: Improve the page change control
The intent of this patch is to address an issue with the Writer
Navigator page change control reported at https://
ask.libreoffice.org/t/writer-display-single-page/111050

"I have selected View > Normal and View > Whitespace and View> Zoom>
Entire Page. On the bottom right, I’ve chosen the single page icon."
... "It is odd that the page number displayed as you click the
[Navigator Page control spin button] up and down arrows does not
change.."

The patch changes the function used by the page control to determine
the page number of the page in the view to that used by the status
bar page control. It also disables page tracking by the control when
the view is set to Multiple-page view or Book view.

Change-Id: I439bb4493061528f87eaeca3c08a33095adb8192
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173888
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2024-11-14 04:38:09 +01:00
Stephan Bergmann
deaa5dc2a4 Parameterize lower case PRODUCTNAME in odk/config/setsdkenv_windows.bat
Change-Id: I50ebfabdc63729b0ea3152fa919758b028a9c5d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176558
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-13 23:04:53 +01:00
Xisco Fauli
fc383577b8 svx: use a reference here
Change-Id: Ic92f640f79c8d1185be422eefaa61601eae9ae8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176555
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 20:14:54 +01:00
Xisco Fauli
aa60d9a5af tdf#163486: PVS: variable is used after being declared
V614 	The 'pReturn' smart pointer is utilized immediately after being declared or reset. It is suspicious that no value was assigned to it.
V614 	The 'pReturn' smart pointer is utilized immediately after being declared or reset. It is suspicious that no value was assigned to it.

Change-Id: Ic84af8c395c4b3f86017eb83be17a6fbd628e5d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176553
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 20:13:02 +01:00
Xisco Fauli
6570d56009 tdf#163486: PVS: variable is used after being declared
Since
commit 400d5d8a90
Author: Miklos Vajna <vmiklos@collabora.co.uk>
Date:   Wed Nov 13 10:35:36 2013 +0100

    oox: initial import of wps:wsp

V614 	The 'pMasterShape' smart pointer is utilized immediately after being declared or reset. It is suspicious that no value was assigned to it. Consider checking the third actual argument of the 'WpsContext' function.

Change-Id: I1e14be0a528e01acbfa2d3e79d5a4d03e4b3e268
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176552
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 20:12:48 +01:00
Xisco Fauli
c382c5202c tdf#163486: PVS: variable was assigned the same value
Since
commit 2387c2a46e
Author: Matthew J. Francis <mjay.francis@gmail.com>
Date:   Wed Jul 29 15:22:54 2015 +0800

    Give PyUNO structs/exceptions their own separate type

V1048 	The 'me' variable was assigned the same value.

Change-Id: Ia75c524c9cf459ff2961206c9a17dac1de0125a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176530
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 20:12:29 +01:00
Xisco Fauli
97cb43c001 tdf#163486: PVS: variable is used after being declared
Since
commit d4087b13fa
Author: Rüdiger Timm <rt@openoffice.org>
Date:   Fri Apr 18 13:32:32 2008 +0000

    INTEGRATION: CWS xmlfilter04 (1.2.12); FILE MERGED

V614 	The 'pMasterShape' smart pointer is utilized immediately after being declared or reset. It is suspicious that no value was assigned to it. Consider checking the second actual argument of the 'GraphicalObjectFrameContext' function.

Change-Id: I3d4241e8c88ee80c95a93d0e08d5498d87e7853b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176551
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 20:12:06 +01:00
Xisco Fauli
6923fa7a92 tdf#163486: PVS: identical conditional expressions
Since
commit 63cd67e5e1
Author: Attila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>
Date:   Fri May 14 13:53:32 2021 +0200

    tdf#92525 tdf#142398: fix export of simple custom shapes

V649 	There are two 'if' statements with identical conditional expressions. The first 'if' statement contains function return. This means that the second 'if' statement is senseless. Check lines: 733, 738.

Change-Id: I92bff7ef8472c1774e6def78c5f1a165ea6a0153
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176550
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 20:11:37 +01:00
Xisco Fauli
83763a3ae1 tdf#163486: PVS: variable is used after being declared
V614 	The 'pEffect' smart pointer is utilized immediately after being declared or reset. It is suspicious that no value was assigned to it.

Change-Id: Ic93aa42fa34af873f8dced5da0c1f55a8dcbd58d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176554
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 17:23:58 +01:00
Ilmari Lauhakangas
d366b2b6d9 Update modeline in license header and vim footer
per the current template in TEMPLATE.SOURCECODE.HEADER

Change-Id: I06b36a22d0a62c46e0e0c99f27e1035e9f24e1a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176549
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2024-11-13 17:13:52 +01:00
Xisco Fauli
98e2abcfb8 tdf#163486: PVS: variable was assigned the same value
Since
commit 1847211c00
Author: Sander Vesik <svesik@openoffice.org>
Date:   Wed Apr 21 11:25:53 2004 +0000

    INTEGRATION: CWS loadenv01 (1.27.22); FILE MERGED

V1048 	The 'm_bViewCreated' variable was assigned the same value.

Change-Id: I2c5fe19dcbc0524f6a4bf9baf774cc5ef0c2e793
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176545
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 16:39:28 +01:00
Xisco Fauli
81bce5cdfc tdf#163486: PVS: variable was assigned the same value
V1048 	The 'm_bDelete' variable was assigned the same value.

Change-Id: Ib324ee9473de6b8ce8d4e6e073265580c8a3ba68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176546
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 16:33:56 +01:00
Stephan Bergmann
603e92c7d9 Some PRODUCTNAME parametrization in SDK .html files
(and some places need a lower case LCPRODUCTNAME; plus some more clean up)

Change-Id: I7e97fcbe2e59ef22dffa7c0b47f076446873d09e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176539
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-13 15:42:01 +01:00
Xisco Fauli
5f251d6ff7 tdf#163486: PVS: variable was assigned the same value
Since
commit 49ab7533eb
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date:   Thu Sep 27 07:43:57 2007 +0000

    INTEGRATION: CWS swwarnings (1.15.222); FILE MERGED

V1048 	The 'm_bUndoIdInitialized' variable was assigned the same value.

Change-Id: Iccc66213efa98c8fc9108294515ec174b45cc08e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176537
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: Jenkins
2024-11-13 15:36:32 +01:00
NickWingate
fa3e9a2f31 Enable context menu key in online
Catch and execute context menu command when
called from online.

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: I5cca5c7855f5b87f7850c9248e27aa20382dde04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171914
Reviewed-by: vivek javiya <vivek.javiya@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 5e969a45d36b7e76b4e1e168263bcf2fefddfcef)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176529
Tested-by: Jenkins
2024-11-13 15:27:41 +01:00
Xisco Fauli
7c5476ada9 tdf#163486 PVS: identical sub-expressions
Since
commit 85a47bbb83
Author: László Németh <nemeth@numbertext.org>
Date:   Fri May 12 17:03:57 2023 +0200

    tdf#155328 sw tracked table column: add DOCX export/import

V501 There are identical sub-expressions 'pRedline->GetRedlineData().GetType()' to the left and to the right of the '==' operator.

Change-Id: Ib53d20f102e64cd716245d558d6fd7754f62d9a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175403
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 15:24:10 +01:00
Jonathan Clark
2cb039f570 tdf#36709 editeng: Layout for font-relative first-line indent
This change extends layout for font-relative paragraph first-line
indentation into Edit Engine.

Change-Id: I5906f493b91fbcb87ded165709fb132b33ce1906
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176487
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-11-13 15:01:11 +01:00
Olivier Hallot
a095909899 Update git submodules
* Update helpcontent2 from branch 'master'
  to 74e6e0d730bc95780fdb6627dad502abff1dbe57
  - Update simpress screenshots
    
    Change-Id: I5d280d7d2b2f85c4c9f57226fda2bd1a06e4845f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176540
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-11-13 14:50:05 +01:00
Olivier Hallot
a486105744 Update git submodules
* Update helpcontent2 from branch 'master'
  to c7250806b1224b5e01016dad05430cde02674151
  - Update sdraw screenshots
    
    Change-Id: I543c390401cbbd9faf34e88e4bdcaa30bc1eeabb
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176541
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-11-13 14:49:49 +01:00
Xisco Fauli
921bc20224 tdf#163486: PVS: variable was assigned the same value
Since
commit ca64461276
Author: Radek Doulik <rodo@novell.com>
Date:   Tue Jun 26 12:25:03 2012 +0200

    remember spell check/find&replace start position only 1st time

The 'mnStartPageIndex' variable was assigned the same value.

Change-Id: I567f15e88d853804516010b10d9bd571d95f10aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176527
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 13:32:07 +01:00
Xisco Fauli
004f785a7d tdf#163486: PVS: variable was assigned the same value
V1048 	The 'm_eType' variable was assigned the same value.

Change-Id: I03caa56da47c80774008e12120661722522300b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176528
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 13:31:43 +01:00
Andrea Gelmini
a5233afeae Fix typo
Change-Id: I467a2734fa34c4b8daaefc38754c697c2c2803cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176531
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-13 13:29:09 +01:00
Noel Grandin
fb745b54d2 new loplugin:reftotemp
look for places where we are taking a reference (i.e. "&") to a
temporary object, which is misleading.

Change-Id: Id0eb4dce3f1ca559f86e02edcbea3ca17bea8e76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175978
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-11-13 13:08:16 +01:00
László Németh
bcee366d82 tdf#163873 sw inline heading: use HTML text, not lo-res bitmap export
Text frames formatted with Inline Heading style and anchored as
characters were converted to unacceptably low resolution images in
the HTML export. Now the HTML export contains normal h1–h6 elements
with display:inline; CSS setting to get text-based/searchable inline
headings, fixing also the rendering quality.

Follow-up to commit 7a35f3dc74
"tdf#48459 sw inline heading: apply it on the selected words",
commit d87cf67f8f
"tdf#131728 sw inline heading: fix missing/broken DOCX export",
commit a1dcbd1d1c
"tdf48459 sw inline heading: add Inline Heading frame style"
and commit 984f0e49d3
"tdf#163874 sw inline heading: fix XHTML export".

Change-Id: I02f7af8a39314e78d670b4db9a76897e931b3a47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176512
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2024-11-13 13:07:52 +01:00
Xisco Fauli
b51386b77c tdf#163486: PVS: variable was assigned the same value
V1048 	The 'y' variable was assigned the same value.
V1048 	The 'x' variable was assigned the same value.

Change-Id: I691b6f2c108dae48cf28d328f502847b8f6726f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176526
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 12:58:47 +01:00
Xisco Fauli
5621b4b488 tdf#163486: PVS: Expression can be simplified
Since
commit 8ab086b6cc
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date:   Mon Sep 18 16:07:07 2000 +0000

    initial import

V1065 	Expression can be simplified, check 'nRowCount' and similar operands.

Change-Id: Icd9cdd82cb083e2b40498a21de44a814169977ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176524
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 12:50:43 +01:00
Xisco Fauli
4444d13415 tdf#163486: PVS: variable is assigned but not used
Since
commit c617be8307
Author: Norbert Thiebaud <nthiebaud@gmail.com>
Date:   Tue Nov 27 22:58:50 2012 -0600

    remove legacy String svl's Put*Entry family of function and convert users

V1001 	The 'sParams' variable is assigned but is not used by the end of the function.

Change-Id: I90e32de620be23b22c4ab4ee4973433455d844b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176522
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 12:50:31 +01:00
Marco Cecchetti
9d1bedcd67 lok: slideshow: export slide duration also when there is no transitions
Change-Id: I234cb814a2096a0071de9cea3f7f8289c107b2b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176520
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-11-13 11:49:42 +01:00
Xisco Fauli
b7d472b0cc tdf#163486: PVS: variable is assigned but not used
Since
commit 659db7d705
Author: Chris Sherlock <chris.sherlock79@gmail.com>
Date:   Fri Jan 15 03:06:18 2016 +1100

    vcl: change ImplFontMetricData to be reference counted via intrusive_ptr

V1001 	The 'xFontMetric' variable is assigned but is not used by the end of the function.

Change-Id: Ib3364c036a2a8e69917d6e02cd8cdbbeee9b65c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176521
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 11:31:47 +01:00
Xisco Fauli
d7c3967713 libxml2: upgrade to 2.13.5
Downloaded from https://download.gnome.org/sources/libxml2/2.13/libxml2-2.13.5.tar.xz

Change-Id: I8b88b49fdda737c74bc0c2b3b18b14ada3389f20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176519
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-13 11:13:23 +01:00
László Németh
984f0e49d3 tdf#163874 sw inline heading: fix XHTML export
Text frames anchored as characters, containing inline
headings were exported without display:inline using
the XSLT XHTML filter (see File->Export As), resulting
separated paragraphs for inline headings.

Note: both div and heading elements need display:inline.

This reverts commit d2e8705c9c
"tdf#153839: add newline after certain tags" partially
(and conditionally), because fancy printing is bad here:
the new line between the div element was converted to a space
at display:inline, resulting double space with the original
space between the inline heading and the other text content
of the following part of the paragraph line.

Follow-up to commit 7a35f3dc74
"tdf#48459 sw inline heading: apply it on the selected words",
commit d87cf67f8f
"tdf#131728 sw inline heading: fix missing/broken DOCX export"
and commit a1dcbd1d1c
"tdf48459 sw inline heading: add Inline Heading frame style".

Change-Id: I6623066354a70a69faf14cd30fc2b917c9ec9c90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176511
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: Jenkins
2024-11-13 10:41:34 +01:00
László Németh
4f871a5a9a tdf#48459 sw inline heading: fix bad NC of the new frame style
Which affected translation etc.

Introduced by commit a1dcbd1d1c
"tdf#48459 sw inline heading: add Inline Heading frame style".

Reported by Olivier Hallot with code pointer.

Change-Id: I7fc4cfa685be4374993754a303b4d54df7d1ee37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176210
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2024-11-13 10:39:54 +01:00
Jonathan Clark
d3a59f7a91 tdf#36709 sw: Writer layout for font-relative first-line indent
This change implements layout for font-relative paragraph first-line
indentation in Writer.

Change-Id: Ie8f386bcc13a43ab92d5c15654c24bfdfc62bd69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176216
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-11-13 09:35:20 +01:00
Xisco Fauli
510f083788 bin: Add script to check the latest version of external libraries
it uses https://release-monitoring.org for that

Change-Id: I8ec79f3b1b5e9ae57cc35e19156cba5022870911
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173618
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 09:33:38 +01:00
Xisco Fauli
07ba469a35 tdf#163486: PVS: pointer not released in destructor
V773 	The 'pDefaults' pointer was not released in destructor. A memory leak is possible.

Change-Id: I7df195d1f515b86e85993d6c0a6cf60bcaff3109
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176477
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 09:29:02 +01:00