Stephan Bergmann
783419657c
loplugin:salbool: sal_Bool[] -> bool[]
...
Change-Id: I3c5bf7a53c9ae173f8fce885ecf022f092aa43a9
2016-04-21 17:29:40 +02:00
Stephan Bergmann
5ef76efb40
loplugin:salbool: Automatic rewrite of sal_False/True
...
Change-Id: I5896c6b8bf2aa9c7c66ca5f7c50cee1b0738ea0a
2016-04-20 17:27:32 +02:00
Stephan Bergmann
0c3b327ed0
Fold elementimport_impl.hxx into elementimport.hxx
...
Change-Id: I5e71078ddf98d389b0dd9fcf4252417ddd74ffec
2016-04-12 20:03:49 +02:00
Wastack
84fd42c1f5
tdf#97966 Drop 'static' keywords
...
Including no keywords from extern "C" blocks
Change-Id: I7769c9d2a131d7389ef6ab08c0fbd12bc624778c
Reviewed-on: https://gerrit.libreoffice.org/23678
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Stephan Bergmann <sbergman@redhat.com >
2016-04-01 06:46:47 +00:00
Noel Grandin
6439005484
use SAL_N_ELEMENTS more widely
...
found using
git grep -n 'sizeof.*/.*sizeof.*[0]'
Change-Id: Icd4a6cc1ca8ec8ebd68e1701a02789c74cf0eb2a
2016-03-31 11:30:36 +02:00
Noel Grandin
1aa4df615f
use SAL_N_ELEMENTS in for loops
...
for with
git grep -n 'for.*sizeof'
Change-Id: I6211024385e03ac5eeeb38690d2c1c699e015c2f
Reviewed-on: https://gerrit.libreoffice.org/23569
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2016-03-31 08:00:13 +00:00
Noel Grandin
535aa95014
loplugin:unuseddefaultparams in xmloff/
...
Change-Id: Ia504a4e96a4ebc8404fe6881e0f77fba29cd00ae
2016-02-25 14:18:54 +02:00
Noel Grandin
4fbf95deba
new loplugin:unuseddefaultparams
...
Change-Id: I2c3e7d66be9e3883ea2801ff394948cc580d1e44
2016-02-25 11:42:35 +02:00
Noel Grandin
778e9a65bf
new loplugin: find write-only fields
...
Change-Id: I0f83939babacf92485420ee63f290a297d7cb717
Reviewed-on: https://gerrit.libreoffice.org/22498
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2016-02-19 11:23:57 +00:00
Andrea Gelmini
64d624b651
Fix typos
...
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86
Reviewed-on: https://gerrit.libreoffice.org/21209
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com >
2016-01-10 14:17:20 +00:00
Stephan Bergmann
fb8a3fac5d
loplugin:nullptr: More NULL -> nullptr automatic rewrite
...
Change-Id: Ie83819e2bcdc5fa160b39296b005ca9a5ff74b1d
2015-12-10 08:06:06 +01:00
Noel Grandin
abc6071b7a
loplugin:unusedfields various
...
Change-Id: I18f94269a1172cf195ee402384f7144610e1e82d
2015-11-26 13:26:25 +02:00
Noel Grandin
80735fcbb0
com::sun::star->css in xmloff/
...
Change-Id: Iee6e21e093fb1383f19a0716dbc1c341f446b8c2
Reviewed-on: https://gerrit.libreoffice.org/20192
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-26 10:47:02 +00:00
Noel Grandin
3e6ba91e2d
loplugin:unusedfields in include/xmloff
...
Change-Id: I979743671e9a2e868d815f917427588b7b0320ba
2015-11-25 13:57:29 +02:00
Noel Grandin
fe3fd05966
add mapKeysToSequence/mapValuesToSequence methods to comphelper
...
and use them
Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec
Reviewed-on: https://gerrit.libreoffice.org/20055
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-20 08:14:13 +00:00
Noel Grandin
e1d88a5745
use unique_ptr for pImpl's in xmloff/
...
Change-Id: Ib95118941938af83fed566a085837e17f092017a
2015-11-17 08:23:35 +02:00
Noel Grandin
25aec383f9
use initialiser for Sequence<OUString>
...
replaced using:
git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)'
| xargs perl -0777 -pi -e
"s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\);
.*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g"
Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9
Reviewed-on: https://gerrit.libreoffice.org/19969
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-15 12:18:55 +00:00
Oliver Specht
fa91dd31f3
5th step to remove tools/rtti.hxx
...
tools/rtti.hxx removed
completed the interface of some Sdr.* Items
and removed pseudo items
Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a
Reviewed-on: https://gerrit.libreoffice.org/19837
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Oliver Specht <oliver.specht@cib.de >
2015-11-11 10:49:30 +00:00
Stephan Bergmann
51b45df6bb
loplugin:nullptr (automatic rewrite)
...
Change-Id: I8690de2cb68dcfedc9f2239ce66cea06fd94bc16
2015-11-10 10:32:01 +01:00
Stephan Bergmann
41a000b742
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
...
Change-Id: Ibb9372bc45a0bc0b9083ad0e405440bbbe5ef678
2015-11-06 09:38:44 +01:00
Noel Grandin
9e8ff13eb2
use uno::Reference::set method instead of assignment
...
Change-Id: I60e52ef2abc3107ba77e81811dfe1bffbfd77218
2015-11-05 13:32:17 +02:00
Mario J. Rugiero
f533433201
xmloff tree cleanup
...
- Replaces for_each(*.begin(), *.end(), ...) by its range based for loop equivalents.
- Replaces boost::bind calls by C++11 lambdas.
- Cleans a few hacks made to workaround boost::bind limitations.
Change-Id: Ie88cc651a2a835b03d5037e54e2a61ca93866310
Reviewed-on: https://gerrit.libreoffice.org/19678
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-10-30 06:04:59 +00:00
Noel Grandin
644487a115
loplugin:unusedmethods
...
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861
Reviewed-on: https://gerrit.libreoffice.org/19231
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-10-27 08:20:43 +00:00
Noel Grandin
2f3ea8dfbc
refactor out some com::sun::star typedefs
...
which mostly serve to make the code harder to read
Change-Id: Ia2a83fee9f850ab6f0bea6305ce8600d6b785fe8
2015-10-21 14:17:56 +02:00
Caolán McNamara
979651c21a
coverity#1326118 Constant expression result
...
Change-Id: I3a5786650e0724f6b6015153df7275851471626c
2015-10-13 22:38:36 +01:00
Stephan Bergmann
b36963c0a6
Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
...
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12 17:52:29 +02:00
Stephan Bergmann
4c8fa775c5
clang-analyzer-deadcode.DeadStores
...
Change-Id: I58f6f4db6f5bdc30402f55aee233e465248becf6
2015-10-07 15:43:47 +02:00
Noel Grandin
d451de7f08
loplugin:mergeclasses
...
Change-Id: I592eef7503bd0b492f73ea5216f436302ad79ca8
2015-10-06 08:41:58 +02:00
Caolán McNamara
446be18a3e
make CppunitTest_sw_ww8export work again
...
revert xmloff portion of
commit 35e68754ec
Author: Noel Grandin <noel@peralex.com >
Date: Thu Oct 1 15:10:56 2015 +0200
loplugin:unusedmethods
Change-Id: I3d6f1300f4fae2af9e580d1d3b2c2c80fa9e9268
Reviewed-on: https://gerrit.libreoffice.org/19075
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
Change-Id: I24aa3f113a77d93c789b063b3c099bf2038e1dad
2015-10-02 11:38:58 +01:00
Noel Grandin
35e68754ec
loplugin:unusedmethods
...
Change-Id: I3d6f1300f4fae2af9e580d1d3b2c2c80fa9e9268
Reviewed-on: https://gerrit.libreoffice.org/19075
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-10-02 06:38:43 +00:00
Andrea Gelmini
79797f8e59
Fix typos
...
Change-Id: If2e4adb2ce93c02ee14d831eedf4ef31da04b92d
Reviewed-on: https://gerrit.libreoffice.org/18996
Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org >
Tested-by: Joren De Cuyper <jorendc@libreoffice.org >
2015-09-29 22:14:58 +00:00
Oliver Specht
d3c7c9ea81
tdf#94559: first step to remove rtti.hxx
...
replaced use of PTR_CAST, IS_TYPE, ISA in
avmedia, basctl, basic, cui, dbaccess, vcl,xmloff
Change-Id: If4496762e82e896b6fbc362e6626502703c245f5
Reviewed-on: https://gerrit.libreoffice.org/18905
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Oliver Specht <oliver.specht@cib.de >
2015-09-29 12:26:20 +00:00
Takeshi Abe
8358eadcba
xmloff: tdf#88206 replace cppu::WeakImplHelper*
...
with the variadic variants.
Change-Id: I47002abab1e025d0683f4cf8ef7b6c99e668d425
Reviewed-on: https://gerrit.libreoffice.org/18479
Reviewed-by: Michael Stahl <mstahl@redhat.com >
Tested-by: Michael Stahl <mstahl@redhat.com >
2015-09-11 17:16:17 +00:00
Michael Stahl
58c3bbfd46
comphelper: remove unnecessary include <stack>
...
Change-Id: I39295d69dd8a48f0f40275830cb6fda4ca0b69f3
2015-08-19 19:32:18 +02:00
Noel Grandin
05457f3bf8
loplugin: defaultparams
...
Change-Id: I7989a91d8d67a15d3fef13391c5dbf06233f75e9
2015-08-11 09:48:18 +02:00
Noel Grandin
a62129aa63
loplugin:unusedmethods xmloff
...
Change-Id: I9d15d8edcc6746c055336bf31e5b0c15cb971ffe
Reviewed-on: https://gerrit.libreoffice.org/17061
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-07-15 10:36:25 +00:00
Stephan Bergmann
cbce40e965
Make content of OSL_ASSERT, DBG_ASSERT, etc. visiblie in non-debug builds
...
...to avoid lots of loplugin:staticmethods warnings. Also enables DBG_ASSERT
etc. also for --enable-debug builds in addition to --enable-dbgutil builds.
Change-Id: Ib89ecd9ab8ce7abb2c64790ace248b31f9d2b64d
2015-07-13 18:14:11 +02:00
Andrea Gelmini
1c5f07e60c
Fix typos
...
Change-Id: I98b4dfb0f72f315065693335e2f882bb2eed3afe
Reviewed-on: https://gerrit.libreoffice.org/16713
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
2015-07-03 09:14:23 +00:00
Caolán McNamara
416913139a
coverity#1308433 Uncaught exception
...
Change-Id: I32750eebbcd5a54d3767d77f4f4b8c54c0888078
2015-06-27 14:42:18 +01:00
Stephan Bergmann
5897e103b6
loplugin:stringconstant: handle OUString+=OUString(literal)
...
Change-Id: I44c30ef19661d3274a4131dd05a5c786263fae59
2015-06-26 13:55:36 +02:00
Andrea Gelmini
ae150c6a54
Fix typos
...
Change-Id: Ibfa971952cd330ddf430e7e951c5c235d2ae6bd8
Reviewed-on: https://gerrit.libreoffice.org/16314
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Michael Stahl <mstahl@redhat.com >
2015-06-18 11:44:56 +00:00
Noel Grandin
b9dd51782c
some spelling fixes, mostly in Java code
...
Change-Id: Ib9d0522a1f371404ee990348712e2d196049f69f
2015-06-08 14:06:54 +02:00
Noel Grandin
6140ca9f1d
loplugin:loopvartoosmall
...
Change-Id: Icb31e51575f7fffd36be73bbd87a3c5e56c3aa26
2015-05-29 08:48:41 +02:00
Caolán McNamara
e50698c0ce
cppcheck: noExplicitConstructor
...
Change-Id: I8c9e970d5c5931de1a7526cbff3de626ef30bd74
2015-05-24 20:58:24 +01:00
Julien Nabet
3aebc670e1
Remove include stdio (part2)
...
Change-Id: Iae58d107d8df1c543a165086fb2b7c288e7121dd
Reviewed-on: https://gerrit.libreoffice.org/15775
Reviewed-by: Julien Nabet <serval2412@yahoo.fr >
Tested-by: Julien Nabet <serval2412@yahoo.fr >
2015-05-18 05:33:52 +00:00
Takeshi Abe
99e60d8d62
std::ptr_fun became deprecated since C++11
...
Change-Id: If93609d032c9864e0251230bf9ed76e6b6741a62
Reviewed-on: https://gerrit.libreoffice.org/15672
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2015-05-08 15:54:12 +00:00
Stephan Bergmann
338358b0ca
XMLTransformerActionInit parameters are generically of type sal_uInt32
...
Change-Id: Ic36339fbb78a6ac3233f3d75a1309cf1b0642fe0
2015-05-08 09:49:04 +02:00
Noel Grandin
d1b27a1d9a
loplugin:staticmethods
...
Change-Id: Id3d6b50e07ea0850af18ab9bdadfffe0e4602aab
2015-04-07 10:24:54 +02:00
Stephan Bergmann
54e87df11f
Change INetProtocol enumerators to CamelCase
...
...to avoid clashes with macros and poor warnings about hiding global FILE
Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02 18:33:37 +02:00
Stephan Bergmann
44b3e56bb4
Change INetProtocol to scoped enumeration
...
...and fix o3tl::enumarray::operator [] const overload
Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02 16:30:34 +02:00