path: root/cppu/qa
AgeCommit message (Collapse)AuthorFilesLines
2014-10-31Removed duplicated includesAndrea Gelmini3-4/+0
Change-Id: I5362d997bfa086c9fb1726efcb15132a966684f6 Reviewed-on: Tested-by: LibreOffice gerrit bot <> Reviewed-by: Michael Stahl <>
2014-05-13Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part11Julien Nabet1-16/+14
Change-Id: Ibe0a1006aba2b6cbd87c0bd6ca3acbf9ba7b0fbe
2014-04-24add missing modelines to idl filesThomas Arnhold2-0/+6
Change-Id: If52651c70ee659c83ef127da4fe5e266cfe7eec2
2014-04-09Clean up function declarationsStephan Bergmann2-13/+12
Change-Id: I2478861e79bbb0f6d7e8a0b7bc59a81f457d92dc
2014-04-03Cosmetics (to ease work related to finding unused functions)Stephan Bergmann1-4/+4
Change-Id: I88b7659fdfdcba43e69ef7489573b28952c8328c
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin1-7/+7
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2-12/+12
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-27std::exception retrofit sequelStephan Bergmann2-4/+4
Change-Id: Ide9234c50592fe4f12eb1f6ea836ad60ce4697df
2014-01-22Let C++ inline functions return bool instead of sal_BoolStephan Bergmann1-3/+3 improve diagnosing misuses of boolean expressions in client code (cf. compilerplugins/clang/implicitboolconversion.cxx). This change should be transparent to client code. Change-Id: Ife614637082036dd17412f247be79233326c4f0b
2013-12-16fdo#72598 Remove SunStudio cruft from code baseJelle van der Waa1-18/+0
Change-Id: I5150eec33228e18e274a8ae4effd3f185851b7f4 Reviewed-on: Reviewed-by: Michael Stahl <> Tested-by: Michael Stahl <>
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-0/+14
Change-Id: I557d9628478b0cddf5a2b176403bdd67db5a0695
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-09-19Unlike idlc, unoidl doesn't support out-of-range byte constsStephan Bergmann2-4/+0
Change-Id: Ib1c98ea10a2d05e74a3aae9b2868a69c66efa543
2013-05-07Avoid warnings about unused test functionsStephan Bergmann1-43/+49
Change-Id: I6b2a40c4b95555c4d8bf0d8674fce46accd49965
2013-05-07Up-cast conversion constructor for css::uno::ReferenceStephan Bergmann1-0/+43
Based on a previous patch by Noel Grandin, <>, and borrowing from boost::is_base_and_derived (see comment in include/com/sun/star/uno/Reference.h) to avoid including Boost headers in URE headers. Change-Id: Iade5af144dd73ef03bd7d96000134c7a66a5e591 Reviewed-on: Tested-by: LibreOffice gerrit bot <> Reviewed-by: Stephan Bergmann <> Tested-by: Stephan Bergmann <>
2013-04-03Forbid old-style services/singletons inheriting new-style servicesStephan Bergmann1-1/+1
...does not make sense. Adapted some old-style services accordingly, where the inherited service had been changed to new-style after the fact. Change-Id: I5f3e4ddf99160778a319062a6c84f83529ff177b
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold1-20/+20
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: Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold3-62/+53
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens2-4/+0
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-09-18deprecate oustringostreaminserter.hxxNorbert Thiebaud2-5/+0
the intent of this header has canged over time. now it is already systematically included with ustring.hxx and the operator overload it provide fit nicely there... Just to be safe, since that include as been added to the api during the 3.5 timeframe and therefore is already in 'production' the header remain and simply attempt to include ustring.hxx but a warning is issued indicating that this header should not be used anymore... in a couple of major release we will thenr emove it completely All internal users of that header are converted. Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad Reviewed-on: Tested-by: Norbert Thiebaud <> Reviewed-by: Norbert Thiebaud <>
2012-09-17migrate some of the biggest consumer of osl_*InterlockedCount to osl_atomicNorbert Thiebaud2-4/+4
Change-Id: I0e6992afbeffaf3b993e6630fb396d93012890e0 Reviewed-on: Tested-by: Norbert Thiebaud <> Reviewed-by: Norbert Thiebaud <>
2012-08-01Bin no longer used iOS cppunit stuff that breaks build evenTor Lillqvist5-156/+0
Change-Id: I78c71b22816834c66c8283e3d85e357b7b8d2836
2012-07-30udkapi, offapi: do not use #include "foo":Michael Stahl2-10/+10
Evidently on Windows, the newfangled ucpp handles #include "foo" differently from #include <foo> and treats it as a relative path, while the angle brackets always result in absolute paths. Since relative paths result in infinite rebuilds if make is invoked in a different directory, don't use #include "foo" in IDL files. Change-Id: Iedcda3a4be5542389a0be086f14541cda8dc5323
2012-07-16allow using rtl::OUString etc. simply as OUString, without rtl::Luboš Luňák1-0/+30 The RTL_USING #define (set by gbuild for anything that's not public API) allows to use such classes simply by their name, without having to use the namespace or do explicit using rtl::OUString (which half of the sources do anyway). Change-Id: I7edaf12cd278489cdc1d5ff782f0a86361c13c0a
2012-06-27targetted re-work of cppunit pieces.Michael Meeks6-13/+5
2012-06-26re-base on ALv2 code.Michael Meeks7-174/+118
2012-06-13re-base on ALv2 code.Michael Meeks1-26/+17
2012-04-09cppu: use InternalUnoApiMatúš Kukan1-48/+0
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi1-64/+21
2012-03-14Enable -Wnon-virtual-dtor for GCC 4.6Stephan Bergmann2-4/+12
...which has the necessary features to support it. Change a lot of classes to either contain a protected non-virtual dtor (which is backwards compatible, so even works for cppumaker-generated UNO headers) or a public virtual one. cppuhelper/propertysetmixin.hxx still needs to disable the warning, as the relevant class has a non-virtual dtor but friends, which would still cause GCC to warn. Includes a patch for libcmis, intended to be upstreamed.
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann1-1/+2
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
2011-12-19-Werror=sign-promo fixesStephan Bergmann2-35/+37
2011-12-19cppu: convert to gbuildMatúš Kukan3-193/+48
Because of unit tests is here custom target where are idl files processed.
2011-11-27remove include of pch header in cppuNorbert Thiebaud6-10/+0
2011-11-22New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.Stephan Bergmann2-28/+2
* New SAL_INFO..., SAL_WARN... macros. * New SAL_STREAM supersedes OSL_FORMAT. * oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now). * TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site cleanup). * Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet addressed. * Some replacements tools String -> rtl::OUString.
2011-11-15fdo#42865: cppu,cppuhelper,testtools: no mapfileMichael Stahl4-73/+7
Instead, build with VISIBILITY_HIDDEN.
2011-11-14Fix build --all depend=x.Stephan Bergmann1-0/+2
2011-10-18Some fixes for "clang version 3.1 (trunk 142234)" (with --enable-werror, on ↵Stephan Bergmann2-19/+27
Linux x86_64).
2011-09-27Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().Stephan Bergmann2-0/+24
2011-09-20Bypass building the iOS cppu_unittester_all for nowTor Lillqvist1-1/+6
We can't build it here at this point during the build after all. We use static linking on iOS, and we would need to link with -lgcc3_uno from bridges which has not been built yet. It seems that any meaningful unit tests for iOS actually need to be built in a "subsequent" stage.
2011-09-12sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed ↵Stephan Bergmann6-9/+11
out a6913c9677c2 For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-08-01Use OBJCXXFLAGS instead of duplicating itTor Lillqvist1-1/+1
2011-08-01Add statically linked cppu unit test for iOSTor Lillqvist6-5/+174
2011-06-13use rm -f to not complain about attempting to remove nonexisting fileChristian Lohmaier1-17/+17
2011-06-05Can't run any qa when cross-compilingTor Lillqvist2-0/+10
2011-03-18restore cppunit test, Sequence ctor from sal_Int32 is now explicitCaolán McNamara1-4/+11
2011-03-18only test this on certain archsCaolán McNamara1-0/+3
2011-03-18Add PowerPC to the right branchFridrich Štrba1-1/+1
2011-03-15move cppumaker test to cppuCaolán McNamara4-0/+1395
2011-02-24remove empty TESTSHL2LIBCaolán McNamara1-4/+4