summaryrefslogtreecommitdiff
path: root/cppu/source/uno
AgeCommit message (Collapse)AuthorFilesLines
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann1-1/+1
Change-Id: Id980379f57590759ebc9b862aad3c6dfb04ddef7
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann2-0/+2
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin2-5/+5
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
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann3-8/+8
Change-Id: I22ee2cbacad8b19bb55db234e816d401edcf4a35
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann10-310/+310
Change-Id: I834eb4ecd0fa71caf6fa746901367fac8b538305
2015-02-05convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara1-7/+4
and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
2015-01-29cppu: convert some OSL_TRACEMichael Stahl1-11/+3
Change-Id: I5dc00f7b03b51916b1331c4ba64064a5aa5930c9
2015-01-28Some more loplugin:cstylecast clean-upStephan Bergmann3-5/+5
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
2015-01-20Some more loplugin:cstylecast: cppuStephan Bergmann11-95/+88
Change-Id: Iec1251648031afa9eddd7445135fb08dc74821bd
2015-01-08valgrind: uninitialized variableCaolán McNamara1-1/+1
Change-Id: I1e166c7e3b58ed565aaf478fa0b6505d1f68b604
2015-01-08coverity#1261762 Resource leakCaolán McNamara4-30/+29
still leaks the handle of course, but c++izes the code and hides the leak from coverity as a side-effect Change-Id: Ieaab1545a98da1d699df93d020f0cb452ddf2516
2015-01-05More unnamed namespace clean-upStephan Bergmann1-7/+5
Change-Id: Iaba8b9b3415c357990b795b6f23b98929ac5e00a
2015-01-05These extern "C" functions are not in an unnamed namespaceStephan Bergmann1-2/+1
Change-Id: I185b29c185094176e0992fc84c9cc82ff93de9c2
2015-01-05These extern "C" functions are not in namespace cppuStephan Bergmann1-8/+7
Change-Id: Ia98b32bd8451051750fbf810958bdcfe584ea7be
2015-01-05includeStephan Bergmann1-1/+1
Change-Id: I77d06a70f9c000f800b9b31d3b04aafe77754446
2015-01-05Some loplugin:revisibility clean-upStephan Bergmann6-37/+37
Stumbled across such redundant visibility re-specifications when looking at the odd case of cppu_unsatisfied_iquery_msg declared CPPU_DLLPUBLIC in cppu/source/cppu/cppu_opt.cxx and used in inline code in include/com/sun/star/uno/Reference.hxx with only a declaration lacking CPPU_DLLPUBLIC visible, and wondering how that actually works on Windows. However, this plugin is probably not worth it being run all the time, so committing it to compilerplugins/clang/store/. Change-Id: Ibc3c4e7499213de1b419ce7eb85455cb832e1510
2015-01-02OSL_FAIL -> SAL_WARNStephan Bergmann1-17/+7
Change-Id: I82ce1030e69f8794c9fdbdc138541e5d7e0541d4
2014-12-27boost::unordered_map -> c++11 std::unordered_mapCaolán McNamara3-13/+10
Change-Id: I28438000c2b0a8e6ce4f5640f861f572c0cb83c8
2014-12-11document coverity#706128 Wrong sizeof argumentCaolán McNamara1-0/+1
Change-Id: Ibb38d8b8395300501caa0fc040f03b06770fd42e
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