Commit graph

501767 commits

Author SHA1 Message Date
Oliver Specht
3e9658a201 tdf#163340 pasting paragraphs with lists changed again
Pasting paragraph with a list into an empty or completely selected
paragraph with lists has been changed:
If the pasted paragraph(s) are all formatted with a list from the
paragraph style then this list will be preferred.
If some the pasted paragraphs including the first one are formatted
with a hard list then these attributes will be preferred.
If all paragraphs have a hard list or no list at all the list at
the target position will be preferred.

Change-Id: I5aa6834d32f7c69b2eb9f8330b282c0ae6fca559
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176478
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
2024-11-19 01:15:43 +01:00
Oliver Specht
43b9ab55a3 tdf#163956 calculate line height differently in FORMTEXT
Lines containing EN_SPACES only ignore character height
while calculating line height. In FORMTEXT fieldmarks the character
height of the default EN_SPACES is not ignored.

Change-Id: I8a89f13875f61ed287ce1697a91b42f20bd17192
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176147
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
2024-11-19 01:15:00 +01:00
Oliver Specht
c4aa95310d tdf#160267 Fix SVG and add PNG format from the clipboard
Since 6c04b8356c SVG was added
to the supported clipboard formats but it did not work.
SVG support is now fixed and PNG format is added in the gallery.

Change-Id: Ic9cb2eebfc37bd38605dfaa3a1c353a7532af357
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165908
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-11-19 01:14:11 +01:00
Oliver Specht
0313b56b93 tdf#162198 Reset default cell padding in RTF
66b4bfe302 introduced a default left/right
cell margin of 0.19 cm in DOCX import but is was also applied in RTF.
This is no longer applied in RTF import.

Change-Id: I192b2d17018c234837b926be64fdf27554b024e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173981
Tested-by: Jenkins
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-11-19 01:13:36 +01:00
Oliver Specht
075560420a tdf# 162326 reset paragraph list attributes on style apply
Follow-up to a593c27e88.
If Ctrl key is presseed then remove list attributes of the paragraph, too.

Change-Id: I29ea97ff08f45061d532b11cb981c534cc786f0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174977
Tested-by: Jenkins
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-11-19 01:13:17 +01:00
Eike Rathke
03b2f4afc5 Resolves: tdf#163903 Add French (Republic of Guinea) {fr-GN} locale data
Change-Id: I46eb65f05a2015f7bd884585a544e030e143f5b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176735
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2024-11-18 22:45:54 +01:00
Eike Rathke
6acaa43376 Related: tdf#163903 Add French (Republic of Guinea) {fr-GN} [0x940C]
Change-Id: I2ebea83a757533088fc49a3c849e6b7890277d1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176734
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2024-11-18 22:45:45 +01:00
Xisco Fauli
7a1ab3f0a3 tdf#163486: PVS: reference may become invalid
V758 	The 'aModel' reference becomes invalid when smart pointer returned by a function is destroyed.

Change-Id: If06b81fda6fdaf4debf5061dd0e3c6c7caccad5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176742
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-18 22:40:54 +01:00
Xisco Fauli
fd63354d2d tdf#163486: PVS: dereferencing of a potential null pointer
V522 	There might be dereferencing of a potential null pointer.

Change-Id: I23e4eba0399243ca67ecaa3101a327eece825687
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176722
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-18 22:37:52 +01:00
Caolán McNamara
a025eef003 cid#1606638 silence Overflowed integer argument
and

cid#1608572 Overflowed integer argument
cid#1607772 Overflowed integer argument
cid#1607196 Overflowed integer argument
cid#1606568 Overflowed return value
cid#1607573 Overflowed return value

Change-Id: I9a701b19026572127399712c3b660094f2a0bd40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176740
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-18 22:24:40 +01:00
Caolán McNamara
331bcad4db Revert "add an autotext 'common' directory like templates/common"
This reverts commit 3b267b65d2.

reports of test failures at:
https://gerrit.libreoffice.org/c/core/+/176508

Nothing depends on this right now, so I'll have second go at this later.

Change-Id: I95999f05c69fa9b2459128116927616b1f6a9ca5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176743
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-18 22:24:27 +01:00
Noel Grandin
09de897e57 simplify X11SalGraphics::DeInit
it is always called in the destructor, so lets just centralise the logic
here

Change-Id: I8c9b204d147315b6693fa7a08f759b53b9a6a17c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176731
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-18 20:51:52 +01:00
Noel Grandin
e4a6ca79be SalGraphics does not need virtual freeResources()
it is only called to do one thing, in X11SalGraphics, so make
it private to that class, and rename it to better fit its
purpose.

Change-Id: I16ea2f86f8b596351354faa80bb2bab4d2ac6e7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176729
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-18 20:51:39 +01:00
Caolán McNamara
2261734d88 Resolves: tdf#163831 Invalidate cache if the style is modified
Change-Id: I4a43936a6a7130734f5ae459a9406da99bf0f5f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176727
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-18 20:22:47 +01:00
Michael Weghorn
7a551570fe qt: Update vim headers/trailers
Following

    commit 4f08a15f3b
    Author: lovatico21 <lorenzo04lovato@gmail.com>
    Date:   Wed Nov 13 18:12:58 2024 +0100

        updated vim footers in vcl/qt6/*.cxx

, update vim header/trailers to those in current
`TEMPLATE.SOURCECODE.HEADER` for other qt5/qt6
headers and sources as well (i.e. for directories
`vcl/inc/qt5`, `vcl/inc/qt6` and `vcl/qt5/`).

Change-Id: If9fea8f4ce955396f064dbd9fd706e76d947bce1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176705
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-18 18:48:35 +01:00
Michael Weghorn
4e770803c6 tdf#163792 gtk3: Don't always focus combobox when its popup closes
Since

    commit 405cf00e48
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue May 28 11:50:12 2024 +0200

        related tdf#160971 gtk3 a11y: Keep new combobox value

, closing an (editable) combobox like the font size one
in the Writer formatting toolbar resulted in the combobox's entry
having focus, while the focus was set to the document before that
commit.

Make this work as expected (again), by making grabbing the
focus conditional in 2 places:

1) In GtkInstanceComboBox::signal_popup_toggled,
only set the focus to the GtkEntry of the custom
combobox implementation if the child focus is already
inside of the combobox. As I understand it, the intended
logic is "move focus from the combo box's button to its entry",
not "unconditionally grab the focus".
This also matches what the gtk4 implementation does. Sync the
comment from the gtk4 implementation, which explicitly
mentions the case of the font combobox in the toolbar (which
behaves the same as the font size one in that regard) where
focus should not be grabbed.

2) In GtkComboBox::menu_toggled, only explicitly set focus to
the toggle button if the combo box is located inside of a popup.
This is the same condition used to grab all keyboard events.

The code to do both was introduced in

    commit 131c1c7da8
    Date:   Sun Nov 21 19:53:47 2021 +0000

        Related: tdf#145786 cooperate between our own grabs

whose commit message only explicitly mentions grabs
for popups. The scenarios described in the commit message
still work as expected with GDK_BACKEND=x11.

With this in place, focus now moves to the document
as expected when clicking on a combobox entry in the popup
for the font size combobox in Writer's formatting toolbar,
while clicking an entry in any of the comboboxes in e.g.
Writer's "Format" -> "Character" dialog's "Font" tab still
results in the entry of the combobox getting focus.

Change-Id: Ib07b034f8327dab19a2264ae3ed8e20ea918dd89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176713
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-18 18:42:59 +01:00
Xisco Fauli
b223a06401 tdf#163486: PVS: reference may become invalid
V758 	The 'rModel' reference becomes invalid when smart pointer returned by a function is destroyed.

Change-Id: I34cbf998da49a576b43b946187de94495f5e5529
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176716
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-18 16:39:45 +01:00
Stephan Bergmann
14f5d64771 Limit to len the number of UTF-16 code units being read
Change-Id: I62bcf2919cb97d16811e9a59a63f1155437b6740
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176718
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-11-18 16:37:28 +01:00
Xisco Fauli
f41701a71b CppunitTest_sw_layoutwriter2: split in two
It already had 109 tests

Change-Id: I52e7416091bb3ffa80c39a1409dc283771f7d9ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176710
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-18 13:59:06 +01:00
Patrick Luby
dbe8a75f79 tdf#163945 Lower priority of Skia flush timer
Commit f4c2c7c79c fixed tdf#157312
by lowering the timer priority to TaskPriority::POST_PAINT. But
it caused tdf#163734 so it was reverted to TaskPriority::HIGHEST
in commit 5a38e4f979.

While reverting to TaskPriority::HIGHEST did not cause tdf#157312
to reoccur, it did cause tdf#163945 so set the timer priority to
TaskPriority::HIGH_IDLE. This priority appears to be low enough to
fix tdf#16394 without causing tdf#163734 to reoccur.

Change-Id: Ifc2833a886d52117d46c02a80c88c674ad080824
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176698
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
2024-11-18 13:52:46 +01:00
Vasily Melenchuk
3c371b7bde Windows Taskbar: use progress bar feature (ITaskbarList3)
Any status progress in LO status bar is also represented
as progress in Windows taskbar.

Change-Id: Ibd7131ff6246cf5ea37ab8730d0eddfa084265c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171886
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-11-18 13:03:52 +01:00
Johnny_M
e3d16cb1cc tdf#39468 Translate German comment
Change-Id: If0b996ff97b29860367e6ef939682b3753d47f35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176663
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-11-18 12:53:54 +01:00
Caolán McNamara
7afb836b23 crashtesting: crash on import of rtf exported from forum-en-32886.odt
see: git diff -w
Change-Id: Id50e45e53b7b433d6c468038a7de14441f4ee560
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176707
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-18 12:13:59 +01:00
MelvinYG
828ea8d37d tdf#142741: Add unit test to set valid pages for footnote links PDF export.
Change-Id: I90abb354fb9c4c6319034d994165f2e5cd667d2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175945
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-18 11:48:27 +01:00
AshSinc
76fa6776c6 tdf#163251 Fix for missing flags in single click obj creation
Change-Id: I0f6e65c4cf3ad9cac3096144d8a0efec29030739
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174420
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2024-11-18 11:39:01 +01:00
Olivier Hallot
15475ac404 Update git submodules
* Update helpcontent2 from branch 'master'
  to b3bc6425768d93d6b9bb7304ed3a0ead4b03e2a7
  - Mute L10n of <embedvar> + typos
    
    Change-Id: I06d3cf6d3d56dc030d422228f1e37cd68a7bddb5
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176697
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-11-18 11:15:02 +01:00
Michael Weghorn
62c7d89c6a loplugin:dllprivate: Extend for new qtbase macro
Qt's qtbase commit [1]

    commit cecca90ff23ff27b9396defc21abd472b3fe0003
    Author:     Thiago Macieira <thiago.macieira@intel.com>
    AuthorDate: Tue Oct 1 11:26:30 2024 -0700
    Commit:     Thiago Macieira <thiago.macieira@intel.com>
    CommitDate: Tue Nov 12 17:14:46 2024 -0800

        moc: fix support for generating meta objects for nested private classes

introduced a new QT_OBJECT_GADGET_COMMON macro, causing my
`--enable-qt6` clang plugin build with current qtbase git dev
(as of commit 957e2be00a5c45223a5ef842a5f9f2f7b7be882b)
to fail as follows for classes using the Q_OBJECT macro:

    In file included from /home/michi/development/git/libreoffice/vcl/qt6/QtAccessibleRegistry.cxx:10:
    In file included from /home/michi/development/git/libreoffice/vcl/qt6/../qt5/QtAccessibleRegistry.cxx:11:
    In file included from /home/michi/development/git/libreoffice/vcl/inc/qt6/QtXAccessible.hxx:10:
    /home/michi/development/git/libreoffice/vcl/inc/qt6/../qt5/QtXAccessible.hxx:27:5: error: declaration nested in DLLPRIVATE declaration redundantly marked as DLLPRIVATE [loplugin:dllprivate]
       27 |     Q_OBJECT
          |     ^~~~~~~~
    /home/michi/development/git/qt5/qtbase/src/corelib/kernel/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
      145 |     QT_OBJECT_GADGET_COMMON \
          |     ^~~~~~~~~~~~~~~~~~~~~~~
    /home/michi/development/git/qt5/qtbase/src/corelib/kernel/qtmetamacros.h:132:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
      132 |     Q_DECL_HIDDEN_STATIC_METACALL static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);
          |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/michi/development/git/qt5/qtbase/src/corelib/kernel/qtmetamacros.h:98:39: note: expanded from macro 'Q_DECL_HIDDEN_STATIC_METACALL'
       98 | #define Q_DECL_HIDDEN_STATIC_METACALL Q_DECL_HIDDEN
          |                                       ^
    /home/michi/development/git/qt5/qtbase/src/corelib/global/qcompilerdetection.h:190:46: note: expanded from macro 'Q_DECL_HIDDEN'
      190 | #    define Q_DECL_HIDDEN     __attribute__((visibility("hidden")))
          |                                              ^
    /home/michi/development/git/libreoffice/vcl/inc/qt6/../qt5/QtXAccessible.hxx:25:7: note: parent declaration is here [loplugin:dllprivate]
       25 | class QtXAccessible : public QObject
          | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       26 | {
          | ~
       27 |     Q_OBJECT
          |     ~~~~~~~~
       28 |
       29 | public:
          | ~~~~~~~
       30 |     QtXAccessible(css::uno::Reference<css::accessibility::XAccessible> xAccessible);
          |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       31 |
       32 |     /** Reference to the XAccessible.
          |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       33 |       * This is cleared once it has been passed to the QtAccessibleWidget,
          |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       34 |       * which then keeps an own reference and takes care of all required
          |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       35 |       * access to the XAccessible for the Qt a11y bridge. */
          |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       36 |     css::uno::Reference<css::accessibility::XAccessible> m_xAccessible;
          |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       37 | };
          | ~
    1 error generated.
    make[1]: *** [/home/michi/development/git/libreoffice/solenv/gbuild/LinkTarget.mk:339: /home/michi/development/git/libreoffice/workdir/CxxObject/vcl/qt6/QtAccessibleRegistry.o] Error 1

Extend the plugin to also take the new macro into account in
addition to Q_OBJECT.

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

Change-Id: I990f0b25010b3a0f0cc3902f732b93d13bb85d78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176702
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-18 10:17:08 +01:00
Adam Seskunas
37e082bd2b dbaccess/qa - Seperate database connection so it can be reused
Change-Id: I982cf589aff159149190c7f0f78dc8085a700240
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174981
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-18 10:06:15 +01:00
lovatico21
4f08a15f3b updated vim footers in vcl/qt6/*.cxx
Change-Id: I98f15800abf65bf3c69b473e8eb68b01838b2ed0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176556
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-18 09:18:23 +01:00
Andreas Heinisch
671886c569 tdf#81913 - Keep cell highlighting active during arrow key navigation
Don't delete range finder during arrow key navigation since cursor keys
don't count as modifications.

Change-Id: I53566a4a84ff4dc81fdf0d8b8f6468f956958925
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176689
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2024-11-18 08:43:33 +01:00
Caolán McNamara
9595fc0560 crashtesting: use after free
commit 8393267c65
CommitDate: Tue Nov 12 09:03:21 2024 +0100

    clang-tidy: performance-unnecessary-copy-initialization in various

    Change-Id: I1033c33a6b4bf06e365ce183b1a73c98bea777ab
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176442

Change-Id: Id9e253b849c74a2828ef889f9a13854de0fe2f8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176693
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-17 20:16:40 +01:00
Alain Romedenne
3d871e230f Update git submodules
* Update helpcontent2 from branch 'master'
  to c4bd6c98f97baeebb9ab087939cf6675ac27a2ce
  - Basic MiD() method has 2 different signatures
    
    - arguments syntax precisions
    - keyword names correction, the 4th argument keyword name is unknown
    
    Change-Id: I6d38dcf61286f88d28090d9e18fafde25bd89376
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/172821
    Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
    Tested-by: Jenkins
2024-11-17 18:09:53 +01:00
Caolán McNamara
e1ecdda0c1 cid#1607974 silence Overflowed return value
Change-Id: I9663f3e0cb641bd4530e1aca06d4216de74e38cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176691
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-17 17:40:21 +01:00
Caolán McNamara
dc4a433733 cid#1607833 Overflowed constant
Change-Id: Ie90b759b76fa587cddd3c160fe7845dec01652c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176690
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-17 17:39:46 +01:00
Caolán McNamara
ed8514af49 cid#1607905 Data race condition
Change-Id: Idb525a4e19cfbe0c4a493f511be7dadafac0cff5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176465
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-17 15:41:46 +01:00
Caolán McNamara
c3c337c950 create BaseContent with the state required and drop mutex
and ContentEventNotifier can be de-friended

Holding this mutex to write to a just created local doesn't make sense
to me. I can't see any where that there might be another thread that
matters here.

Change-Id: I803a45a0cf02ebc306767595555018ee97d96caf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176684
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-17 15:41:22 +01:00
Caolán McNamara
033043c404 cid#1607919 Overflowed constant
Change-Id: I842357000f3282521aa927921a5598fddaef5dee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176686
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-17 15:41:03 +01:00
Caolán McNamara
5d2de06934 pNew is only possible if there is a pRedLine
so we can move this inside the other conditional

Change-Id: I63259598d5165e3aafbf0c1cfef70ccb1b16bb38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176685
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-17 15:40:56 +01:00
Sloane Vaznova
78f2f1502b tdf#143148 Use pragma once instead of include guards
Refactored include guards into pragma once for some files
alphabetically c-d in sw/inc.

Change-Id: I8cf8059851169472d7953f4e6f5408666d27c2c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176688
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-11-17 12:42:19 +01:00
Jim Raykowski
503d7594e3 Drop DECL_LINK missed in commit
60a77c7ef4

Change-Id: I9141380327aa111bee02257ea2dda53a19bcb0d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176687
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Tested-by: Jenkins
2024-11-17 01:08:31 +01:00
Stephan Bergmann
39f701d540 Avoid UBSan when negating the most negative sal_Int64 value
...as exhibited by recently added 08e566f0c9 "add
a couple of tests for tools::BigInt"

Change-Id: Icd1080f86ccd985868fce34d6f86e2706acd58df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176677
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-16 23:27:39 +01:00
Caolán McNamara
2b8394b36b cid#1606752 silence Overflowed return value
and

cid#1607158 Overflowed return value
cid#1607271 Overflowed return value
cid#1608107 Overflowed return value
cid#1606975 Overflowed return value
cid#1608009 Overflowed return value
cid#1608353 Overflowed return value
cid#1608486 Overflowed return value
cid#1607009 Overflowed return value
cid#1606780 Overflowed return value

its totally unclear what the source of these warnings is

Change-Id: If46cac6a329dec397bd784f57d9ffe5e53af9a1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176683
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-16 22:55:53 +01:00
Caolán McNamara
0847c140a1 cid#1371295 avoid Missing move assignment operator
Change-Id: I27cca1b737c441a9f31ed6aa0fc462190ca818da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176682
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-16 22:14:03 +01:00
Caolán McNamara
f0019607e2 cid#1557644 COPY_INSTEAD_OF_MOVE
Change-Id: I63510464b74e72f8fc73899e963e20891cdf0f12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176644
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-16 21:03:30 +01:00
Bogdan Buzea
adcc06a456 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 146, 158. This will still be the case, the code being just at the moment similar.

Change-Id: Iceca3c717ccc6ee3ea865d3a469418ff6e8accd7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175146
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2024-11-16 15:17:55 +01:00
Andrea Gelmini
03e4b7c48d Fix typo
Change-Id: Iffd36495c9a1424ad02756dbc9bde6ae55df86c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176662
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-16 13:12:29 +01:00
Andrea Gelmini
518d875a51 Fix typo
Change-Id: I05757dccf4abc66f11454d2587902d25fca4312a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176660
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-11-16 13:12:11 +01:00
Andrea Gelmini
7cb6712b69 Fix typos
Change-Id: Ibeadfb72c54887ac8a74dbb11958266fbbda46e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176659
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Tested-by: Jenkins
2024-11-16 13:11:50 +01:00
Andrea Gelmini
0cf68a958b Fix typo
Change-Id: I4ffd3af20662e92512119ddfa27ea255a114f910
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176661
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-11-16 13:11:27 +01:00
Julien Nabet
f59ca5c9f9 Related tdf#105112: FB fix request for getFunctions
add missing spaces + quote before and after function name searched

Change-Id: I3b0bd3ca780c4de9d04fda7d2c80c29e60ddd1ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176669
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-16 11:34:38 +01:00