summaryrefslogtreecommitdiffstats
path: root/cppuhelper
Commit message (Collapse)AuthorAgeFilesLines
* prefer makefile-gmake-modeTakeshi Abe2014-04-285-5/+5
| | | | Change-Id: I9cc9bfbddd3a90e00eee3e674994e5d6207f9034
* automaticly -> automatically.Jan Holesovsky2014-04-272-3/+3
| | | | Change-Id: Iae55083160eee86ac8301f272634dd3ae65fd847
* Print the important failure messages on iOS even in a non-debug buildTor Lillqvist2014-04-251-0/+8
| | | | | | | It might be that having fprintfs leftover in an app submitted to the App Store is a no-go, but will fix that then if/when it happens. Change-Id: Ic671fcce567c655a06fd4ed139100dc9b6f435be
* fixincludeguards.sh: some smaller dirsThomas Arnhold2014-04-194-8/+8
| | | | Change-Id: Ic25bd678dc299627299b22145efd7bebcf2b39d0
* cppu::OMultiTypeInterfaceContainerHelperVar hashImpl param is unusedStephan Bergmann2014-04-151-2/+2
| | | | | | | | | ...since f059134fab0f91b7a15594ad06536a13fbfae034 "INTEGRATION: CWS cppuhelpshrink: #i72766# save memory in cppuhelper, using a vector instead of a hash_map" (but a dummy "void" default is left in place for backwards compatibility). Change-Id: I3bb0af8158f34737d41c344464f3cf944e2891ed
* fix creating com.sun.star.sheet.Solver instanceMatúš Kukan2014-04-041-4/+3
| | | | Change-Id: I100d45b8f749ece5496d8e5a0e3343dee96f7138
* Remove unused copy ctor (and use boost::noncopyable)Stephan Bergmann2014-04-031-26/+5
| | | | Change-Id: Ib797c84e64a114df0e80067a97b714d4f97ff20a
* Make function prototype visibleStephan Bergmann2014-04-021-0/+2
| | | | Change-Id: I7bc497b5acdcc270ad47bbeedff424e9332ae645
* Remove unused inline constructorStephan Bergmann2014-04-011-11/+0
| | | | Change-Id: I33b5d11f850bf405ef5fcf2e6f1fe380287304d0
* First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2014-03-2613-258/+258
| | | | | | | ...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
* coverity#705457 Dereference null return valueCaolán McNamara2014-03-221-0/+2
| | | | Change-Id: Ifde26af3d00fee3aa52afafa3986ef180be39908
* Use cppu::BaseMutex instead of plain osl::Mutex as baseStephan Bergmann2014-03-183-5/+7
| | | | Change-Id: Id169891e60eb0a19899586fd3c9a9325ef9d1236
* Find places where OUString and OString are passed by value.Noel Grandin2014-03-182-2/+2
| | | | | | | | | | It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
* cppuhelper: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann2014-03-103-33/+5
| | | | Change-Id: I1e355c0ef9548d505de996304837d3d0910bd9b8
* Remove visual noise from cppuhelperAlexander Wilms2014-02-2711-74/+74
| | | | | | | Change-Id: If23a1aa19949f91f900d55ff9e1d5039378d7277 Reviewed-on: https://gerrit.libreoffice.org/8248 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann2014-02-2615-417/+417
| | | | Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
* Remove unneccessary commentsAlexander Wilms2014-02-2313-136/+136
| | | | | | | Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* coverity#707716 Uninitialized pointer fieldCaolán McNamara2014-02-211-2/+4
| | | | Change-Id: Ifea113d6fc0d6dd764a25cb6e70b9df41b7279c7
* clean upStephan Bergmann2014-02-181-7/+5
| | | | Change-Id: I02fa1aea1070a6485b96a67f7d6f7f56c022bd9e
* Do not throw when a singleton can't be raised, only warn.Matúš Kukan2014-02-181-9/+3
| | | | | | | This can happen for mobile platforms where we don't need singletons like com.sun.star.deployment.ExtensionManager. Change-Id: Iad6729539c7ed1ad2b3315c7b9a35647e92ebbff
* cppuhelper: sal_Bool -> boolStephan Bergmann2014-02-176-21/+21
| | | | Change-Id: I6e0e6c1e4880a652ea4d8f0cccf9d8103c2cbbef
* Drop unused #includeTakeshi Abe2014-02-171-3/+0
| | | | Change-Id: Id1badf4ae68d322a6e05e900aa63bdb124387bab
* Simplify service manager's tracking of singletonsStephan Bergmann2014-02-072-112/+76
| | | | | | | | | | It only tracks whether to dispose a singleton instance now, and (at least conceptually) no longer remembers the single instance (apart from what is necessary in order to call dispose on it), as the underlying implementation already needs to keep track of that to support direct calls of constructor functions. Change-Id: I154bf05438e1db099c1c5ffb1c56377725c6bfc6
* Remove needless SAL_DLLPRIVATE annotationsStephan Bergmann2014-02-031-1/+1
| | | | Change-Id: Iaf2d742ae3dcc15a915a996805955d93daac9d45
* fdo#54938 Convert to cppu::supportsServiceAlexandre Vicenzi2014-02-031-2/+1
| | | | | | | | Change-Id: I512c525029ebd63d261560d27e9f38bbe94f7e10 Reviewed-on: https://gerrit.libreoffice.org/7649 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
* Remove UNOIDL "array" and "union" vaporware remnantsStephan Bergmann2014-01-311-102/+0
| | | | | | ...and deprecate what cannot be removed for compatibility. Change-Id: I1ea335af775b867b468b8285113631167729a92a
* bool improvementsStephan Bergmann2014-01-282-7/+7
| | | | Change-Id: Iaf63fd2282ce8de4f4c3dc7120afe1bc0613228a
* Log what we are about to "load" in the DISABLE_DYNLOADING caseTor Lillqvist2014-01-241-0/+2
| | | | Change-Id: I75b9511e82d57da453527e7bc497ec1523ab2216
* Let C++ inline functions return bool instead of sal_BoolStephan Bergmann2014-01-231-1/+1
| | | | | | | | | | | | | ...to improve diagnosing misuses of boolean expressions in client code (cf. compilerplugins/clang/implicitboolconversion.cxx). This change should be transparent to client code. Missing overloads of insert() for bool have been added to OStringBuffer and OUStringBuffer (which required dropping one !VALID_CONVERSION check that would now pick that overload, but would be flagged by compilerplugins/clang/pointertobool.cxx). Change-Id: I2d64cd923b8f47bfaa31e753def6515c29a3f8c9
* Introduce static inline cppu::acquire(), and make use of that.Jan Holesovsky2014-01-222-49/+33
| | | | | | | | This is much better approach compared to the callback function, as it allows passing arguments to the c++ constructor directly, while still allowing some additional initialization after having acquired the instance. Change-Id: I5a0f981915dd58f1522ee6054e53a3550b29d624
* Change _get_implementation()'s not to do initialization directly.Jan Holesovsky2014-01-212-22/+50
| | | | | | | | | | | | | | | Many of the initalizations (in eg. framework) have to be done on an acquire()'d object, so instead of doing the initialization directly, return the initialization member function back to the createInstance() / createInstanceWithContext() / ... and perform the initialization there. As a sideeffect, I belive the calling initialize() from servicemanager is not that much a hack any more - whoever converts the implementation to be constructor-base has the choice to provide the callback, or still initialize through XInitialization, where the callback is preferred by servicemanager when it exists. Change-Id: I8a87b75c54c1441ca0f184967d31ff4902fc4081
* Simplify code; STATUS_LOADED => component||factory1||factory2Stephan Bergmann2014-01-202-25/+15
| | | | Change-Id: I661eb69551eae3d888d156c6bd4291a532d0b6ab
* Minimize the constructor functions to a bare minimum.Jan Holesovsky2014-01-201-7/+4
| | | | | | | | | | | | | | | Most of the constructors are supposed to be only a call of new TheInstance(arguments) or an equivalent; so let's just change the constructor caller accordingly, to accept unacquired new instance. If there are exceptions that need to do more heavy lifting, they do not have to use the constructor feature, or there can be a wrapper for the real implementation, doing the additional work in their (C++) constructor. Change-Id: I035c378778aeda60d15af4e56ca3761c586d5ded
* cppuhelper: valgrind complains about uninitialized variable...Michael Stahl2014-01-161-2/+4
| | | | | | ... cppuhelper::ServcieManager::Data::Implementation::dispose Change-Id: I70a96e608f17eb6630326bbf32fff5fb5d7d4569
* Support for singleton constructor functionsStephan Bergmann2014-01-162-167/+320
| | | | | | | | | | | | | The service manager now keeps track of instances of singleton implementations (i.e., implementations whose XML description lists at least one <singleton ...>). These instances will be disposed either when the service manager is disposed, or, for instances that have been instantiated into the component context's /singleton/* map, when the component context is disposed. This change allows to use constructor functions for such singleton implementations, too. Change-Id: I220c9ddc9824e4d7f7556daefb599e2ec36b0e6c
* Use const& arguments parameter for ctor functions.Matúš Kukan2014-01-152-5/+5
| | | | Change-Id: I19ce8bd1a23123ac9a62a7fc95cd54fea5315221
* Initialize constructor based implementations in one place.Matúš Kukan2014-01-151-7/+19
| | | | Change-Id: I324f25bb5ec7d792c3e015815f2a11b08f519764
* Use SAL_WARN, too, to increase chance of actually seeing the messageTor Lillqvist2014-01-141-0/+2
| | | | | | | | | | Passing an, as such useful, verbose error message to the CannotActivateFactoryException constructor is fairly pointless if that exception ends up being unexpected and causes program termination. Which of course is exactly the case when one would be very interested in seeing any message associated with the exception. Change-Id: I1cd987669e39e47d5f072690dc5013e4a42fd50a
* [API CHANGE] cppu::Enterable::v_isValid returns boolStephan Bergmann2014-01-101-3/+3
| | | | | | | | While strictly speaking an incompatible change, it is extremely unlikely that external code uses cppu::Enterable at all; this should always have been a private URE implementation detail. Change-Id: I2c3fe754fe6268b18ca03532229f3403736f6f6e
* remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin2014-01-071-6/+6
| | | | | | | | | Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
* Only component-mapping.h is needed here.Matúš Kukan2014-01-011-3/+1
| | | | Change-Id: I09fc944d7d19e8a2804d8530ba2a98b5719d8b37
* typo fixesAndras Timar2013-12-201-1/+1
| | | | Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
* Missing initializationStephan Bergmann2013-12-191-1/+1
| | | | Change-Id: I177da4fbe87eacfb86b6196df3d023218b1c9012
* Legacy cppu::loadSharedLibComponentFactory isn't DISABLE_DYNLOADING cond.Stephan Bergmann2013-12-191-2/+2
| | | | Change-Id: I020d4fc382470d7bc08df9b88e42ac62c97cb47e
* FactoryWrapper is a misnomer nowStephan Bergmann2013-12-191-17/+20
| | | | Change-Id: I59d77b4712e273318409a326c835861dc467596c
* Add .component <implementation constructor="..." featureStephan Bergmann2013-12-194-431/+434
| | | | | | | | | | | | | | ...to directly call constructor functions of ComponentContext-based C++ implementations of (non-single-instance) UNO services. The case where these calls would need to be bridged across different environments (e.g., from gcc3 to gcc3:affine) is not yet implemented. bootstrap.component and expwrap.component are adapted accordingly as a proof-of- concept (which had previously been adapted to use the prefix="direct" feature, which may become unnecessary again in the end, depending on how to handle single-instance services/singletons). More to follow. Change-Id: I18682d75bcd29d3d427e31331b4ce8161dbb846d
* Get more --disable-dynamic-loading code out of shlib.cxx.Matúš Kukan2013-12-181-58/+9
| | | | | | | | | It's not terribly nice, but, hopefully, better. The hope is that one day, lo_get_library_map will be no more. In lo_get_implementation_map we can specify more precisely what to link into the binary. Change-Id: I99a1854fbae05be2f70302cc56bea88e522ec129
* bootstrap component: Split into implementation functions.Matúš Kukan2013-12-181-14/+10
| | | | Change-Id: I91cb0177edd79485eab885e995e79b1a19a769d5
* Deduplicate some foo_component_getFactory declarations.Matúš Kukan2013-12-181-31/+0
| | | | Change-Id: I9304b62134bab375b721399ae078bf66e01191d8
* Allow UNO component libraries to have each implementation in its own function.Matúš Kukan2013-12-181-4/+25
| | | | | | | | | Demonstrating on expwrap library. There is hope, this will bring code size savings for mobile platforms, where we don't need every implementation. Change-Id: I3519fb6148fd7a47ed9df092c73779ea6add552f