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
1f34524746
remove reg keytype constants and related code
...
since we no longer support the RG_LINKTYPE stuff
Change-Id: If388ecfa0c475471b99b26155ad554ec702ca734
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
Julien Nabet
f25cae2e18
Typo: creat->create
...
Change-Id: I5e57e6d506504933096f4c8e371b0ddc93c04cbd
2015-04-04 23:08:44 +02:00
Noel Grandin
1a18cafecb
loplugin:staticmethods
...
Change-Id: I3ae555fd9f0dc3c11ea301ee1cb2c799fbec820d
2015-04-02 09:38:29 +02:00
Stephan Bergmann
2fc4a8c811
Add support for cppu::UnoType<void>
...
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-04-01 12:48:44 +02:00
Stephan Bergmann
e1f3391a74
Replace remaining getCppuType et al with cppu::UnoType
...
Change-Id: I14b923990a012e8e85ca9170cdffd6b8e3626d89
2015-04-01 08:41:10 +02:00
Stephan Bergmann
96f5b780f0
Use OUString::unacquired
...
found with
git grep -E '\* *\<reinterpret_cast\>[^>]+\<OUString\>'
Change-Id: I9306d4ad8e3b1664f54cb7df86f2d79bfd3c6cb9
2015-03-31 17:45:27 +02:00
Stephan Bergmann
b3105952fb
Reduce to static_cast any reinterpret_cast from void pointers
...
Change-Id: Ib3610f9d244b15f8f752c0f781600f5c7e7a944f
2015-03-31 13:16:43 +02:00
Stephan Bergmann
0bd502af47
Clean up remaining C-style casts among void pointers
...
Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f
2015-03-29 09:17:47 +02:00
Stephan Bergmann
116b969fc9
Clean up C-style casts from pointers to void
...
Change-Id: I2ac79c757d9116d35436ae1adc0e11e7040e725d
2015-03-28 19:09:26 +01:00
Stephan Bergmann
23ab1493b6
const_cast: convert some C-style casts and remove some redundant ones
...
Change-Id: Ifbe12a569a964203b07b47da5207ab0ffe00d4aa
2015-03-26 15:33:37 +01:00
Michael Stahl
d19249c66d
stoc: must check *both* bDisposed and bInDispose
...
Implementation::inspect() was crashing with a null reflection_ in
CppunitTest_libreofficekit_tiledrendering because another thread
was disposing it.
Actually, why are there 2 bools for this and not one enum with 3 values?
Change-Id: Icd27145d3203e1f48a9841ee6251a50cb73f7988
2015-03-14 00:41:29 +01:00
Stephan Bergmann
e37388c7de
Remove unused debug code
...
Change-Id: I40d7e0670539a86f01a539cf8acb10fa7bd27079
2015-03-13 10:53:28 +01:00
Jan Holesovsky
e1879e6a37
stocservices.component: The rest of the services + cleanup.
...
Change-Id: I5156318afde0f56cf3eb8d1c74c6db8d5e378600
2015-02-20 10:19:10 +01:00
Ursache Vladimir
17984250e9
stocservices.component partly refactored to use the "constructor" feature.
...
Change-Id: I4c1c5e62de608738a91be4a234d9c160a18cbf8f
2015-02-20 10:19:10 +01:00
Julien Nabet
48f0a5ed35
Typos
...
Change-Id: I845a85e1aad4a0708f2b43f7d94606b4b5513ee4
2015-02-18 21:59:02 +01:00
Caolán McNamara
52b25c1adf
we shouldn't need a static ref in these createOneInstance factory helpers
...
at least not to ensure that they are singletons anyway
Change-Id: I08176afa67ac5f8e4f479b70ca5d71c52d0bb9af
2015-02-16 22:59:53 +00:00
Stephan Bergmann
2b731ea60b
loplugin:deletedspecial
...
Change-Id: I8ec246416736bc0316c222d1b9435bd2747597b8
2015-02-07 12:36:02 +01:00
Caolán McNamara
4d6a509efe
convert all remaining BOOST_STATIC_ASSERT to static_assert
...
and we can include a few less headers
Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
2015-02-05 22:21:49 +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
4e3da621fe
Some more loplugin:cstylecast clean-up
...
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
2015-01-28 13:50:37 +01:00
Stephan Bergmann
c2c134cda1
Some more loplugin:cstylecast: stoc
...
Change-Id: I3d820a1df3750d20e704a163f45c16ea29a1b4bd
2015-01-20 09:06:51 +01:00
Michael Weghorn
d5f48d742a
fdo#39440 reduce scope of local variables
...
This addresses some cppcheck warnings.
Change-Id: I46b9293eed0cba2ebca119cc1fb0a6334ea66308
Reviewed-on: https://gerrit.libreoffice.org/13844
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-01-12 06:45:19 +00:00
Stephan Bergmann
27a166bcb8
Just use WeakImplHelper1 instead of ImplHelper1
...
Change-Id: Iadc5960ef22289c044a0c85accaefb4f60b6097f
2015-01-07 16:35:21 +01:00
Caolán McNamara
ca8787a981
boost::unordered_map->std::unordered_map
...
Change-Id: I5d458f43616edc395faa8c27edaddc7d515166db
2015-01-04 12:51:09 +00:00
Stephan Bergmann
63968bae87
stoc: Use appropriate OUString functions on string constants
...
Change-Id: I776bbe6077b33f22657141ca875743c67b793c48
2014-12-18 14:12:33 +01:00
Stephan Bergmann
bc909149fd
stoc: Use appropriate OUString functions on string constants
...
Change-Id: If8c20c8a0958016c14007406244fc8ab9a742933
2014-12-16 17:30:34 +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
Tor Lillqvist
8f266781a6
Bin unused include files, thanks to Andrea Gelmini
...
Change-Id: I848505b1d4ff03779b89a08d4aeefd6ea0ff205b
2014-11-06 13:18:35 +02:00
Noel Grandin
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
Noel Grandin
c353caee1c
loplugin: cstylecast
...
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
2014-09-29 12:50:35 +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
e80c3152fd
Avoid incomplete type in fn sig to keep ubsan's RTTI-based checks happy
...
Change-Id: I004905375489fa5533ab4af13ebba439ba792384
2014-08-07 18:40:17 +02:00
Michael Stahl
1d36d91d0a
use BOOST_STATIC_ASSERT for sizeof check
...
Change-Id: Iad00aa47ef65fe163eff407549c26eb3590ab132
2014-07-24 00:34:49 +02:00
Caolán McNamara
0d78ad871e
DBG_ASSERT->assert when followed by dereference
...
Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
2014-07-07 10:48:25 +01:00
Caolán McNamara
266fa9f4f7
fVal->nVal
...
Change-Id: Ia5b041094f29e42cb60f2c83888cace42b91cc13
2014-06-24 12:05:20 +01:00
Caolán McNamara
a1b89677b7
coverity#982255 Operands don't affect result
...
fVal started out as a double, but is now a sal_Int64 since
commit 353607df2e
Author: Lars Langhans <lla@openoffice.org >
Date: Mon Oct 9 13:21:27 2000 +0000
#79269# convert to hyper doesn't use toDouble any longer
so the comparison is always false
Change-Id: Ib0b0a78ba3763fb6564219e69111de13b5afc870
2014-06-24 12:05:20 +01:00
Noel Grandin
3e82897353
improve the inlinesimplememberfunctions clang plugin
...
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Noel Grandin
a8d5b0c815
stoc: remove SAL_THROW macro
...
Change-Id: I7443c855a7145837621887030b0d3d01cca2a5ac
2014-06-05 08:17:51 +02:00
Jens Carl
57217e1e9f
fdo#68849: Add header guards to all include files
...
Added header guards to files in directories stoc/, and svtools/
Change-Id: Ib6691b0e3fa09d71696ab947d357e489eb35df66
Reviewed-on: https://gerrit.libreoffice.org/9584
Reviewed-by: Thomas Arnhold <thomas@arnhold.org >
Tested-by: Thomas Arnhold <thomas@arnhold.org >
2014-06-01 16:13:05 +00:00
Noel Grandin
ebc0a15515
remove more unnecesary OUString constructor use
...
when throwing exceptions
Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
2014-05-29 09:01:40 +02:00
Noel Grandin
0f2824b117
remove more unnecessary use of OUString constructor
...
Change-Id: Iae14cb3df65295b6894fd9e05411c5698e9c8aba
2014-05-27 08:20:12 +02:00
Caolán McNamara
b36ccf5843
get stoc to build again
...
Change-Id: Ie4f04f8d5daf4af66057ec1ead4372c2ef0e7056
2014-05-23 21:37:47 +01:00
Julien Nabet
ac76cc7e60
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
...
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23 22:11:52 +02:00