summaryrefslogtreecommitdiffstats
path: root/stoc
Commit message (Collapse)AuthorAgeFilesLines
* coverity#708238 Uninitialized pointer fieldCaolán McNamara2014-03-141-0/+2
| | | | Change-Id: I83552efc825d54da9e00d4a9a637118565bd30ca
* coverity#708240 Uninitialized pointer fieldCaolán McNamara2014-03-141-0/+1
| | | | Change-Id: I127cfc84412984e9c190f3e5b2e37cf76ebf82f1
* No need for Invocation_Impl::setMaterial to be virtualStephan Bergmann2014-03-121-3/+2
| | | | Change-Id: I5f78d97bcd55c0db71d7c5e3383678586c2cf392
* stoc: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann2014-03-107-78/+8
| | | | Change-Id: I57eca2dcf316232c26c528015c4ba18ba3c4760d
* Use getTypes instead of getImplementationId as cache keyStephan Bergmann2014-03-071-28/+22
| | | | | | | so we can hopefully deprecate getImplementationId and make all implementations return an empty sequence. Change-Id: I161b5fce727541ea2c8303b5d228dbc4939a55b6
* Clean up introspection cachesStephan Bergmann2014-03-071-213/+141
| | | | Change-Id: Ied10da0f491e7723245056a4c98540f8b56ffe5d
* Clean up ImplIntrospection classStephan Bergmann2014-03-071-360/+135
| | | | Change-Id: I416e2cb8e22d200dfb72d512a4b4278ca582cd10
* -Werror=unused-parameterStephan Bergmann2014-03-071-1/+2
| | | | Change-Id: Ida1c78309cc0cde3082ce4340084aa34986c63c5
* Convert com.sun.star.comp.stoc.Introspection to direct constructionStephan Bergmann2014-03-072-66/+29
| | | | Change-Id: Ia01efee8c7cc28d1f71fd87c735a6cbc205b3eaf
* Introduce com.sun.star.beans.theIntrospection singletonStephan Bergmann2014-03-072-2/+3
| | | | | | ...deprecating com.sun.star.beans.Introspection (single-instance) service. Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
* cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann2014-02-2630-874/+874
| | | | Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
* Remove visual noise from stocAlexander Wilms2014-02-2632-305/+305
| | | | | | | Change-Id: I19edfb2796298c4870124d0d1e9488974a010bb8 Reviewed-on: https://gerrit.libreoffice.org/8316 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Replace deprecated std::auto_ptr with boost::scoped_ptrTakeshi Abe2014-02-251-2/+2
| | | | Change-Id: I8e11ffe888aac8887c4c0875c41de51f343debae
* Remove unneccessary commentsAlexander Wilms2014-02-2318-279/+279
| | | | | | | 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>
* Simplify access to theCoreReflection singletonStephan Bergmann2014-02-072-37/+12
| | | | Change-Id: I9901991a320b87895230a92095c9c7d3109380a6
* Remove UNOIDL "array" and "union" vaporware remnantsStephan Bergmann2014-01-315-30/+23
| | | | | | ...and deprecate what cannot be removed for compatibility. Change-Id: I1ea335af775b867b468b8285113631167729a92a
* bool improvementsStephan Bergmann2014-01-291-1/+1
| | | | Change-Id: I0dc09b7a6ee2849bd0c2ffc31be45f81cd2c15ee
* bool improvementsStephan Bergmann2014-01-283-5/+5
| | | | Change-Id: Ic29ea184cb40f6f49313ac2ff1abb4a37246d5bd
* coverity#440504 Dereference before null checkCaolán McNamara2014-01-281-1/+1
| | | | Change-Id: Ia7c817ca0b002279bee8699e4940c57937657ad4
* Translate some German comments to English, and remove some ASCII art.Sven Wehner2014-01-261-39/+33
| | | | | | | | | | | Additional changes according to Chris Sherlock's wishes (removing comment decorations, removing no-purpose comments) Change-Id: I5346010d67ed5d1b2b2ad0df91ac472dde905683 Reviewed-on: https://gerrit.libreoffice.org/7504 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* Let C++ inline functions return bool instead of sal_BoolStephan Bergmann2014-01-231-2/+2
| | | | | | | | | | | | | ...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-227-18/+18
| | | | | | | | 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-217-9/+9
| | | | | | | | | | | | | | | 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
* bool improvementsStephan Bergmann2014-01-211-1/+1
| | | | Change-Id: I9e5e77ad2c29ccdae1a794b7a0223858d8a662a6
* Fix bogus mass-conversion equalsAsciiL -> startsWithStephan Bergmann2014-01-213-31/+31
| | | | | | | 3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to startsWith calls" should rather have converted to oprator ==. Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21
* bool improvementsStephan Bergmann2014-01-211-1/+1
| | | | Change-Id: I00e7cdadc4e66fa9656c0a63f4ef18d3673b8e8a
* Minimize the constructor functions to a bare minimum.Jan Holesovsky2014-01-207-27/+9
| | | | | | | | | | | | | | | 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
* Unify ctor functions for component implementations.Matúš Kukan2014-01-187-33/+25
| | | | | | | | There is no need to use different styles for writing the same thing. It also makes it easier in future to use search & replace. But of course, there are also some more complicated functions. Change-Id: I773da20378af0e0d5a27689d3903df7063fb8ac0
* Unify ctor functions to have _get_implementation suffix.Matúš Kukan2014-01-158-18/+18
| | | | Change-Id: I07fe0671d0633ef9480a4f3431df6a64c7902db8
* Use const& arguments parameter for ctor functions.Matúš Kukan2014-01-157-18/+16
| | | | Change-Id: I19ce8bd1a23123ac9a62a7fc95cd54fea5315221
* Some ConfigurationProvider -> theDefaultProvider simplificationsStephan Bergmann2014-01-081-2/+3
| | | | Change-Id: I7c25cd94f8a1ca339f7423c26f21f13c7a68906d
* remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin2014-01-075-28/+28
| | | | | | | | | Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
* Add .component <implementation constructor="..." featureStephan Bergmann2013-12-198-275/+127
| | | | | | | | | | | | | | ...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
* bootstrap component: Split into implementation functions.Matúš Kukan2013-12-1811-392/+194
| | | | Change-Id: I91cb0177edd79485eab885e995e79b1a19a769d5
* Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann2013-12-1710-20/+20
| | | | Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
* remove unnecessary double calls to OUString constructorNoel Grandin2013-12-171-2/+2
| | | | Change-Id: Ib2690e3ec9987b97363687b61fe8ddae4ace9058
* Remove unnecessary use of OUString constructor in + expressionsNoel Grandin2013-12-174-7/+7
| | | | | | | | | Convert code like aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp"); to aFilename = OUString::number(nFilePostfixCount) + ".bmp"; Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
* Clean-up uno/lbnames.hStephan Bergmann2013-12-1611-5/+6
| | | | Change-Id: I4bd729499aa8be58f04194656e35c1f79d5d4919
* [API CHANGE] remove cppu::loadSharedLibComponentFactory w/ rPrefix againStephan Bergmann2013-12-131-1/+1
| | | | | | | | ...it was never meant to be called by client code anyway and is no longer needed to be exposed since the global service manager implementation moved to cppuhelper. Change-Id: If2d0510b2364084d36edeb156a3459d9b8aeb983
* remove unnecessary castsNoel Grandin2013-12-121-1/+1
| | | | | | | It is no longer necessary to cast to sal_Unicode when calling OUStringBuffer::append Change-Id: Iab3d1e12eef472cfe11f1d0d1969ca404091dd7d
* simplify - use OUString::startsWith where possibleNoel Grandin2013-12-121-3/+1
| | | | | | | | | Convert code like if( !aStr.isEmpty() && aStr[0] == 'x' ) to if( aStr.startsWith("x") ) Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf
* Catching std::bad_alloc in UNO implementations no longer necessaryStephan Bergmann2013-11-285-37/+5
| | | | | | | ...since 0bc89aac4c64bb833e387657f680e194c26aef97 "cppumaker: Allow UNO interface functions to throw std::exception." Change-Id: Ia28f02ea10d45267fd951e80da01ffdfdb420885
* remove unnecessary RTL_CONSTASCII_STRINGPARAMNoel Grandin2013-11-222-7/+4
| | | | | | | A final pass through the code, converting code to use the new OUString and OString methods that can detect string literals. Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
* remove unnecessary use of OUString constructor in equalsIgnoreAsciiCaseNoel Grandin2013-11-221-2/+2
| | | | | | | | | Convert code like: sType.equalsIgnoreAsciiCase(OUString("VIEW")); to: sType.equalsIgnoreAsciiCase("VIEW"); Change-Id: I6fb47e6a83b561c7e5a25da76b63606a3174858d
* remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin2013-11-209-71/+57
| | | | | | | | | | Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
* convert equalsAsciiL calls to startsWith callsNoel Grandin2013-11-203-34/+31
| | | | | | | | | | Convert code like: aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) ) to aStr.startsWith( "ActiveConnection" ) which compiles down to the same machine code. Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
* remove unnecessary use of OUString constructor when assigningNoel Grandin2013-11-192-8/+8
| | | | | | | | | change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
* remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin2013-11-193-6/+4
| | | | | | This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
* remove unnecessary sal_Unicode casts in various placesNoel Grandin2013-11-141-1/+1
| | | | Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
* remove unnecessary use of OUString constructor in STOC moduleNoel Grandin2013-11-0812-73/+70
| | | | Change-Id: I980223cedb6d0054ef71cbd81691f70a24f506ad