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
Takeshi Abe
ee7da352b8
Resolves: tdf#88206 replace cppu::WeakImplHelper* etc.
...
with the variadic variants.
Change-Id: I7154f9472f02fdf47d27ba715db55bb1ec669a8a
Reviewed-on: https://gerrit.libreoffice.org/18580
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-09-15 06:19:28 +00:00
David Ostrovsky
28ebbf16ad
xmlhelp: Add missing include
...
Change-Id: Ie369f00a745dba82c8966f51886d74a8a9a7c1ff
Reviewed-on: https://gerrit.libreoffice.org/18523
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: David Ostrovsky <david@ostrovsky.org >
2015-09-13 05:36:01 +00:00
Stephan Bergmann
6afc1202ae
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
...
Change-Id: I816d2205dcd01d4566054da33439e943a3c6348b
2015-08-31 08:00:15 +02:00
Stephan Bergmann
5da0dce19c
Consolidate isFileUrl checks
...
Change-Id: I1b74fdfaa09c4d0d6c296253958e83e78b546a9a
2015-08-19 12:24:37 +02:00
Noel Grandin
a45827b230
loplugin:unusedmethods
...
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971
Reviewed-on: https://gerrit.libreoffice.org/17378
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-07-30 06:23:00 +00:00
Noel Grandin
38ecca9b30
inline a bunch of use-once macros
...
no point in having a macro unless it's actually going to reduce the
number of lines of code
Change-Id: Ic8760d6506cf272d7bd088f7b3b4dcbf288099fc
2015-07-27 08:18:16 +02:00
Stephan Bergmann
760e7c269b
Remove unused XmlSearchExceptions.hxx
...
Change-Id: Iff364452d72c49f6484bed1520b5d2a17c342ddf
2015-07-07 09:18:54 +02:00
Stephan Bergmann
e1b30d6881
-Werror,-Wunused-private-field
...
Change-Id: I80da554ab15450ff6aa13575784ee8f64ca506db
2015-07-07 09:14:33 +02:00
Noel Grandin
fc0079ee90
loplugin:unusedmethods xmlhelp
...
Change-Id: Iaaeb6e6f928c6e40112b6c852a6868e1f4abdc47
Reviewed-on: https://gerrit.libreoffice.org/16793
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-07-07 06:52:29 +00: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
Stephan Bergmann
6390d2c52b
Get rid of comphelper::string::is*Ascii functions
...
Change-Id: I99912112e5b009d7a143f9816d757cdf6ebb1783
2015-06-24 15:27:28 +02:00
Noel Grandin
dcf6abfcdf
cppcheck:unreadVariable
...
Change-Id: I03981ceba67280e8ed98a9add7f24b3bd958d522
2015-06-15 14:06:31 +02:00
Caolán McNamara
cc0e9a37de
cppcheck: variableScope
...
Change-Id: If0c56c89e2722d47a401363f3854331229856490
2015-06-09 10:33:59 +01:00
Caolán McNamara
f8da549db1
Decompressor rubbish in xmlhelp is luckily unused
...
Change-Id: I0d44ef4df250921d24da0d202de96f60c567ded6
2015-06-08 17:52:24 +01:00
Stephan Bergmann
e7b4225fc8
loplugin:cstylecast: deal with remaining pointer casts
...
Change-Id: I4e24ee646763e758a404bf0832e31e5cebc9d71d
2015-06-08 16:29:59 +02:00
Noel Grandin
6ef9f7e202
loplugin:loopvartoosmall
...
Change-Id: Ib4def3435eab4625645c5afe3b151f9f430564ac
2015-06-02 12:09:56 +02:00
Caolán McNamara
8e22cd40ec
cppcheck: noExplicitConstructor
...
Change-Id: I8ae8623252546ca94f65fc04b331dd9cafa4fc92
2015-06-02 08:57:56 +01:00
Noel Grandin
1df4114245
loplugin:loopvartoosmall
...
Change-Id: I809e408c994222cfa95ba8f56e4db7bd96be7080
2015-06-02 09:45:16 +02:00
Caolán McNamara
acad8441cc
cppcheck: noExplicitConstructor
...
Change-Id: I62076450ab77472bfd09b3fb9824f54b6ea1e0f7
2015-05-25 12:32:54 +01:00
Tor Lillqvist
d1ca0f4ed0
Bin some pointless comments and reduce some vertical whitespace
...
Bin pointless '// predeclarations' or '// forward declarations' comments. If
a programmer doesn't know what a forward declaration is, well, why read C++
source code?
Also bin some pointless '// end of namespace foo' comments after namespace
blocks just a handful of lines long, and some superfluous vertical whitespace.
Change-Id: I2a31c5d73d9b4de8825fb8eb9e7559dbd7303ef9
2015-04-30 06:14:12 +03:00
Noel Grandin
0a7b739cc3
loplugin:staticmethods
...
Change-Id: I2ee91d07cf9d46cdc385a4db8473550b05e2f0ad
2015-04-23 13:08:48 +02:00
Noel Grandin
71b809959b
remove unnecessary use of void in function declarations
...
ie.
void f(void);
becomes
void f();
I used the following command to make the changes:
git grep -lP '\(\s*void\s*\)' -- *.cxx \
| xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;'
and ran it for both .cxx and .hxx files.
Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-15 11:47:12 +02:00
Stephan Bergmann
2fc4a8c811
Add support for cppu::UnoType<void>
...
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-04-01 12:48:44 +02:00
Stephan Bergmann
2b1d22e1ff
Replace remaining getCppuType et al with cppu::UnoType
...
Change-Id: I08f4e8270061b90b77a976d4ead7462a02fce845
2015-04-01 08:43:29 +02:00
Stephan Bergmann
7b5924ff98
Reduce to static_cast any reinterpret_cast from void pointers
...
Change-Id: I5c0e0fbb7ebb3bcb85dee363e77f6f7c47e815d8
2015-03-31 13:17:50 +02:00
Stephan Bergmann
1bfdea75d2
Clean up C-style casts from pointers to void
...
Change-Id: Ie42bd7a48391615ea8f48b24d6bfe2bbebb31a0b
2015-03-28 19:09:29 +01:00
Stephan Bergmann
fa683a7020
const_cast: convert some C-style casts and remove some redundant ones
...
Change-Id: I88d1d082cc25a185322435a75c94f4c6b4ad12f8
2015-03-26 15:33:40 +01:00
Stephan Bergmann
61fe89e0b5
loplugin:deletedspecial
...
Change-Id: I035d584af8a802d08dd4e50070b4d290210e20b6
2015-02-07 12:36:05 +01:00
Noel Grandin
f61dbc3029
followup code removal after changing virtual methods to non-virtual
...
This cleanups up indentation and removes dead classes.
This is a followup patch to commit
272b1dd55797aacf511fb4342b0054e3697243f6
"new loplugin: change virtual methods to non-virtual"
Change-Id: I1c2139589cf8cb23bb9808defe22c51039d38de1
2015-01-26 08:42:29 +02:00
Noel Grandin
b44cbb26ef
new loplugin: change virtual methods to non-virtual
...
Where we can prove that the virtual method is never overriden.
In the case of pure-virtual methods, we remove the method entirely.
Sometimes this leads to entire methods and fields being
eliminated.
Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
2015-01-26 08:42:28 +02:00
Stephan Bergmann
473c20d86e
Some more loplugin:cstylecast: xmlhelp
...
Change-Id: I1aa45f669711a90cce52bafd839bd84eb711436a
2015-01-20 11:31:42 +01:00
Noel Grandin
45ec1d9b56
brute-force find-and-remove of unused #define constants.
...
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2015-01-08 10:39:36 +02:00
Caolán McNamara
fd1372ba8b
boost::unordered_map->std::unordered_map
...
you can get debug stl this way
Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2015-01-02 16:14:36 +00:00
Stephan Bergmann
fb4fec646d
xmlhelp: Use appropriate OUString functions on string constants
...
Change-Id: I8642ec147cb0dca32dce7ec7f3efec93bcb99cb4
2014-12-18 14:12:38 +01:00
Stephan Bergmann
180f0791da
comphelper: Use appropriate OUString functions on string constants
...
Change-Id: Id1d5c3cf2f76dbb33606cec1c0f17d4a1f282247
2014-12-18 12:34:40 +01:00
Stephan Bergmann
e09a8259e4
xmlhelp: Use appropriate OUString functions on string constants
...
Change-Id: I28f68ff0c43366b3877244ba272acf967f141e54
2014-12-15 10:22:06 +01:00
Jan Holesovsky
8c2e25b376
images: Tango is the most complete theme.
...
Change-Id: I211d21b09223dfacac18e879993b0f0943b94741
2014-12-04 11:17:26 +01:00
Michael Stahl
15b4ab8d19
cppuhelper: clean up public headers with include-what-you-use
...
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-18 18:51:49 +01:00
Michael Stahl
6a0fe37dec
sal: clean up public headers with include-what-you-use
...
Sadly cannot forward declare "struct {...} TimeValue;".
rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h
was painful enough for now...
Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-17 11:06:53 +01:00
Brij Mohan Lal Srivastava
d32be3ace8
fdo#86023 - O[U]String needs a 'clear' method
...
Added clear() method to OString and OUString class, Updated appropriate call-sites.
Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac
Signed-off-by: Stephan Bergmann <sbergman@redhat.com >
2014-11-14 09:20:38 +01:00
Andrea Gelmini
da40cac540
Fix common typos. No automatic tools. Handmade…
...
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-11-12 11:04:11 +00:00
Noel Grandin
705c48d32e
fdo#38835 strip out OUString globals
...
they are largely unnecessary these days, since our OUString infrastructure
gained optimised handling for static char constants.
Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-11-05 08:44:19 +02:00
Noel Grandin
8c8d6f0849
loplugin: cstylecast
...
Change-Id: Ia3055b00c20a885dfa0584f864f0e91ccad1e9c9
2014-10-20 13:33:11 +02:00
Stephan Bergmann
ad9498f8b8
More -Werror,-Wunused-private-field
...
...detected with a modified trunk Clang with
> Index: lib/Sema/SemaDeclCXX.cpp
> ===================================================================
> --- lib/Sema/SemaDeclCXX.cpp (revision 219190)
> +++ lib/Sema/SemaDeclCXX.cpp (working copy)
> @@ -1917,9 +1917,10 @@
> const Type *T = FD.getType()->getBaseElementTypeUnsafe();
> // FIXME: Destruction of ObjC lifetime types has side-effects.
> if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl())
> - return !RD->isCompleteDefinition() ||
> - !RD->hasTrivialDefaultConstructor() ||
> - !RD->hasTrivialDestructor();
> + return !RD->hasAttr<WarnUnusedAttr>() &&
> + (!RD->isCompleteDefinition() ||
> + !RD->hasTrivialDefaultConstructor() ||
> + !RD->hasTrivialDestructor());
> return false;
> }
>
> @@ -3517,9 +3518,11 @@
> bool addFieldInitializer(CXXCtorInitializer *Init) {
> AllToInit.push_back(Init);
>
> +#if 0
> // Check whether this initializer makes the field "used".
> if (Init->getInit()->HasSideEffects(S.Context))
> S.UnusedPrivateFields.remove(Init->getAnyMember());
> +#endif
>
> return false;
> }
to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about
initializations with side effects (cf.
<http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html >
"-Wunused-private-field distracted by side effects").
Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
2014-10-15 15:58:56 +02:00
Daniel Sikeler
32d6415617
fdo#83512 Make use of OUStringHash and OStringHash
...
Change-Id: I33cafe68c798e3d54943ea1790fa4e73f85e525d
Signed-off-by: Stephan Bergmann <sbergman@redhat.com >
2014-09-18 13:12:48 +02:00
Stephan Bergmann
fcf0158324
(Rudimentary) C++11 support is a hard requirement now
...
Change-Id: I43ed776d52336b822aa6152f0f2a29e39303bb75
2014-09-11 15:50:50 +02:00
Caolán McNamara
ad40561d13
Resolves: fdo#82025 use strlen instead of stored length byte
...
Change-Id: I58cf2391d7bf2480cd12d2b1b4cf73f346f4f95f
2014-08-11 11:28:18 +01:00
Noel Grandin
184a00b962
loplugin: inlinesimplememberfunctions
...
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
Noel Grandin
adc20c3937
compareToAscii -> equalsAscii
...
convert places using compareToAscii that should be using equalsAscii
Change-Id: I97b4da7f6e867c3967b2f65b70d6886f83b4a4e5
2014-06-04 11:52:31 +02:00