70b09d9322
cppcheck: noExplicitConstructor
...
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
2015-11-24 10:35:44 +00:00
8f7e5633b1
Don't assume sal_Unicode is unsigned short
...
Change-Id: Ia93c541ea21be89578789d58f642109184a18685
2015-11-17 10:39:42 +01:00
21a9bc8716
no need to take a mutex when only dealing with stack-local data
...
Change-Id: Ie45e626aad55a8174a53b769a98601bf54dedf65
Reviewed-on: https://gerrit.libreoffice.org/19979
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-16 11:37:11 +00:00
8569c6d0ad
use initialiser list for Sequence<OUString>
...
Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02
Reviewed-on: https://gerrit.libreoffice.org/19978
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-16 08:35:42 +00:00
54d22957bc
use initialiser for Sequence<OUString>
...
performed using:
git grep -lP 'Sequence.*OUString.*\(1\)'
| xargs perl -0777 -pi -e
"s/Sequence<OUString> (\w+)\(1\);
.*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g"
Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f
Reviewed-on: https://gerrit.libreoffice.org/19968
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-15 11:31:23 +00:00
2e8f27167d
loplugin:nullptr (automatic rewrite; Mac-specific code)
...
Change-Id: I48e80668c76b7fb94dfa2876ae8ca5e895cea3be
2015-11-10 16:20:36 +01:00
64d1b574ad
loplugin:nullptr (automatic rewrite)
...
Change-Id: I1aa63ce279fe3914e0f5153b7d8559880a3fccc3
2015-11-10 10:31:31 +01:00
fcb8df3bcf
use uno::Reference::set method instead of assignment
...
Change-Id: I11822c50fa66d038a3d6f38054ab35c2e613f077
2015-11-04 14:20:51 +02:00
728f983031
com::sun::star->css in lingucomponent
...
Change-Id: Iceef10c51db88b3e85f118a366de45f0f70bbf21
2015-10-23 13:19:10 +02:00
b36963c0a6
Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
...
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12 17:52:29 +02:00
bff4c13475
Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY code
...
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-12 17:52:26 +02:00
236714e86c
Clean up remaining utl::LocalFileHelper::Convert...
...
together with 58d68a1bc9146334376206ae7ba8b1a6594a1040
"ConvertURLToSystemPath->getSystemPathFromFileURL" and
28f3464a571a23a2c16bd0980e9021b95d011511
"ConvertSystemPathToURL->getFileURLFromSystemPath," this replaces all those
Convert... functionality with direct calls to the corresponding osl::FileBase
functions.
Change-Id: I2876171cd337a5eb939d25d8cf1e0c1253ff73a7
2015-08-19 10:48:42 +02:00
e87c08babe
lingucomponent: tdf#88206 replace cppu::WeakImplHelper*
...
with the variadic variants.
Change-Id: Ibe00b26512a4895a603a084f4e816c74b99894df
Reviewed-on: https://gerrit.libreoffice.org/17850
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-08-19 07:49:16 +00:00
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
9f27e5b0e0
Fix typos
...
Change-Id: I52cbaad71560d73f5e24f3de3cd62b00d678dd6c
Reviewed-on: https://gerrit.libreoffice.org/17187
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com >
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com >
2015-07-19 19:45:07 +00:00
0980095619
Replace boost::scoped_array<T> with std::unique_ptr<T[]>
...
This may reduce some degree of dependency on boost.
Done by running a script like:
git grep -l '#include *.boost/scoped_array.hpp.' \
| xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@'
git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \
| xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/'
... and then killing duplicate or unnecessary includes,
while changing manually
m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx,
extensions/source/ole/unoconversionutilities.hxx, and
extensions/source/ole/oleobjw.cxx.
Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd
Reviewed-on: https://gerrit.libreoffice.org/16289
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2015-06-17 15:50:45 +00:00
cc96b2738b
I guess we can revert this "temporary check" now
...
On the other side, it has been in the code for only 2 years, so who
knows .-)
Revert "libexttextcat: fix the --with-system case too..."
This reverts commit a81f44c707c4df56e7b999fa3b656d7fa4543d1b.
Change-Id: I4e02ebe971f8a838bf2a1630ed38d4408245bf37
2015-06-15 21:16:26 +02:00
e12fa69f6e
loplugin:cstylecast: deal with remaining pointer casts
...
Change-Id: I617d55415aee923d0734f3f3b74948b26132611b
2015-06-08 16:26:18 +02:00
c984b76efc
loplugin:loopvartoosmall
...
Change-Id: I33f4e74f97ba52b9240e6304d53eb256bd822060
2015-06-02 22:57:44 +02:00
1fb55375be
loplugin:cstylecast: deal with those that are (technically) const_cast
...
Change-Id: I0730744b8424bc6dea5e8016199088f86e9570f5
2015-06-02 11:27:16 +02:00
cde4d4a208
loplugin:cstylecast: nop between pointer types of exactly same spelling
...
Change-Id: Ic494c8e3b072adceca984a3ceec02088ac08e880
2015-05-11 12:50:06 +02:00
a880ec8131
loplugin:staticmethods
...
Change-Id: Id7fc12bc61c6e803f45cc60556d9cf54ac2e529f
2015-04-23 13:08:48 +02:00
79b2059fa8
convert CapType to scoped enum
...
Change-Id: I88fa3672a1f933ae818368c9bc400c6a845babb6
2015-04-08 11:40:15 +02:00
4d2923e187
loplugin:redundantcast
...
Change-Id: I3ef78881cfed8b66f067e9164efcccf425fb549c
2015-04-02 21:02:04 +02:00
bd482df17c
Reduce to static_cast any reinterpret_cast from void pointers
...
Change-Id: I34dc9028a273b6a22395fe662dd071505989dc5c
2015-03-31 13:14:47 +02:00
9afd58e71a
Clean up C-style casts from pointers to void
...
Change-Id: I76204cd86daa7b95f9c70276459d7dd112198135
2015-03-28 19:09:22 +01:00
3205a2ebb6
const_cast: convert some C-style casts and remove some redundant ones
...
Change-Id: Id916058c4a1483a7a050d93cce45926fbd0df9ed
2015-03-26 15:33:32 +01:00
32f95a3551
V813: Decreased performance
...
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-03-04 13:07:40 +00:00
7914380242
use initializer list here too
...
Change-Id: I30e4374dc44a58cb1b7315e3d7bfbed99c77030a
2015-03-01 17:33:59 +01:00
c6ad44c180
initialize members
...
Change-Id: I907fdbb4ca12a25fbfa99c6fa345c3c07aea0833
2015-03-01 17:33:59 +01:00
a6f8766d35
loplugin:deletedspecial (Mac OS X)
...
Change-Id: Ia09e2e7b3e40bd04da64b52fe29258017b90b156
2015-02-07 17:24:43 +01:00
a5bf14ee46
loplugin:deletedspecial
...
Change-Id: I65d025fc465b9b1d11c43e01e2ff6796b72d6333
2015-02-07 12:35:59 +01:00
ee5443b8da
loplugin:cstylecast (MACOSX)
...
Change-Id: I1dac5542d711133f30fb4e61590a19bd2beccf53
2015-01-22 19:36:51 +01:00
a23f6eb3ae
fdo#39440 reduce scope of local variables
...
This addresses some cppcheck warnings.
Change-Id: Ib16e4ecc0e0c43b2c1fb527eb0668a960ae9756e
Reviewed-on: https://gerrit.libreoffice.org/13513
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-12-18 06:39:15 +00:00
0f5e917024
Introduce rtl::OUStringLiteral1
...
...to use single ASCII character literals "more directly" in the OUString API
(instead of having to go via an intermediary OUString ctor call). Especially
useful for character literals that are defined as const variables or via macros
("direct" uses of character literals in the OUString API can often simply be
replaced with single-character string literals, for improved readability).
(The functions overloaded for OUStringLiteral1 are those that are actually used
by the existing LO code; more could potentially be added. The asymmetry in the
operator ==/!= parameter types is by design, though---writing code like
'x' == s
is an abomination that shall not be abetted.)
Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
2014-12-17 16:39:33 +01:00
0371a63365
remove unnecessary 'using namespace rtl' declarations
...
It turns out that almost none of them were necessary.
Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83
Reviewed-on: https://gerrit.libreoffice.org/12133
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-10-29 11:28:54 +00:00
b02e958fa0
MAC_OS_X_VERSION_MAX_ALLOWED is always >= 1080 now
...
Change-Id: Ieae67cbf917cdf4bca2b0d6c1697eddc6137dbe2
2014-10-16 11:22:12 +03:00
3fe75ff0b3
sal_Bool -> bool
...
Change-Id: Id93c6c3cd5d9d4821a59b9f6a5d0b534939dfa39
2014-09-15 22:52:28 +02:00
f31424e650
Fix *_component_getFactory function type
...
Change-Id: Ib86d37e1570c9a64ef83beaf11bf0ec4676533eb
2014-08-07 13:44:03 +02:00
9bac4d413e
typo: more then -> more than
...
Change-Id: I2e477d66f25bde7256938ccb1f95ab26add24922
2014-08-01 23:40:12 +09:00
ea9331fd49
fdo#80363 always use WIN32 long path prefix with Hunspell, MyThes, Hyphen
...
Change-Id: I738401babffd38c241ef16e23d1b246444fd8d55
2014-07-15 14:25:58 +02:00
5b2df0c09c
conditionally revert 96840ff0ce697c5c05b59d53409b3cf27ac35e5f
...
Change-Id: If5e53ca72fc3b90435d95b50c5c796ec0ff04869
Reviewed-on: https://gerrit.libreoffice.org/9790
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-06-17 20:18:35 +00:00
3e82897353
improve the inlinesimplememberfunctions clang plugin
...
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
0e507ae031
various: remove SAL_THROW macro
...
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-05 08:17:52 +02:00
adc20c3937
compareToAscii -> equalsAscii
...
convert places using compareToAscii that should be using equalsAscii
Change-Id: I97b4da7f6e867c3967b2f65b70d6886f83b4a4e5
2014-06-04 11:52:31 +02:00
96840ff0ce
WaE: 'guessesForWord:' is deprecated: first deprecated in OS X 10.6
...
Change-Id: I861d4012c12096958c73c7008b0a9dfa6934fda2
2014-06-03 21:29:09 +03:00
8928a4f6dc
Try to fix Windows build
...
Change-Id: Ib73cc86f9f14397b296324e14562278b5f8a2144
2014-05-23 14:29:59 +03:00
7933b269ba
Reintroduce Win_GetShortPathName()
...
Change-Id: Id15d1d4d9b7fb9bb2a0a5f52b5ec1928c38bd27b
2014-05-23 13:12:22 +03:00
f98eab9fa1
Fix typo
...
Change-Id: I7ee0eecc36659ac8ee9a62698923a90e96b7f302
2014-05-23 12:31:28 +03:00
6d06aa8ba8
fdo#48017 WIN32 long path support in Hyphen and MyThes
...
Change-Id: Ifb068efb553ed24a7caf65dbab28726bdeced0e6
2014-05-23 01:06:50 +02:00