df9efbd53d
coverity#440589 silence Write to pointer after free
...
Change-Id: I85bb3b8cb0ba25e5ebd0a0fff84bda51792cc743
Signed-off-by: Stephan Bergmann <sbergman@redhat.com >
2014-11-18 12:18:32 +01:00
6d2e4740a5
Assert that typelib_typedescription_release will not destroy pTDR->pType
...
...which is dereferenced a few lines further down; this is in preparation for a
commit addressing cid#440589.
Change-Id: I3428216258d928473f85ecd4d025c352c8c83ea0
2014-11-18 12:17:18 +01:00
3d87666185
coverity#704593 silence Dereference after null check
...
Change-Id: I3ccd6895a1ddbf46a441e60ceaaaceb945f682e4
2014-11-14 16:49:30 +00:00
12bcfec04f
markup with event type not checker type
...
Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
2014-11-05 14:58:00 +00:00
cb0e009a9e
document array_vs_singleton dismissals
...
Change-Id: I8d7eb4c01197e885abca717c7814c61a7641ac9d
2014-10-30 10:10:09 +00:00
4c4e2868f8
coverity#982158 Unchecked return value
...
Change-Id: I15acdaaa810b5ee209764a277d0da5a4d7773466
2014-10-08 20:45:12 +01:00
0fe035e366
coverity#982157 Unchecked return value
...
Change-Id: Ia6a1ee154254e7efc0d787ce92222e80fecfd04e
2014-10-08 20:45:12 +01:00
54d068185e
coverity#982156 Unchecked return value
...
Change-Id: I16180cae5fcf8dc59614f4ccf33f8745db05e138
2014-10-08 20:45:12 +01:00
9685276b97
cppu and cppuhelper: loplugin: cstylecast
...
Add a macro in include/cppuhelper/implbase_ex.hxx
to make initialising the type_entry classes a little less verbose.
Change-Id: I0904b5b9db269c92bc89e7ce3d6c8b09350c9897
2014-09-17 07:08:23 +02:00
dac4ca5f68
new loplugin: externalandnotdefined
...
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
2014-07-11 14:12:25 +02:00
ab0b8a95ef
fix comment and tiny optimisation for shutdown.
...
Change-Id: I94e0f55f7fc38529a9ab165786efaf7ac649a9d3
2014-06-27 08:56:46 +01:00
41e3515978
cppu: remove SAL_THROW macro
...
Change-Id: I2f1909f953846f0d0b6fb402b4beb373bba8b2a8
2014-06-05 08:17:49 +02:00
f480f26e61
Remove visual noise from cppu
...
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-27 06:12:56 -06:00
0ce0c369aa
Remove unneccessary comments
...
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-23 03:38:49 +00:00
34a44156b3
cppu: sal_Bool -> bool
...
Change-Id: I1288f1f6f38d1475b4eb5272509e479bd9f2552d
2014-02-17 17:55:18 +01:00
ac6e8ac7e4
typo fixes in comments
...
Change-Id: Idd49478d59cd062118fbf8e99d1c8bc5250013fc
2014-02-06 23:22:30 +01:00
a2c464868a
[API CHANGE] Remove UNOIDL "array" and "union" vaporware remnants from cppu
...
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-31 10:18:17 +01:00
82625bb98e
remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
...
Convert code like:
buf.append( static_cast<sal_Unicode>('!') );
to:
buf.append( '!' );
Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2014-01-07 09:43:37 +02:00
52bbd9cc00
remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
...
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-20 10:07:32 +02:00
2618ff4734
UNO interface UIKs are unused for a very long time
...
...so mark them as @deprecated more thoroughly and always force them to zero.
Change-Id: I5db2dab924fc5a4145a0e5dd055b654985ce2ef9
2013-09-04 14:37:54 +02:00
3aea6c121d
Mark as const
...
Change-Id: I7ad2a1bd29afbf4813b1ad984081935ca84ec98a
2013-08-02 10:34:43 +09:00
435f5e30c9
fdo#60724 correct spelling
...
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-15 05:10:29 +02:00
39d45390f4
removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
...
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-19 10:48:30 +00:00
8b27d78b4a
automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
...
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-19 09:00:26 +00:00
4343c49717
coverity#705137 Missing break in switch
...
Change-Id: Ie54c888e15e9564c7e1d0efb54f587a586a53631
Reviewed-on: https://gerrit.libreoffice.org/2780
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org >
Tested-by: Fridrich Strba <fridrich@documentfoundation.org >
2013-03-18 10:05:33 +00:00
f4b218d164
*ppRet cannot become non-null there out of thin air
...
Change-Id: Idd08a89dd0dcf05caeacc9e14a0a6ea10b433588
2013-03-05 21:26:30 +01:00
f1bca26afc
Remove redundant braces around for loops
...
...that had once been workarounds for compilers that did not yet support the
C++98 scoping rules for declarations in for-init-statements.
Change-Id: I51dc42982b30bf3adea6de1a10a91c0b4b4acfbe
2013-01-26 16:36:09 +01:00
36a2db3722
Replace usage of rtl_*Memory with equivalent from string.h
...
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-10-01 18:48:05 +00:00
195f17ee40
migrate some of the biggest consumer of osl_*InterlockedCount to osl_atomic
...
Change-Id: I0e6992afbeffaf3b993e6630fb396d93012890e0
Reviewed-on: https://gerrit.libreoffice.org/632
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com >
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com >
2012-09-17 14:26:12 +00:00
3638561bef
Replace usage of rtl/memory.h in cppu with their equivalent from string.h
...
Change-Id: Ia49c97ad58b21dc360a366260b62bcc6b4975dee
2012-07-29 21:30:34 +02:00
b8d5620181
Use memset and memcmp insteadof rtl_zeroMemory and rtl_compareMemory in cppu
...
Change-Id: I88976b215bc23ce5001916ccf123bc3561c2a33a
2012-07-24 20:35:21 +02:00
c3a6a57fc2
re-base on ALv2 code.
2012-06-13 14:18:29 +01:00
df6d495f2a
fix OSL_DEBUG_LEVEL > 1 build
2012-04-26 11:41:59 +01:00
61a8905c48
Reverted "Leak TypeDescriptor_Init_Impl to avoid problems at exit."
...
(This reverts commit 0ba6bd3ddc025666a6d4bb0640bf443728b23bd3.)
The problems worked-around there are no longer observed by me, so they
were hopefully only a temporal problem (the real root cause had never
been found back then). If problems start to pop up again, we'll need
to have another look at this.
2012-04-26 09:33:12 +02:00
0439af27e1
Code cleanup: ( () ) replaced by (())
2012-01-26 17:41:07 +00:00
504e01e52e
typo in OSL_DEBUG_LEVEL > 1 code
2012-01-06 09:52:42 +00:00
0ba6bd3ddc
Leak TypeDescriptor_Init_Impl to avoid problems at exit.
2012-01-05 11:58:40 +01:00
321894af2c
Explicitly initialize TypeDescriptor_Init_Impl.
2012-01-05 11:54:08 +01:00
9d54084d61
Replace dynamic array with std::vector.
2012-01-02 18:01:42 +01:00
c84a5ec4cb
OSL_ASSERT -> assert
2011-12-23 18:56:18 +01:00
d899f976ee
cppu: add visibility symbols
2011-12-19 10:14:52 +01:00
051fdda153
cppu: convert to gbuild
...
Because of unit tests is here custom target where are idl files
processed.
2011-12-19 10:14:51 +01:00
db4017cb71
The other uses of pReserved had been changed to nStaticRefCount in 2001.
2011-12-01 21:24:49 +01:00
24b4c075d5
remove include of pch header in cppu
2011-11-27 13:02:56 -06:00
d7e16fdbab
Fix compilation errors with dbglevel>1
2011-08-09 10:27:40 +03:00
35e1b53c7e
Remove OS/2 support.
2011-04-18 16:59:48 +02:00
4be7cca60b
Merge commit 'ooo/DEV300_m103'
...
Conflicts:
codemaker/source/bonobowrappermaker/corbaoptions.cxx
codemaker/source/cppumaker/cppuoptions.cxx
codemaker/source/cunomaker/cunooptions.cxx
codemaker/source/idlmaker/idloptions.cxx
codemaker/source/javamaker/javaoptions.cxx
cppu/source/typelib/typelib.cxx
idlc/source/options.cxx
offapi/com/sun/star/util/PathSubstitution.idl
offapi/drafts/com/sun/star/form/ListEntryEvent.idl
offapi/drafts/com/sun/star/form/XBindableValue.idl
offapi/drafts/com/sun/star/form/XListEntryListener.idl
offapi/drafts/com/sun/star/form/XListEntrySink.idl
offapi/drafts/com/sun/star/form/XListEntrySource.idl
offapi/drafts/com/sun/star/form/XValueBinding.idl
registry/tools/checksingleton.cxx
registry/tools/options.hxx
registry/tools/regcompare.cxx
registry/tools/regmerge.cxx
sal/cppunittester/cppunittester.cxx
sal/osl/unx/socket.c
sal/osl/w32/diagnose.c
sal/prj/d.lst
sal/rtl/source/alloc_fini.cxx
sal/rtl/source/alloc_global.c
sal/rtl/source/makefile.mk
2011-03-23 16:59:59 +01:00
5a7f6793ac
Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...)
2011-03-19 14:12:37 +01:00
a3a19632f4
Merge remote-tracking branch 'origin/integration/dev300_m101'
...
Conflicts:
bridges/source/remote/urp/urp_environment.cxx
bridges/source/remote/urp/urp_propertyobject.cxx
bridges/source/remote/urp/urp_reader.cxx
remotebridges/source/factory/bridgefactory.cxx
stoc/source/corereflection/crefl.cxx
stoc/source/javavm/javavm.cxx
stoc/source/simpleregistry/simpleregistry.cxx
2011-03-18 15:58:02 +01:00
6488e5f120
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
2011-03-12 14:19:48 +01:00