summaryrefslogtreecommitdiff
path: root/stoc
AgeCommit message (Collapse)AuthorFilesLines
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin11-108/+61
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-22cppcheck: fprintf format string requires 1 parameter but only 0 are givenThomas Arnhold1-4/+4
Change-Id: I31a5a4e2bad79cfc425fb712688794a4a1dc4f60
2014-05-22stoc: fix includesThomas Arnhold30-370/+370
Change-Id: I0809bfa6897d469e63d6e84898f60aae16a14862
2014-05-22stoc: convert TEST_LIST_CLASSES case alsoThomas Arnhold2-3/+3
Change-Id: Ib7b00f052c5b907ccc9b0aba924ada41ff1db023
2014-05-22stoc: make use of css aliasThomas Arnhold48-639/+639
Change-Id: I1dd85a7b1236cfebd5e653fe6d329968e556364b
2014-05-22stoc: remove using namespace from headersThomas Arnhold7-154/+163
Change-Id: I1bee29ddcef66cb38ef2619507ad66c886f6f20d
2014-05-20enhance pass-by-ref plugin to detect large argumentsNoel Grandin2-2/+2
Detect arguments larger than 64 chars passed by value. Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-16idl: remove external header guardsThomas Arnhold1-17/+0
Change-Id: I78661f0750e4213a20dd2341580cbb181897f3ba
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold10-22/+22
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-14Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12Julien Nabet1-1/+1
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
2014-05-10coverity#708240 Uninitialized pointer fieldCaolán McNamara1-0/+2
Change-Id: I82bb1587d74f7b1f012ff01d0f68ea8cffd16112
2014-04-30stoc: sal_Bool->boolNoel Grandin12-117/+117
Change-Id: Id5aaa3ddfe2cfacbe1bddcdeccb9e775ad84d858
2014-04-24add missing modelines to idl filesThomas Arnhold11-0/+33
Change-Id: If52651c70ee659c83ef127da4fe5e266cfe7eec2
2014-04-09Clean up function declarationsStephan Bergmann2-4/+4
Change-Id: Ife3cb18d22c57c9c2e59317b68cf11a4bf94a40a
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin1-8/+8
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03Unused declarationStephan Bergmann1-3/+0
Change-Id: Ib753cacf91baa6a761ac8f971b67c0f5ade555b6
2014-04-03Use boost::noncopyableStephan Bergmann9-52/+43
Change-Id: I9cba1299c54f196a5a7b35384f4c15bbbea273bb
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann6-8/+8
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01Remove unused inline functionStephan Bergmann1-5/+0
Change-Id: Ieafdefb5a6981ee2f375cb9ba852de7b21688b42
2014-03-26Work around MSC "'override' cannot be used with 'inline'" bugStephan Bergmann1-1/+1
Change-Id: If736316402c49153d4c8552672c90552548f90b8
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann29-509/+509
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-25Adapt to sal/log.hxxStephan Bergmann1-2/+3
Change-Id: Ic197b0fc962ff33b0f0a3c7f04d8208ea9123094
2014-03-18Use cppu::BaseMutex instead of plain osl::Mutex as baseStephan Bergmann2-15/+16
Change-Id: Ib4fa4669adb217be810840b3f8e4f0e2dda0f7c5
2014-03-18Use cppu::BaseMutex instead of plain osl::Mutex as baseStephan Bergmann1-3/+4
Change-Id: Ic7bd99f920fc954e2eeb734e324d15b1af01e30d
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin1-3/+3
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
2014-03-14coverity#708238 Uninitialized pointer fieldCaolán McNamara1-0/+2
Change-Id: I83552efc825d54da9e00d4a9a637118565bd30ca
2014-03-14coverity#708240 Uninitialized pointer fieldCaolán McNamara1-0/+1
Change-Id: I127cfc84412984e9c190f3e5b2e37cf76ebf82f1
2014-03-12No need for Invocation_Impl::setMaterial to be virtualStephan Bergmann1-3/+2
Change-Id: I5f78d97bcd55c0db71d7c5e3383678586c2cf392
2014-03-10stoc: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann7-78/+8
Change-Id: I57eca2dcf316232c26c528015c4ba18ba3c4760d
2014-03-07Use getTypes instead of getImplementationId as cache keyStephan Bergmann1-28/+22
so we can hopefully deprecate getImplementationId and make all implementations return an empty sequence. Change-Id: I161b5fce727541ea2c8303b5d228dbc4939a55b6
2014-03-07Clean up introspection cachesStephan Bergmann1-213/+141
Change-Id: Ied10da0f491e7723245056a4c98540f8b56ffe5d
2014-03-07Clean up ImplIntrospection classStephan Bergmann1-360/+135
Change-Id: I416e2cb8e22d200dfb72d512a4b4278ca582cd10
2014-03-07-Werror=unused-parameterStephan Bergmann1-1/+2
Change-Id: Ida1c78309cc0cde3082ce4340084aa34986c63c5
2014-03-07Convert com.sun.star.comp.stoc.Introspection to direct constructionStephan Bergmann2-66/+29
Change-Id: Ia01efee8c7cc28d1f71fd87c735a6cbc205b3eaf
2014-03-07Introduce com.sun.star.beans.theIntrospection singletonStephan Bergmann2-2/+3
...deprecating com.sun.star.beans.Introspection (single-instance) service. Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann30-874/+874
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from stocAlexander Wilms32-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>
2014-02-25Replace deprecated std::auto_ptr with boost::scoped_ptrTakeshi Abe1-2/+2
Change-Id: I8e11ffe888aac8887c4c0875c41de51f343debae
2014-02-23Remove unneccessary commentsAlexander Wilms18-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>
2014-02-07Simplify access to theCoreReflection singletonStephan Bergmann2-37/+12
Change-Id: I9901991a320b87895230a92095c9c7d3109380a6
2014-01-31Remove UNOIDL "array" and "union" vaporware remnantsStephan Bergmann5-30/+23
...and deprecate what cannot be removed for compatibility. Change-Id: I1ea335af775b867b468b8285113631167729a92a
2014-01-29bool improvementsStephan Bergmann1-1/+1
Change-Id: I0dc09b7a6ee2849bd0c2ffc31be45f81cd2c15ee
2014-01-28bool improvementsStephan Bergmann3-5/+5
Change-Id: Ic29ea184cb40f6f49313ac2ff1abb4a37246d5bd
2014-01-28coverity#440504 Dereference before null checkCaolán McNamara1-1/+1
Change-Id: Ia7c817ca0b002279bee8699e4940c57937657ad4
2014-01-26Translate some German comments to English, and remove some ASCII art.Sven Wehner1-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>
2014-01-23Let C++ inline functions return bool instead of sal_BoolStephan Bergmann1-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
2014-01-22Introduce static inline cppu::acquire(), and make use of that.Jan Holesovsky7-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
2014-01-21Change _get_implementation()'s not to do initialization directly.Jan Holesovsky7-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
2014-01-21bool improvementsStephan Bergmann1-1/+1
Change-Id: I9e5e77ad2c29ccdae1a794b7a0223858d8a662a6
2014-01-21Fix bogus mass-conversion equalsAsciiL -> startsWithStephan Bergmann3-31/+31
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to startsWith calls" should rather have converted to oprator ==. Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21