summaryrefslogtreecommitdiff
path: root/cppu
AgeCommit message (Collapse)AuthorFilesLines
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann7-36/+36
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-27Remove visual noise from cppuAlexander Wilms17-137/+137
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-27std::exception retrofit sequelStephan Bergmann2-4/+4
Change-Id: Ide9234c50592fe4f12eb1f6ea836ad60ce4697df
2014-02-23Remove unneccessary commentsAlexander Wilms9-87/+87
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-21cid#707712 Uninitialized pointer fieldNoel Grandin1-1/+4
Change-Id: I95205c6cccac00f782f457215fd650551fe67274
2014-02-17cppu: sal_Bool -> boolStephan Bergmann15-182/+182
Change-Id: I1288f1f6f38d1475b4eb5272509e479bd9f2552d
2014-02-17Drop unused #includeTakeshi Abe1-2/+0
Change-Id: Id1badf4ae68d322a6e05e900aa63bdb124387bab
2014-02-06typo fixes in commentsAndras Timar2-9/+9
Change-Id: Idd49478d59cd062118fbf8e99d1c8bc5250013fc
2014-02-05fdo#43157 - Clean up OSL_ASSERTTimothy Markle1-4/+4
Changed OSL_ASSERT to SAL_WARN_IF Change-Id: I6f81a265aefe769e1449b1f10c796bf3aa1d0f1c
2014-02-03Remove needless SAL_DLLPRIVATE annotationsStephan Bergmann4-8/+8
Change-Id: Iafaf65e5b25f5d9e00e1dc73db280f6605ad1de5
2014-01-31[API CHANGE] Remove UNOIDL "array" and "union" vaporware remnants from cppuStephan Bergmann11-1016/+50
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-31Remove UNOIDL "array" and "union" vaporware remnantsStephan Bergmann1-3/+0
...and deprecate what cannot be removed for compatibility. Change-Id: I1ea335af775b867b468b8285113631167729a92a
2014-01-28coverity#440026 Logically dead codeCaolán McNamara1-22/+11
Change-Id: Ib269314be090d2d65b593b1c47fea1e10ef2582b
2014-01-27bool improvementsStephan Bergmann1-1/+1
Change-Id: I757e19313576d2c3d13af1cb720f182f0de91613
2014-01-25coverity#1158251 Dereference before null checkCaolán McNamara1-2/+1
Change-Id: I724632f66d7ec64e165b039e8b9d8c43a9f5aaa7
2014-01-22Let C++ inline functions return bool instead of sal_BoolStephan Bergmann1-3/+3
...to 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
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-10[API CHANGE] cppu::Enterable::v_isValid returns boolStephan Bergmann4-11/+11
While strictly speaking an incompatible change, it is extremely unlikely that external code uses cppu::Enterable at all; this should always have been a private URE implementation detail. Change-Id: I2c3fe754fe6268b18ca03532229f3403736f6f6e
2014-01-07remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin4-15/+15
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 Waa2-19/+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 Bergmann3-1/+2
Change-Id: I4bd729499aa8be58f04194656e35c1f79d5d4919
2013-12-11cppu: Avoid uno_direct_getEnvironment() indirection.Matúš Kukan4-84/+1
"UNO_ENV_SUBST:" should not be used. Change-Id: If23b174de792cd69dc79e70dd8f5e8a31badb96d
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin6-32/+27
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-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-10-21fdo#68849 add some header guardsThomas Arnhold1-0/+5
Change-Id: I9d25a58f22095689eccc0ac444c163d1e9bee69f Reviewed-on: https://gerrit.libreoffice.org/6364 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-22gbuild: make the versioned library the linktarget on UnixesMichael Stahl2-2/+2
If there is a SOVERSION then the versioned library is a real file and the unversioned one just a symlink; better to have the real file be the target. - add gb_Library_UDK_MAJORVER variable for SOVERSION - remove version parameter of gb_Library_set_soversion_script; instead hardcode the SOVERSION since it must be included in the file name in gb_Library_FILENAMES anyway - store the unversioned symlink in the ILIBTARGET variable - via new gb_Library_get_workdir_target_versionlink function - removed gb_Helper_install call that resulted in both versioned and unversioned libs in instdir Change-Id: I2c6f1698f0e39fdb2c07964d43ed9485cbca0b30
2013-09-22cppu: rename purpose environment librariesMichael Stahl4-16/+16
It would not be necessary to mangle the affine_uno_uno/log_uno_uno/unsafe_uno_uno library names in RepositoryFixes.mk if they were simply named right in the first place. Change-Id: I0fce919549764d2335c5501c1110878b8709fa09
2013-09-19Directly build UNOIDL .rdb files from .idl filesStephan Bergmann2-20/+2
...via unoidl-write and the new source-format registry provicers, instead of using idlc to produce .urd files, regmerge to merge them into legacy .rdb files, and unoidl-write to translate those to new UNOIDL .rdb files. gb_UnoApi and gb_InternalUnoApi ctors take an additional argument now that is the path (below $(SRCDIR)) of the source-format registry from which to obtain UNOIDL entity definitions. It can either be an .idl file (in which case no *_add_idlfiles calls should be used and the resulting .rdb will contain all the entities from that one .idl file; used in some tests to conveniently define all test-specific entities in a single file) or a directory denoting the root of an .idl file tree (in which case *_add_idlfiles calls specify the entites to include in the resulting .idl file). (In the first case, the generated .rdb file needs to depend on that single .idl file, so the gb_UnoApiTarget ctor contains a dependency on that additional argument, which happens, as a side effect, to trigger rebuilds in the second, tree-based case when addition/removal of .idl files in the tree causes updates of directory time-stamps.) UnoApiPartTarget and all the dependency-tracking logic based on .urd files in solenv/gbuild/UnoApiTarget.mk is gone. Generation of an .rdb file now depends on its source registry (see previous paragraph) and all the .idl files specified with *_add_idlfiles (in the second, tree-based case above). A consequence of that is that gb_UnoApi_add_idlfile, -_nohdl, and -_noheader all do the same now. I left them in for now anyway, maybe they become relevant again when the use of cppumaker is changed to read directly from a source-format registry instead of going via a .rdb registry. The legacy tools idlc, regcompare, regmerge, and regview are still contained in the URE or SDK for now. cb344cd59e1ddb7c6db66dbd9263b4755969d4ba "Revert 'Looks like idlc resolved typedefs inside sequence<...>'" is re-reverted as now "the current offapi.rdb is generated via unoidl-write instead of idlc." Change-Id: I3d9d92f17326bc9f49dd934c85aab6a17951d06d
2013-09-19Unlike idlc, unoidl doesn't support out-of-range byte constsStephan Bergmann2-4/+0
Change-Id: Ib1c98ea10a2d05e74a3aae9b2868a69c66efa543
2013-09-18There are two distinct InternalUnoApis in cppu/qaStephan Bergmann8-14/+35
Change-Id: I59ab1a6086b1b70c52687c819cd53497fbd09675
2013-09-07s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar1-1/+1
Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
2013-09-04UNO interface UIKs are unused for a very long timeStephan Bergmann3-12/+15
...so mark them as @deprecated more thoroughly and always force them to zero. Change-Id: I5db2dab924fc5a4145a0e5dd055b654985ce2ef9
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 Bergmann5-18/+21
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-08-02Mark as constTakeshi Abe1-1/+1
Change-Id: I7ad2a1bd29afbf4813b1ad984081935ca84ec98a
2013-07-03fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFORadu Ioan1-27/+25
- replaced RTL_CONTEXT_ with SAL_INFO - replace OSL_* with SAL_* Change-Id: I26761cf1d4c1cfe21dec7d8ede6df6f177bf2c3e Reviewed-on: https://gerrit.libreoffice.org/4620 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
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-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, <https://gerrit.libreoffice.org/#/c/3613/>, 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: https://gerrit.libreoffice.org/3699 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák4-6/+5
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks11-231/+44
2013-04-24move URE headers to include/David Tardon43-8730/+0
Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d Reviewed-on: https://gerrit.libreoffice.org/3499 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks1-22/+4