summaryrefslogtreecommitdiff
path: root/cppu/source/uno
AgeCommit message (Collapse)AuthorFilesLines
2014-11-05markup with event type not checker typeCaolán McNamara1-4/+10
Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
2014-10-30restore using rtl for OSL_DEBUG_LEVEL > 1Caolán McNamara1-0/+3
Change-Id: I6497303e1b2d8d5ffd962489657582387ab974b1
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin1-1/+0
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-27see if we can auto-ignore new Sequence false positives as suchCaolán McNamara1-0/+2
Change-Id: I7099dcf15843a80c25c7fb508dd9c0e8df6447e0
2014-10-02optimise UNO Sequence destructorNoel Grandin2-21/+42
to avoid expensive function calls until the refcount reaches 0 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, slightly changing it to add a uno_type_sequence_destroy to uno/sequence2.h instead of a uno_type_destructSequence to uno/data.h. Change-Id: I3bbff3294f2b515fc3c68c4c6c1cb16829f5cc44
2014-09-18fdo#83512 Make use of OUStringHash and OStringHashDaniel Sikeler2-18/+5
Change-Id: I33cafe68c798e3d54943ea1790fa4e73f85e525d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-09-17attempt to fix Android buildbotNoel Grandin1-1/+1
it seems to have issues with a < token followed by a :: token. Change-Id: I8cc6a5b6cf00a233182de273ab6aa8609326aca9
2014-09-17cppu and cppuhelper: loplugin: cstylecastNoel Grandin4-4/+4
Add a macro in include/cppuhelper/implbase_ex.hxx to make initialising the type_entry classes a little less verbose. Change-Id: I0904b5b9db269c92bc89e7ce3d6c8b09350c9897
2014-08-07Avoid incomplete type in fn sig to keep ubsan's RTTI-based checks happyStephan Bergmann1-1/+2
Change-Id: Iaa470f710295e65347c9d12a3bce0d0b68b02417
2014-07-07DBG_ASSERT->assert when followed by dereferenceCaolán McNamara2-6/+4
Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
2014-07-01clang scan-build: various warningsCaolán McNamara2-2/+2
Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713
2014-06-26OSL_ENSURE->assertCaolán McNamara1-1/+1
Change-Id: Ib8ba49e89d03eaf3b3aae94dbbf121898ba9e8de
2014-06-05cppu: remove SAL_THROW macroNoel Grandin9-78/+32
Change-Id: I2f1909f953846f0d0b6fb402b4beb373bba8b2a8
2014-04-19fixincludeguards.sh: cppuThomas Arnhold9-18/+18
2014-04-04Missing includeStephan Bergmann1-0/+1
Change-Id: Ifbb916e72a00a9e9925fd12e7945f178d7ae200b
2014-02-27Remove visual noise from cppuAlexander Wilms11-113/+113
Change-Id: Ib776a6e5397eb9731cf908c4015642c29b320ff6 Reviewed-on: https://gerrit.libreoffice.org/8247 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23Remove unneccessary commentsAlexander Wilms4-47/+47
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-17cppu: sal_Bool -> boolStephan Bergmann5-131/+131
Change-Id: I1288f1f6f38d1475b4eb5272509e479bd9f2552d
2014-02-03Remove needless SAL_DLLPRIVATE annotationsStephan Bergmann1-2/+2
Change-Id: Iafaf65e5b25f5d9e00e1dc73db280f6605ad1de5
2014-01-31[API CHANGE] Remove UNOIDL "array" and "union" vaporware remnants from cppuStephan Bergmann7-752/+0
This leaves only aborting stubs (for SONAME stability) for typelib_static_array_type_init typelib_typedescription_newArray typelib_typedescription_newUnion and completely removes corresponding typelib_ArrayTypeDescription typelib_UnionTypeDescription structs and C++ inline getCppuArrayType* functions. None of this should ever have been called by client code anyway, so while technically an API change it should not matter for practical purposes. Change-Id: I23769d104d545533bf578762b79994e269d78c22
2014-01-28coverity#440026 Logically dead codeCaolán McNamara1-22/+11
Change-Id: Ib269314be090d2d65b593b1c47fea1e10ef2582b
2014-01-25coverity#1158251 Dereference before null checkCaolán McNamara1-2/+1
Change-Id: I724632f66d7ec64e165b039e8b9d8c43a9f5aaa7
2014-01-21Fix bogus mass-conversion equalsAsciiL -> startsWithStephan Bergmann1-1/+1
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to startsWith calls" should rather have converted to oprator ==. Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21
2014-01-07remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin2-10/+10
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2014-01-05remove empty orPhilipp Riemer1-1/+1
This is an additional commit to 66397a4fd222757a8bd651c0c297615319eac4a5 Change-Id: I61df7984090e984f50788d0c2573d3bf8bac233b
2013-12-26WaE: unused function 'setNegativeBridge'Tor Lillqvist1-1/+5
Change-Id: I251f93f421972f8e5ab346af29152cebc17ab875
2013-12-16fdo#72598 Remove SunStudio cruft from code baseJelle van der Waa1-1/+1
Change-Id: I5150eec33228e18e274a8ae4effd3f185851b7f4 Reviewed-on: https://gerrit.libreoffice.org/7103 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-12-16Clean-up uno/lbnames.hStephan Bergmann2-0/+2
Change-Id: I4bd729499aa8be58f04194656e35c1f79d5d4919
2013-12-11cppu: Avoid uno_direct_getEnvironment() indirection.Matúš Kukan3-83/+1
"UNO_ENV_SUBST:" should not be used. Change-Id: If23b174de792cd69dc79e70dd8f5e8a31badb96d
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin4-26/+22
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
2013-11-20convert equalsAsciiL calls to startsWith callsNoel Grandin1-1/+1
Convert code like: aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) ) to aStr.startsWith( "ActiveConnection" ) which compiles down to the same machine code. Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
2013-08-22Better assertionsStephan Bergmann1-1/+4
Change-Id: I4ba11570328e17abdf063049065b4fc6dcc65a9d
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák1-2/+2
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()Stephan Bergmann1-2/+3
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
2013-08-19Rename SOLAR_JAVA to ENABLE_JAVA and HAVE_FEATURE_JAVATor Lillqvist2-2/+4
Change-Id: Ib451bdb3c1c2ca42347abfde44651d5cf5eef4f3
2013-08-12error: dereferencing type-punned pointer will break strict-aliasing rulesStephan Bergmann1-1/+1
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3) Change-Id: I0b5809ec1dd3fb616bb7698972205a2810ed1aa5
2013-05-09protect UNO EnvStack's s_setCurrent() against unknown threadidHerbert Dürr1-2/+7
untracked threadIds have been observed and can result in crashes. s_getCurrent() already checks them and s_setCurrent() does it now. (cherry picked from commit bf8e3135ac906ce0ab7d6d9ccbd434f1597f2ff4) Conflicts: cppu/source/uno/EnvStack.cxx Change-Id: If35237179c1ee3b854e6183294ed72a6d0b105a8
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák3-4/+4
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-16WaE: variable 'hMod' set but not usedTor Lillqvist1-4/+0
Change-Id: Iae64943671a576159be0fa311bc503aa96b2b5df
2013-04-16do not use deprecated rtl_registerModuleForUnloadingMatúš Kukan2-5/+0
Change-Id: I59014906c8409fc7ac0f155c9562613c309b8b06 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold1-4/+4
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold1-1/+1
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-04doubled includesThomas Arnhold1-1/+0
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold1-1/+1
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script: http://pastebin.ca/2327716
2013-02-21osl_atomic_increment/decrement are macrosStephan Bergmann1-2/+2
Change-Id: Ib2d61e436d625ac89defe718d4cc1d866d538397
2013-01-15Include <cassert>Stephan Bergmann1-0/+4
Also, move assert into uno_type_sequence_construct so that all its callers benefit. Also, change some OSL_ENSURE to assert. Change-Id: Idd0a03c4aa6eed1db453db84602c01ff16f0d72c
2012-11-13Avoid global static dataStephan Bergmann1-7/+7
...that (indirectly) allocates memory via rtl/alloc.h, thereby causing the rtl_cache_wsupdate_init thread to be spawned before main, as on Mac OS X that would interfere with the code in sal_detail_initialize to close all file descriptors >= 3 -- on Mac OS X the pthreads implementation makes use of KQUEUE file descriptors. * This commit removes enough global static data to make ui-preview work again on Mac OS X (where it crashed at startup when the main thread closed the KQUEUE fd used by pthreads implementation threads). gengal uses further static data (at least from module sb), so needs further clean-up. * Avoiding global static instances derived from class Application required the introduction of vcl/vclmain.hxx. * That the vcl library was linked against the static vclmain library (which only provides an implementation of main) appears to me to be a historic relic (all executables should either include a SAL_IMPLEMENT_MAIN or link against vclmain), so I removed that. Change-Id: I048aa616208cb3a1b9bd8dcc3b729ba1665729bd
2012-10-07Handle lack of module loading/unloading API when DISABLE_DYNLOADINGTor Lillqvist3-2/+10
There are basicically two classes of cases: 1) Where the code is for obscure historical reasons or what I see as misguided "optimization" split into a more libraries than necessary, and these then are loaded at run-time. Instead, just use direct linking. 2) Where dynamic loading is part of the functionality offered to some upper (scripting etc) layer, or where some system-specific non-LO library is loaded dynamically, as it is not necessarily present on end-user machines. Can't have such in the DISABLE_DYNLOADING case. Change-Id: I9eceac5fb635245def2f4f3320821447bb7cd8c0
2012-10-01Replace usage of rtl_*Memory with equivalent from string.hArnaud Versini1-1/+0
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159 Reviewed-on: https://gerrit.libreoffice.org/734 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-21Need also uno_ext_getMapping for Java when DISABLE_DYNLOADINGTor Lillqvist1-0/+5
Change-Id: I65f09e54c80df4e96e24548692eeb3a57e1de517