Andrea Gelmini
f45ac62a20
Fix typos
...
Change-Id: I89ff6d31662824d83961d6457b82db8d8031168c
Reviewed-on: https://gerrit.libreoffice.org/18977
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de >
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de >
2015-09-30 10:34:17 +00:00
Andrea Gelmini
04724c97b3
Fix typos
...
Change-Id: Ibf70cbce0d280ab4686062a4e110c7c9bb54791c
Reviewed-on: https://gerrit.libreoffice.org/18976
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de >
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de >
2015-09-30 06:23:07 +00:00
Takeshi Abe
cfaebe5de9
shell: tdf#88206 replace cppu::WeakImplHelper* etc.
...
with the variadic variants.
Change-Id: I0eb2efbd123198c7d8a99e9dd7c613f9b2b23c2d
Reviewed-on: https://gerrit.libreoffice.org/18286
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Michael Stahl <mstahl@redhat.com >
2015-09-03 17:55:02 +00:00
Michael Stahl
72699595aa
remove KDE3 support, --enable-kde and --enable-kdeab
...
With the new RHEL6-era baseline TDF can finally ship KDE4 support.
Change-Id: I227278b576a3ed2f2aaa751d41b469ca92dc78b3
Reviewed-on: https://gerrit.libreoffice.org/18267
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2015-09-03 08:18:03 +00:00
Stephan Bergmann
330680784a
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
...
Change-Id: Idc3c74505d84a96bb5cc6713a95ef2fadc267ea8
2015-08-31 14:39:12 +02:00
Stephan Bergmann
c8f6c456bd
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
...
Change-Id: I2e97fa10baa6a9bd290fabe250cf73d5f73e4537
2015-08-31 08:01:51 +02:00
Michael Weghorn
b712b1f634
tdf#39440 cppcheck: redundantAssignment
...
This addresses some of cppcheck's "redundantAssignment" warnings
("Variable '<varName>' is reassigned a value before the old one
has been used").
Change-Id: I8fd2950d5aa1a3f4bd9e1c4c336abe465d1f657e
Reviewed-on: https://gerrit.libreoffice.org/17926
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-08-23 06:02:42 +00:00
Noel Grandin
46791546a8
cppcheck:noExplicitConstructor
...
Change-Id: I940714e303b905b756ba077eeda6c41746bd421f
2015-08-07 08:14:34 +02:00
Noel Grandin
0fd9b79687
shell,sfx2,sd: inline some use-once typedefs
...
Change-Id: Ifde52b0d92163f99d399b4a9544a196defad1ba4
2015-08-04 08:55:56 +02:00
Noel Grandin
f5deb46349
remove some unused typedefs
...
Change-Id: I98c1e7eaa66b7afb05255a017a3de54714637501
Reviewed-on: https://gerrit.libreoffice.org/17491
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-08-03 08:53:21 +00:00
Noel Grandin
e963a88912
formatting of public/private/protected section qualifiers
...
make it consistent across the codebase, no space between keyword
and the colon
Change-Id: Idca61ddfc74ad2460fb05fe417499324b05e5de5
Reviewed-on: https://gerrit.libreoffice.org/17148
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-07-17 09:49:35 +00:00
Stephan Bergmann
4bf8384d97
loplugin:simplifybool
...
Change-Id: I822967265cbe9f58641e2d9bd1260fd724df8ad1
2015-07-16 14:00:20 +02:00
Stephan Bergmann
18f3cefd50
warning C4101: unreferenced local variable
...
Change-Id: I3d2d46c7b722557f3dbfd95eb2b8649f8078d4df
2015-07-13 18:57:35 +02:00
Stephan Bergmann
67badfc9da
Code deliberately not linking against sal just can't use OSL_ENSURE
...
Change-Id: I20820ea382ac9933bf2c6118d466625120b49d67
2015-07-13 18:39:42 +02: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
e544f449ed
Fix typos
...
Change-Id: I020c7ce4d9aa93cb0292378a410cdb9f7788e920
Signed-off-by: Michael Stahl <mstahl@redhat.com >
2015-07-08 12:21:19 +02:00
Noel Grandin
04c0b70c9b
loplugin:unusedmethods sax,shell,stoc,basegfx
...
Change-Id: I8f3871fd4e82b6850718b6f2a8757f3043d00017
2015-07-06 10:10:02 +03:00
Michael Stahl
a6f5770b4a
Revert "loplugin:unusedmethods sax,shell,stoc,basegfx"
...
The basegfx changes appear to break Windows builds.
This reverts commit 3b32c5898f
.
2015-07-03 16:53:45 +02:00
Noel Grandin
3b32c5898f
loplugin:unusedmethods sax,shell,stoc,basegfx
...
Change-Id: Ia5d63f7153e4b02acc5e206739316264d6d1184e
2015-07-03 14:16:32 +02:00
Christian Lohmaier
2279f1f022
tdf#92269 fix Windows Explorer crash caused by shellextension
...
wcscpy_s is buffer size, not string length, so size must also account
for a terminating NULL
Change-Id: Ie69692e47c142f3b733b093d0b87fa4bb03db7b4
2015-07-01 12:34:46 +02:00
Stephan Bergmann
a023842a74
loplugin:stringconstant: handle OUString+=OUString(literal)
...
Change-Id: I4ba0f758304977825d44dd1e3c8f348a94546a38
2015-06-26 13:55:34 +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
4729774b24
remove unnecessary check for null when calling delete
...
Idea originally from caolan.
Found using the following command:
find . -name *.cxx | xargs /opt/local/bin/grep -zlP '(?m)if\s*\(\s*\w+\s*\)\s*delete\s+\w+\;'
Change-Id: I3338f4e22193a6dfd6219c8c75835224a3392763
2015-06-15 14:46:41 +02:00
Noel Grandin
dcf6abfcdf
cppcheck:unreadVariable
...
Change-Id: I03981ceba67280e8ed98a9add7f24b3bd958d522
2015-06-15 14:06:31 +02:00
Noel Grandin
1afb790a11
inline COMPHELPER_SERVICEDECL_ macro
...
it was not adding any value
Change-Id: I6a911aac81e883f9155ed0cf24bfb7904efb3f92
2015-06-15 09:46:14 +02:00
Stephan Bergmann
d8ba942b99
loplugin:cstylecast: deal with those that are (technically) const_cast
...
Change-Id: Id45e303225602e401a5c3b640185bf476c94a0bb
2015-06-02 11:28:05 +02:00
Noel Grandin
d5129a9dd6
new clang plugin: loopvartoosmall
...
Idea from bubli - look for loops where the index variable is of such
size that it cannot cover the range revealed by examining the length
part of the condition.
So far, I have only run the plugin up till the VCL module.
Also the plugin deliberately excludes anything more complicated than a
straightforward incrementing for loop.
Change-Id: Ifced18b01c03ea537c64168465ce0b8287a42015
2015-05-28 12:49:54 +02:00
Stephan Bergmann
2633a2a34e
boost::shared_ptr -> std::shared_ptr
...
Change-Id: Iff798bd2ae4fec97f0f1647ea33f6f6ff1f3b208
2015-05-18 12:16:32 +02:00
Stephan Bergmann
2527a4d5a7
Implement some more XModify methods
...
Change-Id: I1345d6a3d62f1e5c3353c5412024f6b47f824f7a
2015-05-13 16:45:09 +02:00
Stephan Bergmann
0bfc98e63b
loplugin:redundantcast: reinterpret_cast to void*
...
Change-Id: I947b49cfb15f0e7d6ddfaae386656c70e4bd48ba
2015-05-12 18:27:54 +02: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
Stephan Bergmann
5eff55bfa8
Don't throw UnknownPropertyException for givenname/sn from KDE backends
...
Open TODO to actually obtain values for them, instead of returning an empty
css:🫘 :Optional representing "no value available."
Change-Id: Iceb286e9873216f7bc36bd88b09ac03bd3a2c895
2015-04-17 17:08:07 +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
David Tardon
8840fd3226
tdf#82695 allow to build with system collada2gltf
...
Change-Id: I1179e20fd5fbdecd198633d5440621ed08a0465b
2015-04-13 16:43:35 +02:00
Noel Grandin
ee094bd46f
loplugin:staticmethods
...
Change-Id: If97f01a05294fa7efd59a8934c7b6f65cda5084a
2015-04-13 09:37:12 +02:00
Julien Nabet
65c3f29a96
Typo: wheter->whether
...
Change-Id: Iab5e7de499452924b4ac0d34cc604ee38395c813
2015-04-01 21:14:43 +02:00
Stephan Bergmann
1140d4c950
Reduce to static_cast any reinterpret_cast from void pointers
...
Change-Id: I443d86e9805dd994006d8bde6dabd72e14a2cff5
2015-03-31 13:16:31 +02:00
Stephan Bergmann
9e53fbd9a6
loplugin:cstylecast
...
Change-Id: I8bb20f4ce9c8cca3b70057cd8c4fb23819fa3b23
2015-03-29 22:26:59 +02:00
Stephan Bergmann
84676d50ca
Clean up C-style casts from pointers to void
...
Change-Id: Iaae87d77ea48207c3277e7107b339296f6a99772
2015-03-28 19:09:25 +01:00
Pedro Giffuni
09f83e1f40
Small fix for BSD.
...
Part of Code Review:
https://reviews.freebsd.org/D2055
Author: Don Lewis (truckman at FreeBSD)
(cherry picked from commit ecebe457c968bfd30a99a435210b0bdbb117faef)
2015-03-27 15:42:01 +00:00
Stephan Bergmann
b549220522
const_cast: convert some C-style casts and remove some redundant ones
...
Change-Id: I84b3843b32bbec6dfe5a9c627927b04122d50abd
2015-03-26 15:33:36 +01:00
Julien Nabet
25d3c618d8
Typo: formated->formatted
...
Change-Id: Iefd4d375a0dfb36732233852f906c6b85dccc2a5
2015-03-25 21:12:16 +01:00
Phillip Sz
3f6bfb4c0d
remove exit 0 at the end of a shell script
...
Change-Id: I6f9b6aa7abba6eadf4db93506bdd9a822afdf2fb
Reviewed-on: https://gerrit.libreoffice.org/14884
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-03-25 06:50:53 +00:00
Stephan Bergmann
c6dcd7b7f3
Fix various Windows-only XServiceInfo implementations
...
...to match what is recorded in the .component files
Change-Id: Ibc5bb0575f3869317e4d14614cf1dad0af728ddc
2015-03-24 18:08:39 +01:00
Stephan Bergmann
3099c70b11
Fix various XServiceInfo implementations
...
...to match what is recorded in the .component files
Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
2015-03-17 12:25:11 +01:00
Caolán McNamara
6617505ee1
V512: we want the number of wide-chars here, not the number of bytes
...
Change-Id: I121cdfd586562b9ce298448f51d0b2e3b2a52c39
2015-03-11 17:14:13 +00:00
Caolán McNamara
3aebfbc299
leak on short read
...
Change-Id: I5da7ec2992f9f0b20aa075ee33d0b882cdf91901
2015-03-11 14:08:36 +00:00
Caolán McNamara
556373c41f
V668 no sense in testing the result of new against null
...
Change-Id: I4a33bd92fc8448638a4bfe1eab7e5041a4c5cc39
2015-03-11 09:58:36 +00:00
Caolán McNamara
d22519f62b
V801: Decreased performance
...
Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
2015-03-09 22:04:31 +00:00
Michael Stahl
19bfe765a5
shell: warning C4996 function call with parameters that may be unsafe
...
Change-Id: Id70289b0c88dd203cac6301303fe7452088f60f9
2015-03-05 15:36:48 +01:00