summaryrefslogtreecommitdiffstats
path: root/cppu
Commit message (Collapse)AuthorAgeFilesLines
* convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara2015-02-051-7/+4
| | | | | | and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
* cppu: convert some OSL_TRACEMichael Stahl2015-01-291-11/+3
| | | | Change-Id: I5dc00f7b03b51916b1331c4ba64064a5aa5930c9
* cppu: the LogBrige really needs its own SAL_LOG areaMichael Stahl2015-01-291-25/+25
| | | | Change-Id: I129f3dc1597035664e4ff284276cb0d49a560ab5
* Some more loplugin:cstylecast clean-upStephan Bergmann2015-01-284-7/+7
| | | | Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
* Some more loplugin:cstylecast: cppuStephan Bergmann2015-01-2017-196/+189
| | | | Change-Id: Iec1251648031afa9eddd7445135fb08dc74821bd
* valgrind: uninitialized variableCaolán McNamara2015-01-081-1/+1
| | | | Change-Id: I1e166c7e3b58ed565aaf478fa0b6505d1f68b604
* coverity#1261762 Resource leakCaolán McNamara2015-01-084-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
* Fix includeStephan Bergmann2015-01-051-1/+1
| | | | Change-Id: Ie5253f9b32bb6ed1099eca75b442ba26528f2b32
* Include function declarationsStephan Bergmann2015-01-051-2/+3
| | | | Change-Id: Ib1ce66bf9ec71280409335c0a5022ecfe229f494
* Mark function declarations as CPPU_DLLPUBLIC, not only definitionsStephan Bergmann2015-01-051-3/+6
| | | | | | | | | <http://msdn.microsoft.com/en-us/library/8fskxacy.aspx> "Importing into an Application Using __declspec(dllimport)": "Using __declspec(dllimport) is optional on function declarations, but the compiler produces more efficient code if you use this keyword." Change-Id: I149306049987b2406622d7a0dc5dde92d283a5b3
* Missing constStephan Bergmann2015-01-051-1/+1
| | | | Change-Id: I8a1c520023b493c0494ac2ac650542d8ecc11c5d
* More unnamed namespace clean-upStephan Bergmann2015-01-051-7/+5
| | | | Change-Id: Iaba8b9b3415c357990b795b6f23b98929ac5e00a
* These extern "C" functions are not in an unnamed namespaceStephan Bergmann2015-01-051-2/+1
| | | | Change-Id: I185b29c185094176e0992fc84c9cc82ff93de9c2
* These extern "C" functions are not in namespace cppuStephan Bergmann2015-01-051-8/+7
| | | | Change-Id: Ia98b32bd8451051750fbf810958bdcfe584ea7be
* includeStephan Bergmann2015-01-051-1/+1
| | | | Change-Id: I77d06a70f9c000f800b9b31d3b04aafe77754446
* Some loplugin:revisibility clean-upStephan Bergmann2015-01-058-71/+71
| | | | | | | | | | | | | 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
* OSL_FAIL -> SAL_WARNStephan Bergmann2015-01-021-17/+7
| | | | Change-Id: I82ce1030e69f8794c9fdbdc138541e5d7e0541d4
* boost::unordered_map -> c++11 std::unordered_mapCaolán McNamara2014-12-276-20/+16
| | | | Change-Id: I28438000c2b0a8e6ce4f5640f861f572c0cb83c8
* Remove unused */qa/checkapi/Stephan Bergmann2014-12-191-30/+0
| | | | | | ...superseded by CppunitTest_odk_checkapi Change-Id: I5df89a1a12f496984deab153f0ba2734323c1293
* cppu: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-163-9/+9
| | | | Change-Id: Id1d763c83821b7af6c541cb28ff438765026ea4d
* document coverity#706128 Wrong sizeof argumentCaolán McNamara2014-12-111-0/+1
| | | | Change-Id: Ibb38d8b8395300501caa0fc040f03b06770fd42e
* Clean up includesStephan Bergmann2014-11-202-5/+7
| | | | Change-Id: Id3aaae19d86b706fd5ddb5982340472d28a75610
* cppu: clean up public headers with include-what-you-useMichael Stahl2014-11-184-0/+4
| | | | | | | | Unfortunately iwyu gets quite confused by the weird cyclic dependencies between various foo.h/foo.hxx and cppumaker generated headers, so it's not obvious if any improvement here is realistic... Change-Id: I0bc66f98b146712e28cabc18d56c11c08418c721
* coverity#440589 silence Write to pointer after freeCaolán McNamara2014-11-181-0/+1
| | | | | Change-Id: I85bb3b8cb0ba25e5ebd0a0fff84bda51792cc743 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Assert that typelib_typedescription_release will not destroy pTDR->pTypeStephan Bergmann2014-11-181-0/+1
| | | | | | | ...which is dereferenced a few lines further down; this is in preparation for a commit addressing cid#440589. Change-Id: I3428216258d928473f85ecd4d025c352c8c83ea0
* cid#1254675 Uncaught exceptionStephan Bergmann2014-11-171-1/+4
| | | | | | just throw up hands in despair via std::abort instead of std::runtime_error Change-Id: I356932ed2d76558bb4febbd2ac0a7bb6ea27bd0f
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-172-0/+2
| | | | | | | | | Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
* coverity#704593 silence Dereference after null checkCaolán McNamara2014-11-141-3/+1
| | | | Change-Id: I3ccd6895a1ddbf46a441e60ceaaaceb945f682e4
* cid#983623 Don't throw DisposedException past uno_threadpool_putJobStephan Bergmann2014-11-144-31/+26
| | | | | | | | | | | | | | This improves on b68640c44ecdb1df59d704cc6c2bae8bb412d7d0 "Prevent creation of new ORequestThreads during shutdown," which added throwing the DisposedException from ThreadAdmin::add. But ThreadAdmin::m_disposed can only become true via uno_threadpool_destroy -> ThreadPool::joinWorkers -> ThreadAdmin::join, and ThreadAdmin::add observing that can only happen via uno_threadpool_putJob -> ThreadPool::addJob -> ThreadPool::createThread -> ORequestThread::launch -> ThradAdmin::add, where the bridges should ensure that uno_threadpool_destroy does not run in parallel with uno_threadpool_putJob. So demote this from a DisposedException to a SAL_WARN. Change-Id: I3912ea077b7fa35827c41e82dd0a8f962ba412b6
* markup with event type not checker typeCaolán McNamara2014-11-053-8/+12
| | | | Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
* Removed duplicated includesAndrea Gelmini2014-10-313-4/+0
| | | | | | | Change-Id: I5362d997bfa086c9fb1726efcb15132a966684f6 Reviewed-on: https://gerrit.libreoffice.org/12160 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* document array_vs_singleton dismissalsCaolán McNamara2014-10-302-2/+2
| | | | Change-Id: I8d7eb4c01197e885abca717c7814c61a7641ac9d
* restore using rtl for OSL_DEBUG_LEVEL > 1Caolán McNamara2014-10-301-0/+3
| | | | Change-Id: I6497303e1b2d8d5ffd962489657582387ab974b1
* remove unnecessary 'using namespace rtl' declarationsNoel Grandin2014-10-292-2/+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>
* see if we can auto-ignore new Sequence false positives as suchCaolán McNamara2014-10-271-0/+2
| | | | Change-Id: I7099dcf15843a80c25c7fb508dd9c0e8df6447e0
* coverity#982158 Unchecked return valueCaolán McNamara2014-10-081-1/+1
| | | | Change-Id: I15acdaaa810b5ee209764a277d0da5a4d7773466
* coverity#982157 Unchecked return valueCaolán McNamara2014-10-081-1/+1
| | | | Change-Id: Ia6a1ee154254e7efc0d787ce92222e80fecfd04e
* coverity#982156 Unchecked return valueCaolán McNamara2014-10-081-1/+1
| | | | Change-Id: I16180cae5fcf8dc59614f4ccf33f8745db05e138
* optimise UNO Sequence destructorNoel Grandin2014-10-023-21/+47
| | | | | | | | | | 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
* fdo#83512 Make use of OUStringHash and OStringHashDaniel Sikeler2014-09-182-18/+5
| | | | | Change-Id: I33cafe68c798e3d54943ea1790fa4e73f85e525d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* attempt to fix Android buildbotNoel Grandin2014-09-171-1/+1
| | | | | | it seems to have issues with a < token followed by a :: token. Change-Id: I8cc6a5b6cf00a233182de273ab6aa8609326aca9
* cppu and cppuhelper: loplugin: cstylecastNoel Grandin2014-09-177-7/+7
| | | | | | | Add a macro in include/cppuhelper/implbase_ex.hxx to make initialising the type_entry classes a little less verbose. Change-Id: I0904b5b9db269c92bc89e7ce3d6c8b09350c9897
* Related fdo#82088: removing namespace alias in hxxStefan Weiberg2014-09-021-8/+5
| | | | | | | Change-Id: Iaf455e8361653bc1262cda3bccc2e798b3c60580 Reviewed-on: https://gerrit.libreoffice.org/11225 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* set names on a bunch more threads...Michael Stahl2014-08-252-0/+6
| | | | Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
* everything is independent from vos these days...Michael Stahl2014-08-251-1/+0
| | | | Change-Id: Iccb94dcc31d6de8c9e4e7a31b3c2e36d4198b295
* Avoid incomplete type in fn sig to keep ubsan's RTTI-based checks happyStephan Bergmann2014-08-071-1/+2
| | | | Change-Id: Iaa470f710295e65347c9d12a3bce0d0b68b02417
* s_mapInterface must match uno_MapInterfaceFuncStephan Bergmann2014-07-291-3/+5
| | | | Change-Id: I5035db31ce3cb3d07dca86aa77552274c02f695a
* new loplugin: externalandnotdefinedNoel Grandin2014-07-113-28/+45
| | | | | | | | Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
* DBG_ASSERT->assert when followed by dereferenceCaolán McNamara2014-07-072-6/+4
| | | | Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
* clang scan-build: various warningsCaolán McNamara2014-07-012-2/+2
| | | | Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713