Stephan Bergmann
bf3f840302
loplugin:nullptr (automatic rewrite)
...
Change-Id: I62a63915dfc0bced2cd8ffe3999cbde5c4d97b0b
2015-11-10 10:31:21 +01:00
Noel Grandin
59b072e22b
yyyyy
...
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-04 14:10:44 +02:00
Benjamin Ni
be729e7721
tdf#94269: Replace "n" prefix for bool variables with "b"
...
Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797
Signed-off-by: Michael Stahl <mstahl@redhat.com >
2015-11-02 23:40:57 +01:00
Noel Grandin
cb4fa1d1e2
use uno::Reference::set method instead of assignment
...
Change-Id: I080668f86f0ab8b3bba857ee21411f907ae285c4
2015-10-30 11:08:36 +02:00
Noel Grandin
1716b3a338
remove some useless comments
...
found with git grep '// /'
Change-Id: I948cf9ae61bbbf2ec706ca5b0572c4f27c58c745
2015-10-13 10:07:49 +02: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
e676f98f34
clang-analyzer-deadcode.DeadStores
...
Change-Id: Ib1163c1717e61d730b22c3d6d0a0a7cc171bba4e
2015-10-05 09:51:38 +02:00
Andrea Gelmini
3f6da86e9f
Fix typos
...
Change-Id: I13c3dc33722f139582f27412d5d336264d3d15a3
Reviewed-on: https://gerrit.libreoffice.org/18942
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de >
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de >
2015-09-30 13:05:20 +00:00
Caolán McNamara
22b80ac8e2
boost->std
...
Change-Id: I3fd9e1599c5ad812879a58cf1dabbcd393105e1c
Reviewed-on: https://gerrit.libreoffice.org/18564
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2015-09-14 12:54:25 +00:00
Stephan Bergmann
b190574b6a
tdf#84323: Make osl::Thread::wait more readable
...
Change-Id: I33eb6970050a103404344c7f16dd33349c154347
Reviewed-on: https://gerrit.libreoffice.org/15018
Reviewed-by: Stephan Bergmann <sbergman@redhat.com >
Tested-by: Stephan Bergmann <sbergman@redhat.com >
2015-08-17 15:37:22 +00:00
Noel Grandin
171990764e
com::sun::star-css in cppu,cppuhelper
...
Change-Id: I84a412f587fd66f6c0610f083e61cf0fa079d4d9
Reviewed-on: https://gerrit.libreoffice.org/17384
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-07-29 06:44:57 +00:00
Andrea Gelmini
799cc41b53
Fix typos
...
Change-Id: I70b03c152f63e48341dc5629a99b0eeab7b497c0
Reviewed-on: https://gerrit.libreoffice.org/16834
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Julien Nabet <serval2412@yahoo.fr >
2015-07-08 05:48:18 +00:00
Andrea Gelmini
87dc6c82d5
Fix typos
...
Change-Id: Ideb5688a8c9e7cf10038f2e9d00991e8653b1875
Reviewed-on: https://gerrit.libreoffice.org/16706
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
2015-07-03 09:02:48 +00:00
Noel Grandin
b55166d266
Revert "return and use std::vector from OInterfaceContainerHelper"
...
This reverts commit e57314f61f
.
2015-06-29 10:11:53 +02:00
Noel Grandin
e57314f61f
return and use std::vector from OInterfaceContainerHelper
...
since most of the time we don’t need a heavyweight uno::Sequence.
Adds a new method getElementsAsVector().
Change-Id: I9e72bef0c0c723ffd0dd7d4152db5baec6784a7a
Reviewed-on: https://gerrit.libreoffice.org/15747
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-06-29 07:25:22 +00:00
Stephan Bergmann
6ce8ae5f0c
loplugin:stringconstant: Flag more inefficiencies
...
Change-Id: I5fe4002c3c0065dfe93be0d8f47df90d57af898b
2015-06-25 12:38:34 +02:00
Takeshi Abe
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
Caolán McNamara
ad62165065
cppcheck: noExplicitConstructor
...
Change-Id: Ic33ee6936f40bec4f3a82aea39a180ae6e9a0928
2015-06-09 10:34:00 +01:00
Stephan Bergmann
85a2ec80c6
loplugin:cstylecast: deal with remaining pointer casts
...
Change-Id: I4eea017d429945cdd8636c0f06cb18f5887a0d78
2015-06-08 16:24:22 +02:00
Andrea Gelmini
5b1337f7b2
tdf#62475: partial handmade fixes
...
Change-Id: Ib9af202c43b916b9af4b4e18db35d470a8692fe4
Reviewed-on: https://gerrit.libreoffice.org/15712
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com >
2015-05-15 17:55:15 +00:00
Jan Holesovsky
78f3ae6554
cppuhelper: Allow logging the used services / constructors.
...
Change-Id: I9090561032e2f6e97eb74b8f1e8cd1698171e6ea
2015-05-02 12:29:09 +02:00
Stephan Bergmann
6ff2d84ade
Various #include <sal/log.hxx> fixups
...
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx>
(and don't make use of it themselves), but many other files happen to depend on
it. Cleaned up some, but something like
grep -FwL sal/log.hxx $(git grep -Elw \
'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx)
shows lots more files that potentially need fixing before the include can be
removed from rtl/string.hxx and rtl/ustring.hxx.
Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-22 09:57:47 +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
Noel Grandin
7b4ca582fc
convert RegError to scoped enum
...
Change-Id: I55977c38578cb59deb195d91f8948da2e0905b6a
2015-04-09 08:41:11 +02:00
Noel Grandin
95600edeaf
convert RegValueType to scoped enum
...
Change-Id: Ic672e75db4d7323760577b19490ffa28d38965b6
2015-04-09 08:41:11 +02:00
Noel Grandin
1bdbe0b475
convert REG_ constants to scoped enum
...
Change-Id: I11d92218c5e0678d497f8964723033e2bd8b3300
2015-04-09 08:41:11 +02:00
Stephan Bergmann
2fc4a8c811
Add support for cppu::UnoType<void>
...
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-04-01 12:48:44 +02:00
Stephan Bergmann
ead3062336
Replace remaining getCppuType et al with cppu::UnoType
...
Change-Id: I620bf5d46c19f0182e822265eadf8eb11001855e
2015-04-01 08:38:16 +02:00
Stephan Bergmann
caaf1436d7
Reduce to static_cast any reinterpret_cast from void pointers
...
Change-Id: I0392b2fc9e48aab4a20849d8203cae96b1ef2d2c
2015-03-31 13:13:09 +02:00
Stephan Bergmann
e97b327266
Clean up C-style casts from pointers to void
...
Change-Id: I92c0a6c602e473b796df43b88c98b823de8d9399
2015-03-28 19:09:19 +01:00
Noel Grandin
aa7a829e7d
loplugin:staticfunction
...
Change-Id: Id796b799f8e2fcc3eae98d43800c5e31fec27fef
2015-03-27 10:51:08 +02:00
Julien Nabet
b33788cb6b
Typos
...
Change-Id: I665a56fcad10e136e949a10497f6ab8813af9968
2015-03-25 21:19:59 +01:00
Julien Nabet
6baf24c4d2
Typo: constarined->constrained
...
Change-Id: I3326843195e6a3b030409ac3b20bbea55e739366
2015-03-15 15:28:37 +01:00
Michaël Lefèvre
c3cd100556
CppCheck cleanlyness : reduce variable's scope
...
Change-Id: I5bd18b1a93f7197121eb42f6b82d2d8d87e7671f
Reviewed-on: https://gerrit.libreoffice.org/14843
Tested-by: Michael Stahl <mstahl@redhat.com >
Reviewed-by: Michael Stahl <mstahl@redhat.com >
2015-03-12 22:28:38 +00:00
Julien Nabet
48f0a5ed35
Typos
...
Change-Id: I845a85e1aad4a0708f2b43f7d94606b4b5513ee4
2015-02-18 21:59:02 +01:00
Ashod Nakashian
de68bb8514
Updated all precompiled headers.
...
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157
Reviewed-on: https://gerrit.libreoffice.org/14292
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2015-02-05 10:46:33 +00:00
Stephan Bergmann
cead54b6e5
Use vector::data
...
...in some places where it is obvious that it does not hurt that for an empty
vector the obtained pointer is not necessarily a nullptr.
Change-Id: Id5d66b1559ca8b8955d379bcdbfae6986ef46a51
2015-01-28 17:56:18 +01:00
Stephan Bergmann
0866023faf
Get rid of std::auto_ptr in stable URE interface
...
...the deprecation-warning noise is getting ever louder, and eventually auto_ptr
will just disappear. Just surrender and use good-old plain pointer and deletion
in dtor---it's probably the best to do in this stable interface.
The change is backwards compatible. For one, in all relevant standard libraries
(libstdc++, even in debug mode; libc++; msvcrt) sizeof(auto_ptr<T>) equals
sizeof(T*). And for another, the removed UnoUrlDescriptor ctor was only called
from within cppuhelper and had deliberately been left out of
cppuhelper/source/gcc3.map (so isn't exported at least on Linux)---marking it
SAL_DLLPRIVATE had probably just been forgotten when retrofitting cppuhelper
with CPPUHELPER_DLLPUBLIC annotations.
Change-Id: Ic8bce29d93938f2b2e0a264baee85132668e1294
2015-01-27 10:03:01 +01:00
Caolán McNamara
ede590128f
coverity#1266445 Explicit null dereferenced
...
Change-Id: I2d62d6972d085fe818ec6767a0660afb010bece8
2015-01-25 20:49:55 +00:00
Stephan Bergmann
dbdb819501
Some more loplugin:cstylecast: cppuhelper
...
Change-Id: Ifc11a0ea20a4eec40544cd931d0f94e0db3e3288
2015-01-20 09:06:46 +01:00
Stephan Bergmann
619b13f054
Variadic cppu::WeakComponentImplHelper
...
Change-Id: I79371b4ad9d29a5ab8fd01244c3f80db92b07f97
2015-01-16 15:17:05 +01:00
Stephan Bergmann
d3ce5b298e
Fix getTypes() of OPropertySetHelper and derived
...
...broken with 60d60caf99
"Renamed XPropertySet2
to XPropertySetOption" et al
Change-Id: I684736ffafc4642548b7c24171cc52c1acb32252
2015-01-16 10:19:36 +01:00
Stephan Bergmann
d4019c97c5
-Werror=array-bounds
...
Change-Id: I6766ccc5e760b34a4e276c1322745533a00131fa
2015-01-07 15:20:52 +01:00
Caolán McNamara
8ab4d2f29f
drop crashrep unused since start of LibreOffice
...
Change-Id: I3df1216054c133314b2317849744a0a37e9fbc8f
Reviewed-on: https://gerrit.libreoffice.org/13733
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2015-01-07 11:41:32 +00:00
Stephan Bergmann
0d44e98d6a
Variadic cppu::WeakImplHelper
...
Change-Id: Ia02a7c94ca282f28fa3c191dd65a71b6bf031792
2015-01-07 12:20:54 +01:00
Caolán McNamara
7f476fea47
boost::unordered_map -> c++11 std::unordered_map
...
Change-Id: I28438000c2b0a8e6ce4f5640f861f572c0cb83c8
2014-12-27 23:00:45 +00:00
Stephan Bergmann
9598e9061f
-Werror,-Winfinite-recursion
...
Change-Id: I483cd3f3a3ba87c416985fd86b9d5b711a2a18fb
2014-12-22 11:09:57 +01:00
Stephan Bergmann
d269b9ab6a
Remove unused */qa/checkapi/
...
...superseded by CppunitTest_odk_checkapi
Change-Id: I5df89a1a12f496984deab153f0ba2734323c1293
2014-12-19 10:06:45 +01:00
Stephan Bergmann
f137353904
cppuhelper: Use appropriate OUString functions on string constants
...
Change-Id: I52a38a07982801087903817ec5b65e992a1d58d1
2014-12-16 17:27:57 +01:00
Stephan Bergmann
1be14f1a00
cppuhelper: Use appropriate OUString functions on string constants
...
Change-Id: I7957898ed3172e79888bdb793e304359b10d75d7
2014-12-12 10:22:33 +01:00