summaryrefslogtreecommitdiffstats
path: root/include/cppuhelper
Commit message (Collapse)AuthorAgeFilesLines
...
* Some clean-upStephan Bergmann2016-10-201-406/+261
| | | | Change-Id: Ifd36b0f364dd1d5d38095d32409f8587b0662ace
* TDE fix some clang plugin based warningsJan-Marek Glogowski2016-09-231-11/+11
| | | | Change-Id: I3b44038e8a889e4c13126fd8d721e53e71ea9ec6
* Mark new exported function as SAL_CALLStephan Bergmann2016-09-201-1/+1
| | | | | | ...for consistency with existing exported functions Change-Id: Ib513dc8ce4dbf4e614f5453f2bbd32dcac4b8666
* cid#1371142: Move semantics for css::uno::WeakReferenceHelperStephan Bergmann2016-09-191-0/+9
| | | | Change-Id: I442b2d8061bd7d50cbf832b345a7a63461e26224
* loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann2016-09-134-5/+5
| | | | | | | | | | | | | | | | | The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
* loplugin:salbool: Better heuristic to determine code shared between C and C++Stephan Bergmann2016-07-111-2/+2
| | | | Change-Id: I09c9c57d5adeb665cc2508fad9727085a3289bfb
* Clean up uses of Any::getValue() in cppuhelperStephan Bergmann2016-06-201-10/+10
| | | | Change-Id: Ibe25c23a273db957905af972dcae64e3a0d3be8a
* improper use of this/that just bugs meNoel Grandin2016-06-201-3/+3
| | | | Change-Id: Ie05062cfe384971f5c358769ab16461a76f911cf
* cppuhelper: WeakReference isn't thread-safeMichael Stahl2016-06-171-4/+16
| | | | | | | | | | | | ... but its documentation claims that it is, which is partially misleading, so fix both the documentation and the data race in WeakReferenceHelper::clear(). This actually crashed in clear() in the multi-threaded ZipPackage code on exporting the bugdoc from tdf#94212, presumably because clear() races against OWeakRefListener::dispose(). Change-Id: I85665c11b8157e90d15e8263758e24e66efeb86c
* remove "object is disposed" warning in OBroadcastHelperVar::removeListenerNoel Grandin2016-06-081-1/+0
| | | | | | | | | doesn't add anything of value. Change-Id: Ie2dea7c43570640284771c992d0072ab61de425e Reviewed-on: https://gerrit.libreoffice.org/25871 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* add some spaces to make it easier to readMarkus Mohrhard2016-05-181-0/+3
| | | | | | | Change-Id: I2eb1c74bc0d91d3a12a66989b696fccbf1d2825e Reviewed-on: https://gerrit.libreoffice.org/25117 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Add covertPropertyValue bool overloadStephan Bergmann2016-05-042-0/+7
| | | | | | | | | ...as the behavior of the generic covertPropertyValue template instantiated for bool would be quite different from the behavior of the convertPropertyValue sal_Bool overload, leading to potential surprises. (Though it seems there were no uses yet of covertPropertyValue with bool, only with sal_Bool.) Change-Id: I107a0608fc4271e95464a7f9bdc340a9e6dc1336
* Declaration of sal_Bool overload of convertPropertyValue had been missingStephan Bergmann2016-05-041-0/+1
| | | | | | ...ever since b525a3115f54576017a576ff842dede5e2e3545d "initial import" Change-Id: I0824b673d222b6376ca199ad37f916ccaf80aa58
* Remove leftover declaration of convertPropertyValue overloadStephan Bergmann2016-05-041-3/+0
| | | | | | | | | | | | ...that had originally been introduced with a comment // This template is needed at least for msci4 compiler in b525a3115f54576017a576ff842dede5e2e3545d "initial import", and whose corresponding definition had been removed in 6231a9b4e926d5dc213f94ddf35b14bab411d77d "visual studio version 4 is long gone" Change-Id: I0cf4913a2c2c4701d41cf24d2f89c1de0bd86323
* loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann2016-04-2014-15/+15
| | | | Change-Id: If965f73934c182a1c96d9fdca6f395c256f6b259
* Silence -Werror,-Wnon-virtual-dtor (clang-cl)Stephan Bergmann2016-03-0414-0/+91
| | | | Change-Id: Icac0f029461c886ebb03aedcd54189116b66d8a3
* Use an XInitialization-based channel to request service mgr pre-initStephan Bergmann2016-02-261-37/+0
| | | | | | | | | | ...instead of private cppu::preInitBootstrap function Change-Id: Id0e6fcf721b697c993e5acffaf7836452cfa9750 Reviewed-on: https://gerrit.libreoffice.org/22699 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
* Re-work cppu::preInitBootstrap()Henry Castro2016-02-151-1/+9
| | | | | | | | | | | | In the preinit stage, the preInitBootstrap is called to load implementations for each service registered by the service manager. All service requests are: initial Component Context and the process service factory is set. However, some services require that VCL is properly initialized. Change-Id: Ib116e3da172b860f2df4d672f6181b5de0b7e6b2
* Introduce lok_preinit() to preload all registered UNO implementationsHenry Castro2016-02-151-0/+29
| | | | | | | | | Intended to be used from an application like the LibreOffice On-Line server so that it can be called in a process that then will call fork() several times, and much space consuming data will end up being shared. Change-Id: I65341c57d00308d246ec90deab8050b2c4bb3e61
* Remove excess newlinesChris Sherlock2016-02-092-6/+0
| | | | | | | | | | | | | | | | | | | A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
* cppuhelper: remove invalid doxygen markupChris Sherlock2016-01-131-3/+3
| | | | | | | Change-Id: I97e8757c1f5006bb1320b4a65da34745cc563e58 Reviewed-on: https://gerrit.libreoffice.org/21456 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
* Fix typosAndrea Gelmini2016-01-102-3/+3
| | | | | | | Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
* add SAL_WARN_UNUSED to css::uno::WeakReference and SvCompatWeakRefNoel Grandin2015-11-241-1/+1
| | | | Change-Id: Idb784d398ed22f2291f1beaffb82f68642d68bcd
* Fix typoTakeshi Abe2015-11-131-1/+1
| | | | Change-Id: I691e655196d271661fe3ae9aa64c6c61c02d8855
* Missing includes (for NULL)Stephan Bergmann2015-11-106-0/+18
| | | | Change-Id: Id2359f6ff4bddb2afbc0b346e17cd858f00179e3
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-106-13/+13
| | | | Change-Id: I62a63915dfc0bced2cd8ffe3999cbde5c4d97b0b
* Note why certain replacements of odd functionality are not there by designStephan Bergmann2015-11-062-0/+12
| | | | Change-Id: Iaa3110eaea5e295a193642555b7e14ab3fb6ff96
* attempt to placate DoxygenNoel Grandin2015-10-211-3/+3
| | | | Change-Id: Ia29a9aa59c234a92366113e176931bc286ec8abb
* visual studio version 4 is long goneNoel Grandin2015-10-211-15/+6
| | | | Change-Id: Icf0b4153d07d9c412889d6a7364d4282bba33032
* com::sun::star->css in include/cppuhelperNoel Grandin2015-10-2150-1526/+1516
| | | | | | | Change-Id: I3d9dcd4cd756a3f0d9cedd894377a117c9dbeecc Reviewed-on: https://gerrit.libreoffice.org/19486 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Fix typosAndrea Gelmini2015-09-303-3/+3
| | | | | | | Change-Id: Ia8b2176a439742769e61fb6a981000f316033071 Reviewed-on: https://gerrit.libreoffice.org/18954 Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
* Revert "return and use std::vector from OInterfaceContainerHelper"Noel Grandin2015-06-291-12/+4
| | | | This reverts commit e57314f61f67b093510c5a8a8f34a62126ba8734.
* return and use std::vector from OInterfaceContainerHelperNoel Grandin2015-06-291-4/+12
| | | | | | | | | | 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>
* Revert "Typo: iff->if"Julien Nabet2015-06-231-1/+1
| | | | | | This reverts commit cf92da3d6e1de14756efe3f1ee79f393a2f3787d. iff can mean "if and only if" so not a typo
* Typo: iff->ifJulien Nabet2015-06-231-1/+1
| | | | Change-Id: I3fc60856b5a56e71d70b55c89323be074bdec3b3
* Add variadic PartialWeakComponentImplHelper, remove need for implbase_var.hxxStephan Bergmann2015-06-221-11/+37
| | | | Change-Id: Iad3417822b2ab3afb75da09c311a0bf07af5e2e4
* comment the element_alias unionNoel Grandin2015-05-161-0/+4
| | | | | | | Change-Id: I0467b2e3d124e71da7df150da31e3936615e098b Reviewed-on: https://gerrit.libreoffice.org/15746 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* typoStephan Bergmann2015-04-211-1/+1
| | | | Change-Id: Iba3d56e8c95da526e0e559238e1ec5ba7a29538e
* remove unnecessary use of void in function declarationsNoel Grandin2015-04-151-2/+2
| | | | | | | | | | | | | | | | 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
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-281-19/+19
| | | | Change-Id: I92c0a6c602e473b796df43b88c98b823de8d9399
* V803 decreased performance postfix incrementMichael Stahl2015-03-131-1/+1
| | | | | | | These are pretty silly anyway, but apparently it complains even about integer variables which make this rather a waste of time. Change-Id: I15e847d33d5decd2adcab04e4f1567d3997d28a2
* Missing XComponent overridesStephan Bergmann2015-03-131-0/+18
| | | | Change-Id: Iab882c309e661953f030432670e4e926e1178d1f
* TyposJulien Nabet2015-02-181-2/+2
| | | | Change-Id: I845a85e1aad4a0708f2b43f7d94606b4b5513ee4
* loplugin:deletedspecialStephan Bergmann2015-02-075-24/+32
| | | | Change-Id: I0b91d813d0ec432f15aaf2d31a11dd4c505e2e54
* Get rid of std::auto_ptr in stable URE interfaceStephan Bergmann2015-01-272-9/+5
| | | | | | | | | | | | | | | | ...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
* Variadic cppu::WeakComponentImplHelperStephan Bergmann2015-01-161-0/+93
| | | | Change-Id: I79371b4ad9d29a5ab8fd01244c3f80db92b07f97
* Fix getTypes() of OPropertySetHelper and derivedStephan Bergmann2015-01-161-1/+5
| | | | | | | ...broken with 60d60caf99a40ca0c3891bf230c5a1fdbae5f49c "Renamed XPropertySet2 to XPropertySetOption" et al Change-Id: I684736ffafc4642548b7c24171cc52c1acb32252
* override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl2015-01-091-1/+1
| | | | Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
* brute-force find-and-remove of unused #define constants.Noel Grandin2015-01-081-1/+0
| | | | Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
* bla, blaStephan Bergmann2015-01-071-0/+17
| | | | Change-Id: Ied7a6f8d5b4555dc561fc24d3b6b9743e9e2a266