Commit graph

500723 commits

Author SHA1 Message Date
Jim Raykowski
8816296222 Resolves tdf#163515 - Basic Macro Organizer: After renaming a
document macro library the original library also remains

Change-Id: Ife89e1e164d288702d30e6b79f5e703ab9467e4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175182
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2024-10-21 14:09:32 +02:00
Bogdan Buzea
df90ef8247 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 80, 86

Change-Id: I4f857ebdd950af1f52bea59a07b8846efcf89ae9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175280
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-21 14:01:20 +02:00
Aditya Sahu
c32210fdf3 tdf#151941: Show Alt_Shift_P as shortcut key for Page Style
In Writer the Tools>Customize>Keyboard list did not show attribution
for Alt_Shift_P which is the binding for Page Style dialog. The reason
for this was that .xcu node for the shortcut was part of Global node.

Change the Accelerators.xcu file to Modules node particularly,
under TextDocument com.sun.star.text.TextDocument.

Change-Id: I997c4e6dd292c46fe067a59f0309681d6c346a6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175249
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-10-21 13:37:29 +02:00
Mohit Marathe
9fca60fb13 tdf#163551 fix filter comments by author bug
This patch fixes the bug in which you have to reset the date filter
for filter by author to work i.e. when switching the filter from one
author to another

Change-Id: Ib5d3bebf587c0e940d4984dd78f9d4a94f5cbb06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175189
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
2024-10-21 13:30:59 +02:00
Xisco Fauli
7785b72d49 tdf#163486: PVS: Two similar code fragments were found
Since
commit 4c2701d4cc
Author: Vladimir Glazounov <vg@openoffice.org>
Date:   Tue May 22 17:53:11 2007 +0000

    INTEGRATION: CWS chart2mst3 (1.1.4); FILE ADDED

V778 	Two similar code fragments were found. Perhaps, this is a typo and 'xValuesX' variable should be used instead of 'xValuesY'.

Change-Id: I24a904ee2e0fa81eb50756545d4b1127b93579fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175322
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-21 13:20:17 +02:00
Xisco Fauli
a69a47ffe6 tdf#163486: PVS: unused nested loop
Since
commit 75f0c33a05
Author: Markus Mohrhard <markus.mohrhard@googlemail.com>
Date:   Tue Jul 5 04:21:41 2011 +0200

    change from manual loop to ScMarkData::iterator in calc/source/core

The 'i' counter is not used inside a nested loop. Consider inspecting usage of 'k' counter.

Change-Id: Ia7d1aeae86fda108f97c03f6e5ea7724d6542578
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175290
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-21 12:48:11 +02:00
Mike Kaganski
8fdf154cd8 In MSVC, non-static constexpr objects are initialized at run-time
Similar to commit c785399884 (In MSVC,
non-static constexpr objects are initialized at run-time, 2024-09-04).

Change-Id: Id1c9ca961efdcbfd897a03e4f85869a6f4e5260b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175297
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-10-21 12:40:34 +02:00
Caolán McNamara
70d3278ad4 cid#1608255 silence Overflowed constant
Change-Id: I3b518782a82bd1f066a36c87d1a52e5e44e4abda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175259
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-21 12:33:48 +02:00
Bogdan Buzea
729716c737 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 194, 200
V1037 Two or more case-branches perform the same actions. Check lines: 796, 800
V1037 Two or more case-branches perform the same actions. Check lines: 804, 810

Change-Id: Icef65820f99405ca78d31dc9e1afc0a9d5c6b355
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175279
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-21 12:13:22 +02:00
Armin Le Grand (allotropia)
25d6bd3ebc Support FixedCellHeight in SdrAutoFitTextPrimitive2D
That was missing with the result that for some cases the
painted text (where it was missing) differed from the
text in EditEngine mode (was set there).

Change-Id: I23ddf8e90be2335c56e5a485308c753dfe72a878
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175127
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-10-21 11:42:40 +02:00
Miklos Vajna
ac90d5a823 svx: prefix members of Viewport3D
See tdf#94879 for motivation.

Change-Id: Ice9c1353d3411146f11d4ca34eb6369403cd4094
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175294
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-10-21 11:28:48 +02:00
Mike Kaganski
6b2b85b93d Document LIBO_TEST_DEFAULT_DESKTOP environment variable
As defined by commit 69586e8381 (UI
tests: use a dedicated desktop on Windows, 2024-07-17).

Change-Id: Icd4ad6dfa95301fc1f6e699349278d3a0198fd08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175296
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-21 10:48:29 +02:00
Olivier Hallot
3e239930a1 Update git submodules
* Update helpcontent2 from branch 'master'
  to b1d8f7ad81193f3a7ef7b5358edafcbf82cf604c
  - tdf#134503 precisions on Option Explicit statement
    
    Change-Id: Ic9f0efe82bf42e4e6abf492a2933cddef317cf2b
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/175304
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-10-21 10:39:30 +02:00
Skyler Grey
0a8e62a0b2 fix(lok): Expose the import options dialog
In a very similar way to the character encoding dialog, handled in
Ibd36e695e733e07053bb6e22a510ac988be3ded2, we need to see this dialog
before the document opens.

I've used the same trick, where I've made the dialog into a JSDialog and
registered an early listener, but I haven't asynced it as it's never
useful to have more than 1 person using it at once.

Change-Id: I1a61660523ae2d4812890b62d16f0e6cef133e67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174269
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 335bb5b39c03b7ef7d7426259b41d479ff9ea7f0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174951
Tested-by: Jenkins
2024-10-21 10:34:29 +02:00
Skyler Grey
60fef0bfeb fix(lok): Expose the character encoding dialog
The character encoding dialog appears when importing a dialog with an
ambiguous character encoding. At the point when it appears, the document
isn't loaded, so we have to handle it in a similar way to the text
import dialog or password prompt dialog, allowing it to function early.

It's also required to make the dialog into a jsdialog, as tunneled
dialogs do not work this early in the document loading process.

I have not asynced the dialog here because there's no point. I did write
code where I set up a dialog factory to do this similar to how other
modules (sw, sc, sd, etc.) handle dialogs and make them async.
Unfortunately, this dialog is not useful with multiple users, since as
it's used on opening a document. It may, in the future, be useful to
someone to make a patch that asyncs the other writerperfect dialog (epub
export) so I have uploaded and abandoned my dialog factory patch as
Id8ec474510f3c8637639ad59331156c6e75dafb4.

Documents that require this dialog, whether async or not, cause crashes
when someone opens the document before the first person has finished
responding to this dialog. I still consider this behavior better than
crashing whenever we attempt to show this dialog at all.

Change-Id: Ibd36e695e733e07053bb6e22a510ac988be3ded2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174044
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 283f771b92a14c06871c931b01174622b855abe5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174950
Tested-by: Jenkins
2024-10-21 10:34:18 +02:00
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
Caolán McNamara
04921e20b4 cid#1633189 silence Unchecked return value
and

cid#1633190 Unchecked return value
cid#1633191 Unchecked return value

Change-Id: I4589ed1fe48067f493a1db04a468b7a8ed6ae178
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175120
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-21 10:29:16 +02:00
Caolán McNamara
a0f024b432 a little more natural to unconditional iterate after use
Change-Id: Iac0adfdc9344b5c25736dbec151bae20d14b20fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175119
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-21 09:57:53 +02:00
Chris Sherlock
bc2ff9daf5 vcl: move bitmap filter headers into vcl/bitmap global header directory
Use #pragma once instead of header guards

Change-Id: Iba43f2103628ed184933cf2611991e7aef9f0173
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173369
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-10-21 09:45:21 +02:00
Bogdan Buzea
eb37b2eb14 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 865, 868

Change-Id: Icc108072231fd37a73f0a35eac15bb1960e50202
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175266
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-21 09:36:07 +02:00
Tomaž Vajngerl
8c935c6ac1 use frozen::make_unordered_set to skip the number of elements
Change-Id: I715ab2bfc586f8854313b270580faa8e003f1c5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175190
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-10-21 09:34:08 +02:00
Michael Weghorn
c67c9b04af qt a11y: Map BLOCK_QUOTE role to new Qt equivalent
For Qt >= 6.9, map the BLOCK_QUOTE role to
QAccessible::BlockQuote, newly introduced
upstream in qtbase commit [1]:

    commit 0b5874bc96f4d1a8cba4fe14ee0b3499cc04c8cd
    Author:     Michael Weghorn <m.weghorn@posteo.de>
    AuthorDate: Thu Sep 12 17:21:37 2024 +0200
    Commit:     Volker Hilsheimer <volker.hilsheimer@qt.io>
    CommitDate: Fri Oct 18 21:03:09 2024 +0000

        a11y: Add new BlockQuote role

With this in place, paragraphs to which the
"Block Quotation" paragraph style has been assigned,
are now shown with the "block quote" role in Accerciser
when using the qt6 VCL plugin with a current qtbase dev
build.

[1] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0b5874bc96f4d1a8cba4fe14ee0b3499cc04c8cd

Change-Id: I3b9822e4a5ce6eed3ab4820a208f794bcf398e85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173272
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-10-21 07:49:04 +02:00
Mike Kaganski
794cb79c0e Optimize a bit
Change-Id: Ief89a827c05ae1197142de46a2d9365f87455158
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175282
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-10-21 06:26:42 +02:00
Bogdan Buzea
dd41459378 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 156, 164
V1037 Two or more case-branches perform the same actions. Check lines: 898, 908

Change-Id: Iec6ceda7c4506317860950857e516991d8a507a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175238
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-21 01:25:45 +02:00
Bogdan Buzea
4debd05629 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 84, 90

Change-Id: I3e11f666cc3db56ca4d406831841b8f5660097a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175268
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-21 01:23:08 +02:00
Xisco Fauli
4b1e8a2a2a tdf#163486: PVS: Remove forgotten else block
Since
commit 2f303d689e
Author: Kurt Zenker <kz@openoffice.org>
Date:   Thu Jun 10 12:20:58 2004 +0000

    INTEGRATION: CWS fwk02ea (1.6.38); FILE MERGED

V705 	It is possible that 'else' block was forgotten or commented out, thus altering the program's operation logics.

Change-Id: Id5a331b0338a38740b5ecf3ad881d7ce4dd6033b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175289
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-21 01:22:49 +02:00
Chizoba ODINAKA
e1a882e823 tdf#75280 Convert sal_uIntPtr to size_t a more appropriate integer type
Change-Id: Ia4bb455877a2c8c8c125c643c3ea6e4c162dea20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175248
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2024-10-20 22:34:17 +02:00
Xisco Fauli
41db41a3aa tdf#163486: PVS: identical sub-expressions
Since
commit 0deea02b1d
Author: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
Date:   Sat Aug 19 17:18:50 2023 +0300

    tdf#138792: PDF export: add batch of dublin core attributes

V501 	There are identical sub-expressions 'bKeywordsMod' to the left and to the right of the '||' operator.
V501 	There are identical sub-expressions 'bThemeMod' to the left and to the right of the '||' operator.
V501 	There are identical sub-expressions 'bTitleMod' to the left and to the right of the '||' operator.

Change-Id: I438e0284a190241bf86b0e127de2f12f4a1a68b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175287
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-20 22:24:56 +02:00
Xisco Fauli
b237267685 tdf#163486: PVS: identical sub-expressions
Since
commit ad6f23d2a3
Author: TokieSan <eltokhy@aucegypt.edu>
Date:   Tue Jul 18 21:54:31 2023 +0300

    Added searching and filtering features to certificate chooser dialog

V501 	There are identical sub-expressions 'rCharClass.uppercase(sIssuer).indexOf(aSearchStr) < 0' to the left and to the right of the '&&' operator.

Change-Id: Ifdc4b371e6d8f79ad43236e10b86e8e5b03204a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175284
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-20 21:59:37 +02:00
Xisco Fauli
2219d42ca3 tdf#163486: PVS: identical sub-expressions
Since
commit 78010a4db1
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Thu Oct 4 15:37:14 2018 +0100

    Resolves: tdf#106340 resize dialog when search/replace labels are shown/hidden

V501 	There are identical sub-expressions '!m_xReplaceAttrText->get_visible()' to the left and to the right of the '||' operator.
V501 	There are identical sub-expressions '!m_xReplaceAttrText->get_visible()' to the left and to the right of the '||' operator.

Change-Id: Ib62557af291679c253162e3d72a39659691ef0b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175285
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 21:59:02 +02:00
Caolán McNamara
b80001bbfd cid#1555723 Data race condition
Change-Id: Icc056dffe6e81402aecf1363958d83101190186e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175181
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 20:54:18 +02:00
Bogdan Buzea
972b33b14c tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 913, 922

Change-Id: Ie9ef10d15c51b9b0702dbda41768afdee3655eab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175236
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-20 19:56:17 +02:00
Bogdan Buzea
11a1b66554 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 871, 879
V1037 Two or more case-branches perform the same actions. Check lines: 891, 899

Change-Id: I027615d9acef9aae4c554f2dcbb033edac01940e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175239
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-20 19:55:03 +02:00
Julien Nabet
b83094d119 FilterEntry is just an OUString, simplify this (cui)
Change-Id: I189922791e5ef3db111aa95fb9dc5af4c757a9ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175257
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-10-20 19:28:31 +02:00
DaeHyun Sung
061e1f7961 Update git submodules
* Update dictionaries from branch 'master'
  to d0c939181ac181ce6479ae8604ef647055ccf44d
  - Update the Korean Dictionaries: ko-KR
    
    Update Korean dictionary file (ko_KR.dic) by DaeHyun Sung (2024.08.21)
    Also, update readme description
    
    Change-Id: I232b9eefba111f2d4969bc8e3add33984cff7381
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/172166
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-10-20 19:23:00 +02:00
Caolán McNamara
6f6ec0e948 cid#1633319 Resource leak
Change-Id: Icdbc973b6c0d40366a1a261706e21bbb50a8826e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175258
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 17:04:27 +02:00
Xisco Fauli
001c3919aa tdf#163486: PVS: fix copy&paste error
Since
commit 95824f8636
Author: Noel Power <noel.power@novell.com>
Date:   Tue Nov 2 16:55:17 2010 +0000

    initial import of latest cws container_controls

V524 	It is odd that the body of 'removeTabListener' function is fully equivalent to the body of 'addTabListener' function.

Change-Id: Iafa1f374564ab425e8c22f4e706d361f03d3183e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175255
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-20 16:15:52 +02:00
Xisco Fauli
c73c69db6b tdf#163486: PVS: fix copy&paste error
Since
commit 32cd4a92ef
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date:   Wed Jun 27 11:18:37 2007 +0000

    INTEGRATION: CWS awttree01 (1.1.2); FILE ADDED

V524 	It is odd that the body of 'removeSelectionChangeListener' function is fully equivalent to the body of 'addSelectionChangeListener' function.

Change-Id: I807520da4515ae8dfb070b29aa772bab1ade592b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175254
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-20 16:15:22 +02:00
Xisco Fauli
990d710bf7 tdf#163486: PVS: fix copy&paste error
Since
commit f02e1a0abc
Author: Kurt Zenker <kz@openoffice.org>
Date:   Thu Mar 6 16:58:17 2008 +0000

    INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED

V524 	It is odd that the body of 'removeStorageChangeListener' function is fully equivalent to the body of 'addStorageChangeListener' function.

Change-Id: Ie5456f4ef7397d5f9144ac3167724f6c2ca32c56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175251
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-20 16:14:47 +02:00
Caolán McNamara
a901b1e307 cid#1606970 Overflowed constant
Change-Id: I676b2db3baeca7e99d63c1078e2b280edb0336fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175184
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 15:39:12 +02:00
Caolán McNamara
f42857302c cid#1607217 silence Overflowed constant
Change-Id: I438da78c6589c796d56065878fcd4c98b2bb781b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175247
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-20 15:37:43 +02:00
Caolán McNamara
46c1bc239d cid#1606920 Overflowed integer argument
Change-Id: I6fc6a12e611a974e8feaecd398242226ab9ad930
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175246
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 15:37:33 +02:00
Caolán McNamara
d28365ecd2 cid#1607805 Overflowed constant
Change-Id: I14c02ef847f4cc2ab17fa6efb1a4d8c92c585eeb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175245
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-20 15:37:21 +02:00
Caolán McNamara
d7e3a59c0e cid#1607208 Overflowed constant
Change-Id: I9e4aa51281e1fcaa208a0992281ac9050fe40306
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175244
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-20 15:37:08 +02:00
Caolán McNamara
e98801c0fe if this could happen, then this loop would never end
so in practice it isn't happening. (Or the --i should be conditional
on something getting removed)

Change-Id: I0d74a46eced77c5bb1474c60c26e39061de791a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175243
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 15:37:01 +02:00
Caolán McNamara
30f141ecd7 cid#1607360 Overflowed constant
Change-Id: I3bc311b2a9eab23de8f8a4db095ce2e068721f21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175242
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 15:36:04 +02:00
Caolán McNamara
86550dd734 cid#1608476 Overflowed constant
just set nRead to an initial 2 and leave nLen2 alone, nRead and nLen2
are only used for the loop condition

Change-Id: I269db2d986070f010a05eb58f200d19afc1bff1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175241
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 15:35:57 +02:00
Caolán McNamara
a14da9c96d nRead is just an alias for m_cbSTDBaseInFile, clarify that
Change-Id: I6917a48b9e9d1169eb9155503ad7ece2fcb33d6e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175200
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 15:35:31 +02:00
Xisco Fauli
f03c221f5f tdf#163486: PVS: fix std:swap arguments
Since
commit 81c4be4582
Author: Caolán McNamara <caolan.mcnamara@collabora.com>
Date:   Sat Dec 16 20:18:13 2023 +0000

    cid#1545561 std::swap COPY_INSTEAD_OF_MOVE

V549 	The first argument of 'swap' function is equal to the second argument.

Change-Id: Ieeb06744afe4ea09b986c78e8b25a5b5fc87d434
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175253
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-20 15:33:56 +02:00
Bogdan Buzea
17f2977cdd tdf#163486: PVS: The variable was assign the same value.
V1048 The 'beforeColRow' variable was assigned the same value.

Change-Id: I27ef13be81c9f94f452701fc1a47d6e908024a23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175205
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-20 10:41:30 +02:00