2343 Commits

Author SHA1 Message Date
Caolán McNamara
119044e8c9 drop workben outdevgrind
Change-Id: I94978f84b45daec9ba7e782087e45182def234d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88601
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-13 16:50:38 +01:00
Stephan Bergmann
38dcd3bc73 Get rid of some unnecessary llvm::StringRef -> std::string conversions
(as discussed in the commit message of ce1d8e20a708ed031f2336770a41fbe501fe8225
"Adapt to '[ADT] Make StringRef's std::string conversion operator explicit'";
there are more of those that cannot easily be dropped, though).

Change-Id: Ib2e223f7de96ad8859eab165daa759b480326c7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88582
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-13 11:24:43 +01:00
Stephan Bergmann
379d6e1dbe aImmediateMacro is unused
...ever since fdc50b0a1b9741c5610a2b6c793c8fcdf5573c76 "new
loplugin:returnconstant"

Change-Id: Ib7f8760a95112aa31e1dd2ae15229c42e5fee812
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88547
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
2020-02-13 08:14:08 +01:00
Luboš Luňák
a364218abe sort compilerplugin sources
We generally sort sources for each target in LO, so make this
consistent/nicer :).

Change-Id: I4c8bc0d9e3f0b2d8b966bd90215c960c30ea2f86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88361
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-10 14:38:05 +01:00
Andrea Gelmini
6a1cee7b09 Fix typo
Change-Id: Ia1cd4fc4e6f5cfbf327132cdd499cb42c1f7d3e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88148
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-02-07 14:53:36 +01:00
Noel Grandin
c81c383be7 loplugin:singlevalfields
Change-Id: I5d1b08532e6a4e444d61ff8ee1b913999df40ae9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88079
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-07 10:17:54 +01:00
Noel Grandin
c19e688b1a loplugin:unusedmethods
Change-Id: I7296b2fc2862d0ad1f68658b19b2a25cb7609df1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88080
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-07 07:18:48 +01:00
Caolán McNamara
66693d82ba merge FillTypeLB with SvxFillTypeBox
Change-Id: Ia6229e8cc04c88e6740a12648c50cf5efca3bbd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88067
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-06 13:11:54 +01:00
Stephan Bergmann
9aa2b6b7a9 Silence loplugin:unnecessaryoverride in WinSalInstance::GetBackendCapabilities
...(vcl/win/app/salinst.cxx) in case the

  #if HAVE_FEATURE_SKIA
  #if SKIA_USE_BITMAP32
  ...

block it contains is excluded (when building with clang-cl on Windows)

Change-Id: I60910106bbd6a4c2cb3f393945a5417eb02407c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87898
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-03 23:45:46 +01:00
Stephan Bergmann
93d836b673 Silence loplugin:duplicatedefines for WIN32_LEAN_AND_MEAN (clang-cl)
...as seen at

> In file included from desktop/win32/source/QuickStart/QuickStart.cxx:29:
> In file included from include\systools/win32/uwinapi.h:25:
> include\prewin.h(38,9): error: duplicate defines [loplugin:duplicatedefines]
> #define WIN32_LEAN_AND_MEAN
>         ^
> desktop/win32/source/QuickStart/QuickStart.cxx(24,9): note: previous define [loplugin:duplicatedefines]
> #define WIN32_LEAN_AND_MEAN
>         ^

(An alternative fix could be to replace all those defines of WIN32_LEAN_AND_MEAN
prior to including windows.h with includes of prewin.h and postwin.h?)

Change-Id: I0271b5629af8f4ecfb3c90f1455bad399174f6ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87880
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-03 23:39:47 +01:00
Stephan Bergmann
8460756e9d Missing include (std::isspace)
Change-Id: I17b9acfd265e112ffdd115df06070136a6940804
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87895
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-03 23:39:12 +01:00
Caolán McNamara
3d826d780a make some headers private
as shown with ./bin/find-headers-to-move-inside-modules.py

Change-Id: I7662417e76fe00c0fc352957560e104b6c2a3d61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87850
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-03 20:24:00 +01:00
Luboš Luňák
512cb39ffc handle -Wunused-function warnings in clang's sharedvisitor.cxx
Change-Id: I5fbf7da1da8c1c5b33e008e30898ca5d2cdfde65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87870
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-03 16:33:01 +01:00
Noel Grandin
337f199a89 loplugin:unusedmethods
Change-Id: I8a2d86145a951bcaae891240b1ed6f539d93634c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87854
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-03 13:44:50 +01:00
Noel Grandin
9f5eb314b0 loplugin:unusedfields
tweak plugin with the name of another clone method

Change-Id: I47193d31f53f48297c9e773da375c7255ddde282
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87852
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-03 13:40:39 +01:00
Luboš Luňák
81bd3b4a85 significantly reduce build time of sharedvisitor.cxx
In the sharedvisitor.cxx mode all plugins need just one shared
RecursiveASTVisitor template instance, but as long as they use another
instance each as the base class, Clang still instantiates those templates
and then spends a lot of time optimizing each of them, even though they
should never get used.
So when compiling using sharedvisitor.cxx simply use dummy base classes
that do not do anything. As an additional check they abort() if any
of the functions get called, this needed removing vclwidgets and
unusedmember from shared plugins, because they call TraverseStmt(),
maybe this can get handled somehow later.

Change-Id: Ic5a350da2c3ba31521f71077b1776b1ee8f06dea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87561
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-03 11:26:43 +01:00
Noel Grandin
0528012fd0 loplugin:constantparam
Change-Id: If2dee122bf07dc179fd8f6e766442ec1891a5f3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87845
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-03 10:53:01 +01:00
Noel Grandin
de06f883e2 loplugin:unusedfields improve checking for fields guarded by existence check
which resulted in only a couple of real finds, mostly false+

Change-Id: I26058a29c27bff50e9526bedd54fb04589c2934d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87765
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-31 19:37:48 +01:00
Noel Grandin
c599e23a92 loplugin:singlevalfields
Change-Id: I77ccf3f36363e182a644b98cdf720f1381a5cceb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87766
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-31 19:37:29 +01:00
Noel Grandin
84b396a235 new loplugin:namespaceindentation
check indentation of braces in namespace decls,
and the comments that often appear with them.

This is my penance for messing up the indentation with
clang-tidy-modernize-namespaces.

As such I have limited it to new-style namespaces for now,
and the check is off by default.

Change-Id: I4db7f10a81c79bc0eece8f8e3ee564da8bc7f168
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87723
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-31 09:34:46 +01:00
Noel Grandin
a91855165d loplugin:unusedmethods
Change-Id: Icab9a4789b0bb9187ad5393a2b8578fc4c5e401f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87736
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-30 20:40:08 +01:00
Balazs Varga
4223ff2be6 tdf#48436 Chart: add CustomLabelPosition UNO API property
and CUSTOM DataLabelPlacement to support custom data label positions,
and its initial implementation: only UI support with OOXML import
(tdf#130030), yet.

Change-Id: I01d986071d78ae3e2a5f43d5711e9f60b8410c21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86859
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
2020-01-30 10:43:02 +01:00
Noel Grandin
447e4209fa new (but unused) refassign loplugin
which I wrote to check if there were any other cases where assigning to
a ref local var looks dodgy, after my fixes in
0b113d6ebbaf923e11ba576bed2691bb68e95ae6, but I didn't find anything, so
just leave this one in store

Change-Id: Ib820924c5e8aa85206730afeb06972ef48231ec5
2020-01-30 09:24:56 +02:00
Luboš Luňák
67ae9380b7 make our clang plugin visible in -ftime-trace output
Change-Id: Id9363d8db729883d0f72eb9fcbf6d8bf5b396414
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87662
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-01-29 21:59:09 +01:00
Luboš Luňák
41a83d3207 make a simple compiler plugin usable in sharedvisitor
Change-Id: I9af231277facc661784e44f6ad3eb1a340c76f97
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87663
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-01-29 15:21:35 +01:00
Stephan Bergmann
ce1d8e20a7 Adapt to "[ADT] Make StringRef's std::string conversion operator explicit"
...<https://github.com/llvm/llvm-project/commit/
777180a32b61070a10dd330b4f038bf24e916af1>.  This is just a quick fix to get
copmilerplugins buiding again with latest LLVM/Clang trunk.  Ideally, we should
get rid of as many of those (potentially expensive) conversions from
llvm::StringRef to std::string as possible.

Change-Id: I18e185e0022a06fd8e3b983a3c4f80e1f3b96746
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87682
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-01-29 14:14:04 +01:00
Andrea Gelmini
8f0c86a068 Fix typo
Change-Id: I87ffb70c16efe356981e3f0312f9e8fbce9cd04b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87653
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2020-01-28 20:11:45 +01:00
Luboš Luňák
1565bcaff4 avoid compilerplugin's sharedvisitor bailing out prematurely
The simplifyconstruct test can return false from a Visit*() function
(thus ending the whole traversal) because anyPluginActive() would
return false just because a plugin would be temporarily disabled
in Traverse*() because of its PreTraverse*() returning false. Keep
a count of temporarily disabled plugins to prevent this.

Change-Id: I413d88749257acff2220182d13e8fcd0f7289540
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87636
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-01-28 19:33:54 +01:00
Stephan Bergmann
aef7feb3e6 New loplugin:unsignedcompare
"Find explicit casts from signed to unsigned integer in comparison against
unsigned integer, where the cast is presumably used to avoid warnings about
signed vs. unsigned comparisons, and could thus be replaced with
o3tl::make_unsigned for clairty." (compilerplugins/clang/unsignedcompare.cxx)

o3tl::make_unsigned requires its argument to be non-negative, and there is a
chance that some original code like

  static_cast<sal_uInt32>(n) >= c

used the explicit cast to actually force a (potentially negative) value of
sal_Int32 to be interpreted as an unsigned sal_uInt32, rather than using the
cast to avoid a false "signed vs. unsigned comparison" warning in a case where
n is known to be non-negative.  It appears that restricting this plugin to non-
equality comparisons (<, >, <=, >=) and excluding equality comparisons (==, !=)
is a useful heuristic to avoid such false positives.  The only remainging false
positive I found was 0288c8ffecff4956a52b9147d441979941e8b87f "Rephrase cast
from sal_Int32 to sal_uInt32".

But which of course does not mean that there were no further false positivies
that I missed.  So this commit may accidentally introduce some false hits of the
assert in o3tl::make_unsigned.  At least, it passed a full (Linux ASan+UBSan
--enable-dbgutil) `make check && make screenshot`.

It is by design that o3tl::make_unsigned only accepts signed integer parameter
types (and is not defined as a nop for unsigned ones), to avoid unnecessary uses
which would in general be suspicious.  But the STATIC_ARRAY_SELECT macro in
include/oox/helper/helper.hxx is used with both signed and unsigned types, so
needs a little oox::detail::make_unsigned helper function for now.  (The
ultimate fix being to get rid of the macro in the first place.)

Change-Id: Ia4adc9f44c70ad1dfd608784cac39ee922c32175
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87556
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-01-28 07:42:15 +01:00
Stephan Bergmann
1446e097e7 Fix loplugin:makeshared for libc++
...where the std::make_shared ctor has a default argument,

> template<class _Yp>
>     explicit shared_ptr(_Yp* __p,
>                         typename enable_if<is_convertible<_Yp*, element_type*>::value, __nat>::type = __nat());

Change-Id: Ia97d16f64a7e9b4f48112b033dcdb6722d4da791
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87552
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-01-27 23:13:57 +01:00
Stephan Bergmann
06111a2661 Adapt to Clang 11 move of DynTypedNodeList
...in <https://github.com/llvm/llvm-project/commit/
8a81daaa8b58aeaa192a47c4ce7f94b4d59ce082> "[AST] Split parent map traversal
logic into ParentMapContext.h", causing failures like

> compilerplugins/clang/constmethod.cxx: In member function ‘bool {anonymous}::ConstMethod::checkIfCanBeConst(const clang::Stmt*, const clang::CXXMethodDecl*)’:
> compilerplugins/clang/constmethod.cxx:191:70: error: invalid use of incomplete type ‘class clang::DynTypedNodeList’
>   191 |         auto parentsRange = compiler.getASTContext().getParents(*stmt);
>       |                                                                      ^
> In file included from compilerplugins/clang/plugin.hxx:15,
>                  from compilerplugins/clang/constmethod.cxx:16:
> include/clang/AST/ASTContext.h:97:7: note: forward declaration of ‘class clang::DynTypedNodeList’
>    97 | class DynTypedNodeList;
>       |       ^~~~~~~~~~~~~~~~

Change-Id: Ib82d04608fa306a715af481422017c24053a01c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87533
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-01-27 22:00:26 +01:00
Stephan Bergmann
606baaeea6 loplugin:makeshared: Fix call to clang::NamedDecl::getName
...which caused

> llvm::StringRef clang::NamedDecl::getName() const: Assertion `Name.isIdentifier() && "Name is not a simple identifier"' failed.

when compiling e.g. comphelper/source/misc/lok.cxx

Change-Id: Ie83e7fb42fae1093058caea320973bc23a90bee9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87526
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2020-01-27 18:27:43 +01:00
Luboš Luňák
3f362beeda disable 32bpp bitmap usage for Skia again
The code is just not ready for 32bpp bitmaps that actually include
alpha directly in the data instead of the stupid VCL way of using
a separate bitmap for that. And it seems the performance difference
is not that large, so revert and maybe somewhen later.

Change-Id: Icb61663665c843fb426206967d0fe7667ed88477
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87466
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-01-27 16:35:57 +01:00
Noel Grandin
2d4707f1e5 turn on loplugin:makeshared
Change-Id: Ic1baa3971e34c7df20ad7d3278c4fddc52b28a19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87413
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-27 07:14:24 +01:00
Julien Nabet
6b369969d4 cppcheck: shadowFunction in compilerplugins/dyncastvisibility
Change-Id: I978c0c28814cef4c98a90eb7cac278a0593db79f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87435
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-01-26 11:31:25 +01:00
Andrea Gelmini
91dd3e8d90 Fix typo
Change-Id: Ic0e0553bd836dabb146d31840a4855cf6299c68e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87365
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-01-26 11:14:45 +01:00
Julien Nabet
5568023a71 Typo ORealObdcDriver->ORealOdbcDriver
Thank you Terrence Enger for having spotted this!

Change-Id: I234ded85edf837e398675427fdf3e9cd3a3969a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87417
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-01-25 21:58:39 +01:00
Noel Grandin
8dd247044f new loplugin:makeshared
Change-Id: I4bfcf6e337a6806ab5983a3fa2e2a7b6f2af1c43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87270
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-24 07:18:20 +01:00
Noel Grandin
470bcd37f6 loplugin:unusedmethods
Change-Id: Ic2212a502bbd42217934884f4fce49f6f8d4765c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87236
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-23 15:33:20 +01:00
Noel Grandin
6f5332dab1 loplugin:unusedfields
Change-Id: I59a63e81cf317094ad60a88d3cdd20fc426c93b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87235
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-23 12:39:59 +01:00
Noel Grandin
ddfe8011df loplugin:unnecessaryvirtual
Change-Id: I262ebd2479df0bfbca102d47e82d62bf98b339a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87234
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-23 10:04:39 +01:00
Caolán McNamara
eae55d7397 rework line style to be a wide toolbar button
involves converting SvxLineStyleToolBoxControl to a PopupWindowController

because chart is doing interesting things in its panel there needs to be
a non-standard way to report/detect the selected line style, which is
then reused to disable/enable the arrows when none is selected/deselected
in non-chart sidebars

SvxLineBox becomes a toolbar dropdown instead of a combobox itemwindow

linectrl.cxx split into linewidthctrl.cxx and linewidthctrl because
SvxLineBox is now needed in svxcore

Change-Id: Icf0ef5e612b894a43d389af8a2908138c2e9c580
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87164
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-01-22 17:55:28 +01:00
Caolán McNamara
d4cfc4d628 remove unused GSOC 2005 "Tabbed Document Windows for OOo"
this was #i54847#

Change-Id: I312e3ea9b123976e9929f6601a931ff8a108d7b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87113
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-01-21 16:50:41 +01:00
Caolán McNamara
af71531ea2 Resolves: tdf#130035 reuse toolbar for arrow styles in sidebar
Change-Id: I8fdbf97a2e3f535767f0163a87c99ead8a3198cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87139
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-01-21 15:36:30 +01:00
Noel Grandin
73de019c0b loplugin:unusedfields
Change-Id: If130c8a4861998d7eafd2e9525592f3c811ec21c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87069
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-20 14:37:38 +01:00
Noel Grandin
01702f7d5f loplugin:unusedmethods
Change-Id: Ie5e90b3c834a1154ec49dc765a5031f6bdd35923
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87070
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-20 14:35:55 +01:00
Stephan Bergmann
a169864a24 Adapt loplugin:duplicatedefines to include/premac.h
Change-Id: I2f79409f0fe2a18ba00585a35b6f1cf6243b7c1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86995
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-01-17 23:58:11 +01:00
Andrea Gelmini
e43863a3d7 Fix typo
Change-Id: I249fb621f4920a351da6480966cbdc0ea14fdd13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86940
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2020-01-16 19:50:09 +01:00
Stephan Bergmann
c99107f670 -Werror,-Wrange-loop-analysis
> compilerplugins/clang/finalclasses.cxx:56:57: error: loop variable 's' has type 'const std::pair<std::string, std::string> &' (aka 'const pair<basic_string<char>, basic_string<char> > &') but is initialized with type 'std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >' resulting in a copy [-Werror,-Wrange-loop-analysis]
>         for (const std::pair<std::string,std::string> & s : definitionMap)
>                                                         ^
> compilerplugins/clang/finalclasses.cxx:56:14: note: use non-reference type 'std::pair<std::string, std::string>' (aka 'pair<basic_string<char>, basic_string<char> >') to keep the copy or type 'const std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > &' to prevent copying
>         for (const std::pair<std::string,std::string> & s : definitionMap)
>              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

etc.

Change-Id: If3f0599ef79d49e4bb4bbd245ca7456c09d13975
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86893
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-01-16 08:54:07 +01:00
Caolán McNamara
32c8e95366 SfxPopupWindow is now unused
Change-Id: Idd4f2854eb0746a0648df30a5815bfaf8ef6a9ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86879
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-01-15 22:12:17 +01:00