Commit graph

474938 commits

Author SHA1 Message Date
Stephan Bergmann
64106353c9 Just use Any ctor instead of makeAny in writerperfect
(which needs one more false loplugin:redundantfcast suppression case)

Change-Id: Ib8a72a510384f497bddaef5b812a46ea473481d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133703
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 22:01:00 +02:00
Stephan Bergmann
92fc91bbb8 Just use Any ctor instead of makeAny in writerfilter
Change-Id: I3db5381c5dc72f0498171d9e61479ae6763312bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133708
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 21:59:54 +02:00
Miklos Vajna
3f768cddd2 framework: avoid re-creating protocol handler instances all the time
Once you install an extension that adds its own protocol handlers (e.g.
<https://github.com/niocs/ProtocolHandlerExtension>), DispatchProvider
re-creates this protocol handler every time the custom menu gets opened
or a command gets dispatched.

This allows the dispatch provider to avoid managing the lifecycle of
those protocol handler instances, but in case the constructor of those
handlers is expensive, this leads to performance problems.

Introduce a map of handler instances in DispatchProvider to avoid
unnecessary re-creation and re-initialization: these instances get the
same XFrame anyway (the DispatchProvider is owned by the frame), so this
is meant to be safe.

No testcase for this -- the problem is only visible if you have an UNO
service registered in the global UNO service registry, but by the time
our cppunit tests run, that is already a fixed list, so this would be
hard to test from code.

Change-Id: I6d69906a795a2d5a67706002d635b6cb3091b856
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133706
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-05-02 21:59:28 +02:00
Andrea Gelmini
f8d35a20be Remove duplicated includes
Change-Id: I22e66f3cb370c53e1c5ca1e5fa6760d152def374
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133696
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-05-02 21:53:10 +02:00
Stephan Bergmann
75fe405132 Just use Any ctor instead of makeAny in xmlhelp
Change-Id: I1e8d144e8a011868bdd0083bccd90ee80eabbe66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133701
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 20:02:03 +02:00
Stephan Bergmann
7ae3fbe108 Silence -Werror=maybe-uninitialized
> vcl/source/helper/strhelper.cxx: In function ‘rtl::OString psp::WhitespaceToSpace(std::string_view)’:
> vcl/source/helper/strhelper.cxx:365:9: error: ‘pBuffer[-1]’ may be used uninitialized [-Werror=maybe-uninitialized]
>   365 |     if( *pLeap == ' ' )
>       |         ^~~~~~

that hits at least with GCC 13 trunk now (and which actually is a false positive
as far as I can tell)

Change-Id: I69b96e4cf68f0ed20ac7d73014c164db792983a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133704
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 20:01:38 +02:00
Stephan Bergmann
2256912336 Pick a better variable type
Change-Id: I2a24201d0e9cb230aefbb92dadf30907b0d1dccb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133677
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 20:01:01 +02:00
Xisco Fauli
fae937b685 sw: avoid one more EXCEPTION_INT_DIVIDE_BY_ZERO
Seen in
https://crashreport.libreoffice.org/stats/signature/SwTextFrame::PaintExtraData(SwRect%20const%20&)

Change-Id: Ie6924254dca73360d384987834460a6f813e0d69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133691
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-02 18:56:15 +02:00
xuenhua
7fd1b0aa2b Delete mnemonics for CJK translations on macOS
'Cop~y' translated into Chinese is '复制(~Y)'
But the mnemonics '(Y)' is useless on macOS.
In English, 'Cop~y' with the '~' removed is the correct result.
But in CJK should remove along with '(' and ')',
not just only for mbMenuBar. Use the method MnemonicGenerator::EraseAllMnemonicChars
already defined in vcl/mnemonic.hxx

Change-Id: Ic37ce566923e3dea47535d187b1b3dba2088e960
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133572
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-02 18:54:20 +02:00
Andrea Gelmini
1139013b12 Fix typo
Change-Id: I63a6ac96679cabe12263a97c3dfdbbd035983b79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133697
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-05-02 18:52:36 +02:00
Mike Kaganski
21a0e9ae54 Reimplement IconView::PaintEntry
Use spacing between top, bottom, icon and text (the case of sum
of items heights greater than element height is not yet handled).

Draw the background even when there's no text: that allows to
center the icon in the item, and still have proper highlight of
selected item.

Change-Id: I5d5dd14060efd15beb0e69df859ecf1efe8a0287
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133612
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-05-02 18:46:03 +02:00
Caolán McNamara
00e43c1455 Related: tdf#148433 experiment with CAIRO_OPERATOR_EXCLUSION
export SAL_DISABLE_CAIRO_DIFFERENCE=1 to experiment with this

Change-Id: If0e5fee8c71ae3d2181b1e0b90bf9ecd6536ffc0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133671
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-02 18:37:33 +02:00
Stephan Bergmann
8e08e6c0ce loplugin:stringview
Change-Id: I266dc947f9590f869ca7245d776263c692f02be5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133688
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 17:51:11 +02:00
Stephan Bergmann
0c34f61772 Just use Any ctor instead of makeAny in xmlscript
Change-Id: I6dbf6acdf051fefe73c82b7739105a73d3aabede
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133699
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 17:24:32 +02:00
Olivier Hallot
f13b8908d2 Update git submodules
* Update helpcontent2 from branch 'master'
  to 834789bd8d25cfee57662c8023a34f8e80cc078d
  - Update Basic function Shell page
    
    Change-Id: I64ed0d7ce000f6a0ca49d60fa0f4ed80690ac03c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/133659
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-05-02 17:19:22 +02:00
Luboš Luňák
8ff55ff8c9 better for fix glyph font fallback with null character
Text layout code already filters out unsuitable characters,
the null character just wasn't included there because it's normally
not expected to be present in text, only something broken like
ofz34898-1.doc causes it.

This basically reverts commit 3d7ca1bd1c.

Change-Id: Ic29674d9507340c2a43098a88c0320d4253a0bf8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133689
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-05-02 15:59:03 +02:00
Luboš Luňák
4bb730be09 better cache size limit for vcl::text::TextLayoutCache
This is not as important as SalLayoutGlyphsCache, as these should
be smaller and less needed, but still, make sure to limit the memory
the cache may use.

Change-Id: I4051331f8c5254cb5723772bac4dd1bceb9a2a41
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133674
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-05-02 15:06:43 +02:00
Luboš Luňák
8e6ab65022 better cache size limit for SalLayoutGlyphsCache
With just limit on the number of cached SalLayoutGlyphs instances
the actual memory used could vary wildly depending on how long
the text is.

Change-Id: Ibcf6918e562e81276d21876c532838996e275bd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133673
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-05-02 15:06:26 +02:00
Stephan Bergmann
bc7ea0a759 loplugin:stringviewparam
Change-Id: Ife277f789270f80a40cd711a9235e41bbb3384ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133686
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 14:39:17 +02:00
Stephan Bergmann
5d4ba848a3 loplugin:stringviewparam
Change-Id: I30fddefcc0dc95f98a34ca45bd667f0900ec2044
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133687
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 14:11:50 +02:00
Miklos Vajna
02a5bd2e6c sw content controls, checkbox: add insert UI
- extend SwWrtShell::InsertContentControl() to be able to create
  multiple content control types

- a new checkbox content control's content is always a non-checked
  checkbox

- expose this as a new .uno:InsertCheckboxContentControl uno command

- add this new command to the bottom of the form menu -- now that we
  have two types of content controls, have that in a sub-menu

Change-Id: I058659600b3face69b89262feb0979fff32521c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133685
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-05-02 12:54:27 +02:00
Caolán McNamara
b294a94861 enable test for all platforms
Change-Id: I9af29ee1601093a2cce342e6bb8f4274f946a444
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133675
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-02 11:33:09 +02:00
Caolán McNamara
d0d780a05e move layout-dependent test to explicit layout cppunit target
Change-Id: If1d4c6047df5a69b5cf8f9e9a970c1ecad754ce5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133670
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-02 11:32:51 +02:00
Heiko Tietze
ee1705a95b Use colors from standard palette for sparklines
Change-Id: I95cfb74efd5e28e048c8057a464a57c88aab7e7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133634
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2022-05-02 10:22:25 +02:00
Stephan Bergmann
40edf4e6ae Add css::uno::Any(Color) specialization
...like was already present for css::uno::makeAny, in preparation of getting rid
of makeAny

Change-Id: I293e240e38fb9ad7e9e386a46da7b69beda7103b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133680
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 10:01:54 +02:00
Miklos Vajna
55c3860f98 sw: prefix members of WW8_WrPlcPn, WW8_WrPlcSepx, WW8_WrPlcSubDoc and ...
... WW8_WrPlcTextBoxes

See tdf#94879 for motivation.

Change-Id: Id2cae0dcb328ff319607a29489231a54ad26c132
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133682
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-05-02 09:37:26 +02:00
Luboš Luňák
46097559ed support custom item size (cost) for o3tl::lru_map
When used with items that may vary significantly in size (such
as SalLayoutGlyphsCache storing glyphs for texts of different sizes)
limiting lru_map to just the number of items performs poorly,
since it may use only small amount of memory if items are small
or it may spent a huge amount of memory if items are large.

As extra optional template argument to o3tl::lru_map that is a functor
that provides cost of item each, and the total size is based on this
instead of each item having cost 1.

Change-Id: I2b326754fe63eb4bd20010d4cea615187407e26c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133672
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-05-02 09:26:31 +02:00
Stephan Bergmann
36783678bb Add css::uno::Any(OUStringNumber) overload
...like was already present for css::uno::makeAny, in preparation of getting rid
of makeAny

Change-Id: Ic838a8297ec65dae75da6a1deb5933d562070753
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133679
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-02 08:25:42 +02:00
Szymon Kłos
22887ce7b1 lok: reset ui mode state when switch to notebookbar cancelled
We have to keep state in the register in sync with the view.
When we cancelled notebookbar usage we need to revert Default state
so next time we will be able to activate notebookbar.

Change-Id: Ie5f7d0160c9c22c6621aca73b2cdd7197f86ff78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133325
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133654
Tested-by: Jenkins
2022-05-01 20:19:23 +02:00
Szymon Kłos
db2e2e555b jsdialog: export symbol for buttons
Change-Id: I412961bd59855dcb4204dfb917b30539dac0eac2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132756
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133653
Tested-by: Jenkins
2022-05-01 20:19:02 +02:00
Szymon Kłos
7df8334b00 jsdialog: handle formulabar as textinput
mostly boilerplate code

jsdialog changes:
- added force parameter to sendAction
- added support for key press/release and command events
- moved ActionDataMap to jsdialog namespace for sharing

formulabar changes:
- added calls to send jsdialog messages with formula
- added cursor moving support - on command event

Change-Id: I714715133901941ba0758655e2d5907a3bae79f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133010
Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133652
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2022-05-01 20:18:52 +02:00
Szymon Kłos
3dd8b19b81 lok: Introduce uno commands for formulabar actions
thanks to that we can reach them using LOK as formulabar
is not fully welded yet

Change-Id: Icc1963ab11c1e6e3c407222d76b2a87fdaffa652
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133496
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133655
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2022-05-01 20:18:40 +02:00
Caolán McNamara
bd1f61dff6 abort more writer layout tests if a font isn't found
Change-Id: I4d94b60531505f2d5a493b4c51f4c9110d3a4517
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133633
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-01 15:43:54 +02:00
Caolán McNamara
172270a8f0 abort writer layout tests if a font isn't found
if (the default) of --with-fonts is enabled then additionally restrict
fontconfig to those "application" fonts so the linux ci can be used to
safeguard that font and glyph fallback isn't in operation during the
layout tests

Change-Id: Ic7fc705827c8177b8367cf41f55cdd8ae002c1f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133523
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-01 15:43:31 +02:00
Caolán McNamara
cd9602dcc5 ofz#47162 Integer-overflow
Change-Id: I4d910a1844100415f95c89bda83843ddffdc3df0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133663
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-01 15:42:56 +02:00
Caolán McNamara
ce17ecbfa6 ofz#47111 Timeout
Change-Id: Ic50978f5189ea2079d8cc2b5d0803ef4baf4ea4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133665
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-01 15:42:28 +02:00
xuenhua
38a1c6b760 Fix comments
Latin a-z instead of Latin A-Z

Change-Id: If638cdbe12a1c66cb27b982508867a5a34681b02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133589
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-05-01 11:05:00 +02:00
Caolán McNamara
520d8c9ec7 tdf#74331: 16bit "min-is-black" tiff not loaded correctly
try an alternative fix

git show -w is your friend here

Change-Id: Ie9644f73431243ea0e9c6ef7f5c7ca4dadc7ed9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133638
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-01 11:03:13 +02:00
Caolán McNamara
d61e4b9895 don't use an empty fontname, reuse the default from the virtual dev
zero size font is odd, but that's as it was already

Change-Id: Ib430f2ff2a53c21dc7d15d11377762ab336a61e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133660
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-01 11:02:32 +02:00
Caolán McNamara
b4dbdbdc97 ofz#47118 Timeout
Change-Id: I5cf7f07c00faebb8005b150c9638dfbb742d156f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133666
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-01 11:02:02 +02:00
Samuel Mehrbrodt
96ce28f5eb Align macro menu in start center with other places
Esp. "Edit Macros" was missing here - it's available in the other apps.

Change-Id: I807e9c35da42729d3c3838266736fdfa5be23fcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133434
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-05-01 09:58:08 +02:00
Luboš Luňák
6014f363a0 improve support for using libc++ on Linux and for libc++ debug mode
It seems to run slightly faster in --enable-dbgutil mode and also
builds a bit faster (at least with Clang). But libc++ on Mac
isn't built with debug mode support.

Change-Id: Idf5dba9c4a56aba1f4163aa518a78d34b6837149
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133664
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-05-01 08:40:12 +02:00
Noel Grandin
5200a73627 use more string_view in various
found by examining uses of OUString::copy() for likely places

Change-Id: I6ff20e7b273ad6005410b82719183c1122f8c018
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133617
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-01 08:30:18 +02:00
Noel Grandin
b90d3d316d use string_view in WhitespaceToSpace
Change-Id: I64c63418ca51a09312083dab2432bcca0ea262a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133647
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-01 08:28:35 +02:00
Luboš Luňák
1ffd6897dd try to use also proper debug LDFLAGS for externals libraries
This is basically ea68de2968 but
for LDFLAGS. A number of external libs cannot use this because
their libtool mishandles -fuse-ld.

Change-Id: Idee379eb0a3afb475b536519ee3de064b4e218f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133639
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-05-01 05:47:22 +02:00
Luboš Luňák
339fbb7bc3 SalLayoutGlyphsCache no longer needs to hash OutputDevice pointer
It seems now the cache key contains all the necessary info and
results can be shared even between different OutputDevice instances,
as long as they are "the same".

Change-Id: I367322f469ab6713299f178a711a63065b245f9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132902
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-05-01 05:46:50 +02:00
Seth Chaiklin
2c19246a40 tdf#148519 change positioning option "Margin" -> "Entire frame"
A label for Vertical positioning, when an object is anchored 
  "to frame" was mislabeled as "Margin" (for Shape). Change
  it to "Entire frame", which is also used for positioning
  Images. 
  
Change-Id: Ia001c22b5bdf2c74611948d23afa9566aab4078c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133290
Tested-by: Seth Chaiklin <sdc.blanco@youmail.dk>
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2022-04-30 23:25:54 +02:00
Noel Grandin
fbff7af0a1 split comphelper::string::strip functions into String and view version
which is more obvious, from the perspective of the caller, and lets us
avoid creating a new String if nothing needs to be stripped

Change-Id: I66a980eaf4aa818251bec49bdb16c2dddb0745e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133657
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-30 21:21:34 +02:00
Noel Grandin
40077fe309 new loplugin:stringviewdangle
to find places where string_view is pointing into a temporary String

Change-Id: Ib530b36f441e95d83d8f687d40a97516a0806721
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133656
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-30 21:20:55 +02:00
Andrea Gelmini
0a7c9153b0 Fix typo
Change-Id: If93c80f5c4c9d68aeeaf3c0b16d9ef234bcc6737
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133553
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2022-04-30 18:41:08 +02:00