Commit Graph
3917 Commits
Author SHA1 Message Date
RashmiVid bcd92d9ffd tdf#75280: ucb: replace sal_IntPtr with appropriate integer type
Part of tdf#75280

Change-Id: I627c42eb2acf5913a8a8a10b3261e0bf91d632fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203403
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-06-05 13:35:03 +02:00
Michael Weghorn 9044e8dfe4 ucb: Reduce local var scope in SortedResultSet::ResortNew
Change-Id: I0c7c17c4a344f2a018b065801865e8aa4a542d16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205458
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-20 22:39:39 +02:00
Muhammad Naeem 5c812142b2 tdf#143148: Use pragma once instead of include guards
- Convert include guards to #pragma once in salhelper, starmath, tools, ucb, and o3tl.
- Kept changes minimal to a small cross-module batch as requested by the easyHack guidance.
- Verified with: container=1 make -j4 o3tl.build salhelper.build starmath.build tools.build ucb.build

Change-Id: Ic047061433985e12be41bdb6463ac4c8e8969ddd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204555
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-05-02 13:12:13 +02:00
Noel Grandin 65c0a26338 no need to use SAL_WHERE when throwing exception
we already add the source location to UNO exception messages

Change-Id: I01e68faad85d144b41e0abd2df3c783750862654
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198650
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-02-07 12:35:56 +01:00
Stephan Bergmann 394cd5db81 Use some more ""_ustr literals
(in places that were otherwise hit by a libstdc++ 16 trunk issue involving
std::source_location that is discussed at
<https://gcc.gnu.org/pipermail/libstdc++/2026-February/065220.html> "Re: [PATCH
6/9 v4] libstdc++, contracts: Add base P2900R14 contracts support.")

Change-Id: Iaedf3e44a5f2290e194286fa035ceed8fd40da45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198627
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
2026-02-04 08:22:35 +01:00
Gabor Kelemen 8215006a9d tdf#146619 Use more forward declarations in include/ucbhelper/
Change-Id: I233162bb69e95c4b128e8189d1eb490a67c19ffa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198236
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-31 20:55:03 +01:00
Gabor Kelemen 1ebbe671ec Fix some non self contained headers in module toolkit, ucb, xmloff
Change-Id: Icedeb3f714e6da21d256f5ee26638b327e2c09d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196639
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-21 22:50:37 +01:00
Miklos Vajna 2dcc1c95b5 ucb curl: don't verify peer in the isExemptVerifyHost() case
Try to insert a https:// image URL into Writer when the URL's host is
meant to be not verified, 'curl -k' works with the URL but insertion in
Writer still fails.

Turns out this is an expired self-signed certificate (in a local test
env). Mechanism for not verifying SSL certs in the curl session was
added in commit 2a5c998d4c (allow an
exemption to be made for a specific host, 2024-08-23), but that results
in an image insertion failure.

Fix the problem by adapting the ucb/ code to do what
<https://github.com/curl/curl/blob/470e26ff6eb55e8d18d6fa44104834e9d1f71274/src/config2setopts.c#L375>
does for 'curl -k', also clear the CURLOPT_SSL_VERIFYPEER option.

With this, inserting https:// images from my local test server works
again in Writer.

Change-Id: I0c52f6c0c0dfd6ebf0b4081a8088b623935a96f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197093
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2026-01-12 17:01:28 +01:00
Caolán McNamara 02b0772b31 cid#1662039 silence Data race condition
Change-Id: I2618b7bd7bca94a8ffb2264c6f15469a1e0d577b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194306
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-22 21:03:03 +01:00
Caolán McNamara c9ce983230 revert cid#1662039 Data race condition
Change-Id: I30407ae9619f2159a5afcf692b886a6e69ae8c81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193414
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-04 20:53:14 +01:00
Caolán McNamara 4d897b5f02 tdf#168672 Closing webdav documents is extremely slow
Change-Id: I9b6c1cbd7ca4c1a8bcce589cbfda5604e66520f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193401
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-11-04 17:13:09 +01:00
Mike Kaganski a048c3193b Simplify a bit
Change-Id: I05d2a3f053a13d4d6c530f20fe9a70a2ae97b84f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193006
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-10-27 05:13:03 +01:00
Mike Kaganski 59a1b0d5a3 tdf#101630: Do not prompt twice for OAuth2 authentication
The problem was:
When adding a service for Google Drive, clicking OK in the File
Services dialog would initiate the OAuth2 authentication procedure;
after successful confirmation, immediately another authentication
procedure started.

The reason was, that the first procedure was initiated by the code
in RepoContent::getRepositories, which created a session, but did
not register it, nor saved its token. Then, in Content::getSession,
another session had to be created, which had to authenticate again.

Before this change, the registration for an OAuth2-authenticated
session used a key including the repo. Therefore, RepoContent did
not know which repo it had to use for registration.

This change unifies the previously duplicated code used to create
a session. For OAuth2-based sessions, the key for registration is
now only the service's binding URL, which allows to use the same
key both in RepoContent::getRepositories and Content::getSession.
Now the successfully created session in getRepositories is not
deleted, allowing it to be registered and reused.

Also, after the OAuth2 authentication failed (which means that it
was cancelled by the user), the password dialog is not shown.

Change-Id: Ic84a8e034eb0900aca3b4cac0d73dd7443d6380d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193002
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-10-26 17:52:37 +01:00
siddhi 8120172f8f tdf#75280 Convert inappropriate use of sal_IntPtr to better integer
types

In sortresult.cxx, the data type of loop counter i in Remove & SetChanged
methods seems incorrect. Change to sal_Int32 which aligns with nCount.

Change-Id: Iba61b8fda5ce9d11edd59e4f192723712fd42b4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192676
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-10-20 08:22:37 +02:00
Caolán McNamara 4d3ca43ac7 cid#1659708 Data race condition
Change-Id: I599782383b48417841854fbf0cea213b3316e18d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190518
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-09-02 16:16:22 +02:00
Caolán McNamara 7aab3f08de cid#1662039 Data race condition
Change-Id: I58ed464b9f49ddf12f21995f08a8a70f430e2669
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189930
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2025-08-20 11:00:44 +02:00
Caolán McNamara 3f3aed0045 cid#1642989 Wait without held lock
restore the lock at the end of SerfLockStore::stopTicker

SerfLockStore::removeLockImpl calls this, and that is called
by SerfLockStore::refreshLocks in a loop, so if it was unlocked
at the end of the first loop, then its still unlocked on a 2nd
loop.

Probably doesn't matter as there's only a 2nd unlock attempt
if m_aLockInfoMap.empty() which presumably can only happen once.

Change-Id: Iede91b1b4ef9368bcf4e62cb85bf5a0c745e0ba7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189058
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-20 09:27:02 +02:00
Caolán McNamara 7841de4bf7 drop outdated coverity directives
Change-Id: Icbe3f0bb9433cfcf08efd28bc4eab1ba82efab74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189850
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-18 12:40:58 +02:00
Caolán McNamara 270f80c3f2 cid#1555415 Variable copied when it could be moved
and

cid#1659706 Variable copied when it could be moved
cid#1659716 Variable copied when it could be moved
cid#1659727 Variable copied when it could be moved
cid#1659735 Variable copied when it could be moved
cid#1659739 Variable copied when it could be moved
cid#1659740 Variable copied when it could be moved
cid#1659746 Variable copied when it could be moved

Change-Id: I981c42ebad50670d7704d5377b97917c966ee7da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189262
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-09 19:40:43 +02:00
Caolán McNamara b1ec05b4b1 cid#1662031 Variable copied when it could be moved
and

cid#1660225 Variable copied when it could be moved
cid#1660211 Variable copied when it could be moved
cid#1660185 Variable copied when it could be moved
cid#1660173 Variable copied when it could be moved
cid#1660168 Variable copied when it could be moved
cid#1660166 Variable copied when it could be moved
cid#1660165 Variable copied when it could be moved
cid#1660163 Variable copied when it could be moved
cid#1660152 Variable copied when it could be moved
cid#1660149 Variable copied when it could be moved
cid#1660147 Variable copied when it could be moved
cid#1660145 Variable copied when it could be moved
cid#1660142 Variable copied when it could be moved
cid#1660140 Variable copied when it could be moved
cid#1660137 Variable copied when it could be moved
cid#1660136 Variable copied when it could be moved
cid#1660135 Variable copied when it could be moved
cid#1660128 Variable copied when it could be moved
cid#1660124 Variable copied when it could be moved
cid#1660122 Variable copied when it could be moved
cid#1660117 Variable copied when it could be moved
cid#1660114 Variable copied when it could be moved
cid#1660110 Variable copied when it could be moved
cid#1660109 Variable copied when it could be moved
cid#1660105 Variable copied when it could be moved
cid#1660104 Variable copied when it could be moved
cid#1660102 Variable copied when it could be moved
cid#1660100 Variable copied when it could be moved
cid#1660098 Variable copied when it could be moved
cid#1660080 Variable copied when it could be moved
cid#1660079 Variable copied when it could be moved
cid#1660078 Variable copied when it could be moved
cid#1660075 Variable copied when it could be moved
cid#1660071 Variable copied when it could be moved
cid#1660070 Variable copied when it could be moved
cid#1660064 Variable copied when it could be moved
cid#1660063 Variable copied when it could be moved
cid#1660060 Variable copied when it could be moved
cid#1660058 Variable copied when it could be moved
cid#1660053 Variable copied when it could be moved
cid#1660050 Variable copied when it could be moved
cid#1660049 Variable copied when it could be moved
cid#1660046 Variable copied when it could be moved
cid#1660042 Variable copied when it could be moved
cid#1660028 Variable copied when it could be moved
cid#1660023 Variable copied when it could be moved
cid#1660022 Variable copied when it could be moved
cid#1660021 Variable copied when it could be moved
cid#1660020 Variable copied when it could be moved
cid#1660017 Variable copied when it could be moved
cid#1660013 Variable copied when it could be moved
cid#1660005 Variable copied when it could be moved
cid#1660003 Variable copied when it could be moved
cid#1659999 Variable copied when it could be moved
cid#1659998 Variable copied when it could be moved
cid#1659995 Variable copied when it could be moved
cid#1659993 Variable copied when it could be moved
cid#1659989 Variable copied when it could be moved
cid#1659988 Variable copied when it could be moved

Change-Id: I2a30c8a2ac8785050d49b98635b0b406535b185a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189056
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-07 20:51:26 +02:00
Caolán McNamara 7dfb235a60 cid#1659628 Data race condition
don't unlock guard on simple return case, so guard is always
still locked on leaving this method

Change-Id: I5c8aad5aad20280782e099cdb8a83bf434446249
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188996
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-06 12:49:11 +02:00
Caolán McNamara 9a2bcf52fb swap the if/else order
put the immediate return first, no logic change intended. Drop
stray ; at the of method.

Change-Id: Ifad2c2c25bfb3237710920dd945abcfeca01f655
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188995
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-06 12:48:49 +02:00
Caolán McNamara a2bbf65bb4 cid#1659628 can only reach this line in the case of a caught exception
so move it into that block protected by the rGuard.lock()

Change-Id: I8e0bde5a7de6ec5428b405f734d6c8e54fb1645e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188994
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-06 12:48:06 +02:00
Caolán McNamara a2a1a116e2 cid#1660059 silence bogus Use after free
Change-Id: Ic354f8cd6b609decca392bf3f1870932c2c91e31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188852
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-03 00:59:28 +02:00
Caolán McNamara 8f73de67cf cid#1660488 Variable copied when it could be moved
and

cid#1660483 Variable copied when it could be moved
cid#1660480 Variable copied when it could be moved
cid#1660473 Variable copied when it could be moved
cid#1660472 Variable copied when it could be moved
cid#1660471 Variable copied when it could be moved
cid#1660468 Variable copied when it could be moved
cid#1660464 Variable copied when it could be moved
cid#1660463 Variable copied when it could be moved
cid#1660462 Variable copied when it could be moved

Change-Id: I6380e6a6c2a63a5d6f2052264c54f250703e77fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188825
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-02 17:39:55 +02:00
Caolán McNamara 96939c7303 cid#1660121 Resource leak
and

cid#1660097 Resource leak

Change-Id: Ife9963022f93f1288439928156a10a10dc25da9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188592
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-31 10:01:01 +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
Gabor Kelemen 2d2ba47783 Remove obsolete fw declarations from ucb/
found with bin/find-unneeded-includes --fwdecl

Change-Id: I186a6e29a4a2a355ae0820c7b211db89c6d81d94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184006
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-05-20 08:10:12 +02:00
Noel Grandin 68ba1c02ac no need to subclass std::unordered_map here
Change-Id: Ib7be7dac8f394a35eed7212c6fbad3cefa39eaa0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185399
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-05-16 13:38:01 +02:00
Noel Grandin 22f46bd89f use more concrete UNO classes
Change-Id: Id10786bbf7985adbb251224b45f9dabcc84d0a3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182721
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-03-10 14:18:35 +01:00
Noel Grandin 591d57a21e fix dodgy lifecycle in OOoMountOperation
We fix/improve 3 things here
(1) Holding a pointer to something that might be on the stack seems dodgy.
I traced the calls back a few levels and ended up with lots of lots of
call sites, with no guarantee this pointer is safe to hold for any
length of time.

(2) we already have a unique_ptr in this structure, but we are not
properly constructing it.

(3) once we fix (1) and (2) by calling the constructor/destructor
explicitly, we can simply the password/username field handling.

This code has been here since:

    commit 065b374d69
    Author: Vladimir Glazounov <vg@openoffice.org>
    Date:   Wed May 14 13:49:20 2008 +0000
    INTEGRATION: CWS ucpgio1 (1.1.2); FILE ADDED
    2008/04/30 16:35:19 cmc 1.1.2.1: #i88090# add gio content provider

Change-Id: I3ffcf30fbf66c855cedc4a3a99985bc6ee42faa9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182483
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-03-05 17:10:12 +01:00
Noel Grandin 09e2627a83 use more concrete UNO types in some local vars
found by a little plugin I created.

Plugin parked into store/ folder because it needs hand-holding
when run.

Change-Id: I2b4da7378f0becbc5f020ac9e78cd765aa0119b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181768
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-02-26 16:56:56 +01:00
Caolán McNamara ddc09464d3 kit: enable metadata filter
Change-Id: I6814a9aa4fff5903258e92e4d1b56db1c452c49f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182041
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-02-22 23:02:58 +01:00
Caolán McNamara efc5ee18b3 filter out instance metadata connections
Change-Id: Iad8b06515700f88c07bd22fa31fb2deb85dde805
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181144
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ash@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181489
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-02-22 21:03:15 +01:00
Caolán McNamara 96a4272a84 cid#1642989 Double lock
since:

commit 867d380b0b
Commit:     Michael Stahl <michael.stahl@allotropia.de>

    tdf#161168 Improve constant repetitive loop thread

Change-Id: If8e70322db88f2356aebd6799449a542c0d8bdfb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181818
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-02-18 14:10:37 +01:00
Noel Grandin af7e4a555f loplugin:unusedmethods
Change-Id: If02eaf59ebc74001e82b70430bc32ef2edcb6d83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181470
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-02-12 12:13:00 +01:00
Manish Bera 867d380b0b tdf#161168 Improve constant repetitive loop thread
Change-Id: I01cebb1bb085c3b390c3ced48c431e8f5dc6bcbd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181005
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-02-06 10:12:20 +01:00
Caolán McNamara 1d4da92f7c cid#1607743 Data race condition
Change-Id: Ic7f4744fdb1cf43f6bcf6c66752f37be25c06cb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178494
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-12-23 21:17:00 +01:00
Caolán McNamara aed39170ce cid#1606940 Check of thread-shared field evades lock acquisition
and

cid#1608607 Check of thread-shared field evades lock acquisition

futile to lock m_nState

 #1  0x00007f3bdc4a9cc1 in pthread_mutex_lock@@GLIBC_2.2.5 () at /lib64/libc.so.6
 #2  0x00007f3bc48b0683 in __gthread_mutex_lock (__mutex=0x29ae4698) at /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/x86_64-redhat-linux/bits/gthr-default.h:762
 #3  0x00007f3bc48b9505 in std::mutex::lock (this=0x29ae4698) at /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/std_mutex.h:113
 #4  0x00007f3bc48b8bec in std::unique_lock<std::mutex>::lock (this=0x7fffa21aa7e8) at /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_lock.h:147
 #5  0x00007f3bc48b0b58 in std::unique_lock<std::mutex>::unique_lock (this=0x7fffa21aa7e8, __m=...) at /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_lock.h:73
 #6  0x00007f3bc48af7cc in fileaccess::BaseContent::cDEL (this=0x29ae4600) at core/ucb/source/ucp/file/bc.cxx:1126
 #7  0x00007f3bc48af9d4 in non-virtual thunk to fileaccess::BaseContent::cDEL() () at core/instdir/program/../program/libucpfile1.so
 #8  0x00007f3bc492d43f in fileaccess::TaskManager::getContentDeletedEventListeners (this=0x29ab47e0, aName="file://core/instdir/program/../share/config/cdefghij.klm")
     at core/ucb/source/ucp/file/filtask.cxx:2581
 #9  0x00007f3bc492caaa in fileaccess::TaskManager::remove
     (this=0x29ab47e0, CommandId=5, aUnqPath="file://core/instdir/program/../share/config/cdefghij.klm", IsWhat=fileaccess::TaskManager::FileUrlType::File, MustExist=true)
     at core/ucb/source/ucp/file/filtask.cxx:1572
 #10 0x00007f3bc48ab8c2 in fileaccess::BaseContent::deleteContent (this=0x29ae4600, nMyCommandIdentifier=5) at core/ucb/source/ucp/file/bc.cxx:934
 #11 0x00007f3bc48a9891 in fileaccess::BaseContent::execute (this=0x29ae4600, aCommand=..., CommandId=5, Environment=empty uno::Reference) at core/ucb/source/ucp/file/bc.cxx:300
 #12 0x00007f3bc48ad00a in non-virtual thunk to fileaccess::BaseContent::execute(com::sun::star::ucb::Command const&, int, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&) ()
     at core/instdir/program/../program/libucpfile1.so
 #13 0x00007f3bdc8f5537 in ucbhelper::Content_Impl::executeCommand (this=0x29adfb80, rCommand=...) at core/ucbhelper/source/client/content.cxx:1260
 #14 0x00007f3bdc8f673c in ucbhelper::Content::executeCommand (this=0x7fffa21ab0a0, rCommandName="delete", rCommandArgument=uno::Any("boolean": 1 '\001'))
     at core/ucbhelper/source/client/content.cxx:562
 #15 0x00007f3bdf7fd2c1 in KillFile (rURL=...) at core/svx/source/gallery2/galmisc.cxx:291

Change-Id: Iff9114adb4d5fe2ccf0d5a10fdd91295393a7820
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177519
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-12-14 21:55:01 +01:00
Mike Kaganski e512091e89 Simplify InteractionContinuation and derivatives
Change-Id: Ib7294cc09255f7563ae14488ab7fb56d02092dc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178117
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-12-09 05:26:24 +01:00
Mike Kaganski 76cf7c6fc0 Simplify UcbContentProviderProxy
Change-Id: I7366e31dc167707adf2c614049cee852e44d7ac1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178097
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-12-08 20:19:34 +01:00
Caolán McNamara 8c1dbd3188 cid#1607542 COPY_INSTEAD_OF_MOVE
and

cid#1606986 COPY_INSTEAD_OF_MOVE
cid#1557969 COPY_INSTEAD_OF_MOVE
cid#1557837 COPY_INSTEAD_OF_MOVE
cid#1557772 COPY_INSTEAD_OF_MOVE
cid#1557735 COPY_INSTEAD_OF_MOVE
cid#1557672 COPY_INSTEAD_OF_MOVE
cid#1557664 COPY_INSTEAD_OF_MOVE
cid#1557650 COPY_INSTEAD_OF_MOVE
cid#1557642 COPY_INSTEAD_OF_MOVE
cid#1557639 COPY_INSTEAD_OF_MOVE
cid#1557628 COPY_INSTEAD_OF_MOVE
cid#1557623 COPY_INSTEAD_OF_MOVE
cid#1557581 COPY_INSTEAD_OF_MOVE
cid#1557489 COPY_INSTEAD_OF_MOVE
cid#1557473 COPY_INSTEAD_OF_MOVE
cid#1557317 COPY_INSTEAD_OF_MOVE
cid#1557261 COPY_INSTEAD_OF_MOVE
cid#1557146 COPY_INSTEAD_OF_MOVE
cid#1557135 COPY_INSTEAD_OF_MOVE
cid#1557134 COPY_INSTEAD_OF_MOVE
cid#1557079 COPY_INSTEAD_OF_MOVE
cid#1557063 COPY_INSTEAD_OF_MOVE
cid#1557052 COPY_INSTEAD_OF_MOVE
cid#1556982 COPY_INSTEAD_OF_MOVE
cid#1556977 COPY_INSTEAD_OF_MOVE
cid#1556950 COPY_INSTEAD_OF_MOVE
cid#1556943 COPY_INSTEAD_OF_MOVE
cid#1556804 COPY_INSTEAD_OF_MOVE
cid#1556736 COPY_INSTEAD_OF_MOVE
cid#1556658 COPY_INSTEAD_OF_MOVE
cid#1556621 COPY_INSTEAD_OF_MOVE
cid#1556590 COPY_INSTEAD_OF_MOVE
cid#1556579 COPY_INSTEAD_OF_MOVE
cid#1556534 COPY_INSTEAD_OF_MOVE
cid#1556524 COPY_INSTEAD_OF_MOVE
cid#1556478 COPY_INSTEAD_OF_MOVE
cid#1556467 COPY_INSTEAD_OF_MOVE
cid#1556422 COPY_INSTEAD_OF_MOVE
cid#1556314 COPY_INSTEAD_OF_MOVE
cid#1556309 COPY_INSTEAD_OF_MOVE
cid#1556258 COPY_INSTEAD_OF_MOVE
cid#1556143 COPY_INSTEAD_OF_MOVE
cid#1556119 COPY_INSTEAD_OF_MOVE
cid#1556101 COPY_INSTEAD_OF_MOVE
cid#1556097 COPY_INSTEAD_OF_MOVE
cid#1556039 COPY_INSTEAD_OF_MOVE
cid#1555966 COPY_INSTEAD_OF_MOVE
cid#1555948 COPY_INSTEAD_OF_MOVE
cid#1555915 COPY_INSTEAD_OF_MOVE
cid#1555836 COPY_INSTEAD_OF_MOVE
cid#1555748 COPY_INSTEAD_OF_MOVE
cid#1555644 COPY_INSTEAD_OF_MOVE
cid#1555582 COPY_INSTEAD_OF_MOVE
cid#1555478 COPY_INSTEAD_OF_MOVE
cid#1555475 COPY_INSTEAD_OF_MOVE
cid#1555409 COPY_INSTEAD_OF_MOVE
cid#1555372 COPY_INSTEAD_OF_MOVE
cid#1555334 COPY_INSTEAD_OF_MOVE
cid#1555330 COPY_INSTEAD_OF_MOVE
cid#1555310 COPY_INSTEAD_OF_MOVE
cid#1555257 COPY_INSTEAD_OF_MOVE
cid#1555247 COPY_INSTEAD_OF_MOVE
cid#1555147 COPY_INSTEAD_OF_MOVE
cid#1555120 COPY_INSTEAD_OF_MOVE
cid#1555059 COPY_INSTEAD_OF_MOVE
cid#1555016 COPY_INSTEAD_OF_MOVE
cid#1554880 COPY_INSTEAD_OF_MOVE
cid#1554824 COPY_INSTEAD_OF_MOVE
cid#1554808 COPY_INSTEAD_OF_MOVE
cid#1546189 COPY_INSTEAD_OF_MOVE

Change-Id: I2d2f33c603f1596228c9ecb169472ba6751e7826
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177593
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-30 22:39:23 +01:00
Xisco Fauli c251a8cfe6 PVS: V547 Expression '!bNeedAction' is always false.
Since
commit 9859528a0e
Author: Ingrid Halama <iha@openoffice.org>
Date:   Thu Mar 22 15:48:03 2001 +0000

    #84921# smart propagation of fetchsize and direction from stub to possibly underlyingCachedContentResultSet

Change-Id: I6d1c2ef916d3e5b43f4cc896ef202acd69e2a2fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177431
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-27 20:17:32 +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
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
Noel Grandin a34d9e3619 loplugin:reftotemp in scripting..uui
Change-Id: I6953958b4429dd0fa1a44d02b0b49618f97baf90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176500
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-13 06:35:19 +01:00
Noel Grandin 8393267c65 clang-tidy: performance-unnecessary-copy-initialization in various
Change-Id: I1033c33a6b4bf06e365ce183b1a73c98bea777ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176442
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-12 09:03:21 +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
Noel Grandin ed0b12f4ea no need to take a copy of the getProcessComponentContext return value
we can just take a "const &".

(found by running clang-tidy with the
performance-unnecessary-copy-initialization warning)

Change-Id: I20fd208c65303da78170b1ac06c638fdf3aa094b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176267
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-11-08 15:23:52 +01:00
Noel Grandin e1ecd89204 loplugin:passstuffbyref in ucb..xmlsecurity
Change-Id: I734a4ca69e1b2770613beb3a05d770b7fc7343b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176203
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-07 14:31:24 +01:00