e0849330bc
Get rid of unnecessary directory levels $D/inc/$D
...
Change-Id: Ibf313b8948a493043006ebf3a8281487c1f67b48
Reviewed-on: https://gerrit.libreoffice.org/25532
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Tor Lillqvist <tml@collabora.com >
Tested-by: Tor Lillqvist <tml@collabora.com >
2016-05-27 17:10:45 +00:00
8762aa986d
clang-tidy modernize-loop-convert in b*
...
Change-Id: I8ac6eb59e213eafa78e3dc4578738b53e8adef5b
2016-04-21 10:27:17 +02:00
8c2f2e1dd7
tdf#94306 replace boost::noncopyable in ..
...
.. accessibility, avmedia, basctl, basic and bridges
remove boost from module if not needed anymore
Change-Id: I6177f8276766a0a7df1703e81bf1b448912df6e2
Reviewed-on: https://gerrit.libreoffice.org/23744
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Stephan Bergmann <sbergman@redhat.com >
2016-04-04 06:54:36 +00:00
4a1edf626a
More loplugin:nullptr automatic rewrite (within templates)
...
Change-Id: I9bc06cfb5eeb38fd7ae7fb25f876ea9f96e4a65a
2015-12-10 17:34:31 +01:00
520cd4e688
loplugin:nullptr (automatic rewrite; Mac-specific code)
...
Change-Id: If07e4116c43cbddefbf443c4cbd754dde48c90a0
2015-11-10 16:20:34 +01:00
655c2d5193
loplugin:nullptr (automatic rewrite)
...
Change-Id: Ib05cdd5a0f2a2e0f4c08504d89d0b6201cbcb429
2015-11-10 10:31:17 +01:00
bff4c13475
Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY code
...
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-12 17:52:26 +02:00
f51994efcd
cppcheck: noExplicitConstructor
...
Change-Id: I4bdbcd9debdf6a385d3b6f199b71b09d7e27b0fa
Reviewed-on: https://gerrit.libreoffice.org/17810
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2015-08-17 20:14:32 +00:00
71b809959b
remove unnecessary use of void in function declarations
...
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-04-15 11:47:12 +02:00
26655d0909
Reduce to static_cast any reinterpret_cast from void pointers
...
Change-Id: I19b86fba87df57c4c65c658d051b664c527214eb
2015-03-31 13:12:15 +02:00
2b55846a33
loplugin:deletedspecial
...
Change-Id: Ifac86f4d7e637e9fdbce7e60f6d383e7dca69508
2015-02-07 12:35:56 +01:00
331faca18e
Extract loplugin:redundantcast from loplugin:cstylecast
...
Change-Id: I08f17dd9cc092206083ff41bbbc178e0322e86d0
2015-01-29 22:21:04 +01:00
93afb9ad7f
Some more loplugin:cstylecast: bridges
...
Change-Id: Ic224abf67acb212ee20ccf9eb81b5ed5edf851b9
2015-01-20 09:06:45 +01:00
8b9968a262
fdo#72755: Only use double mmap as fallback
...
...when write+exec mmap fails (due to SELinux deny_execmem). This avoids the
tmp file creation in environments that don't need it and which in turn have
problems of their own with that tmp file business.
An alternative would be to first check whether SELinux deny_execmem is enforced
and only then try double mmap first. An advantage could be that it might avoid
false SELinux alerts in that case. The disadvantage would be the overhead of
introducing a conditional dependency on libselinux here. And given that for one
deny_execmem typically appears to be off by default (as at least both
contemporary GNOME desktop and OpenJDK malfunction when it is enabled), and for
another I guess deny_execmem could still change its value between the time of
checking for it and the time of requesting a write+exec mmap, that just does not
seem worth it.
Change-Id: I3560803139b630557b6219d3db52945c7e0cdcd2
2015-01-16 13:43:01 +01:00
063a511583
Revert "Revert "boost::unordered_map->std::unordered_map""
...
This reverts commit 3976739f2378391fa09379c48844daf0e2790f5b,
the problem mentioned there was caused by a different commit, and
has meanwhile been fixed.
2015-01-07 14:41:11 +01:00
3976739f23
Revert "boost::unordered_map->std::unordered_map"
...
as an experiment to see if that's somehow the cause of
NEXT An uncaught exception of type com.sun.star.sdbc.SQLException
NEXT - General error: java.lang.UnsatisfiedLinkError: com.sun.star.sdbcx.comp.hsqldb.StorageFileAccess.isStreamElement(Ljava/lang/String;Ljava/lang/String;)Z
NEXT ##Failure Location unknown## : Error
Test name: HSQLDBTest::testEmptyDBConnection
NEXT An uncaught exception of type com.sun.star.sdbc.SQLException
NEXT - General error: java.lang.UnsatisfiedLinkError: com.sun.star.sdbcx.comp.hsqldb.StorageFileAccess.isStreamElement(Ljava/lang/String;Ljava/lang/String;)Z
under clang
This reverts commit ce7f442bd0b600c0acc74d4757e894a2ba382c53.
Change-Id: Ieed0be5721953b9644e4be411173e0ea73f33ed8
2015-01-06 09:15:14 +00:00
ce7f442bd0
boost::unordered_map->std::unordered_map
...
Change-Id: I3a16703727f1a421e0ed18079e14219a4feeb8c8
2015-01-05 12:37:48 +00:00
35f7556650
add link to mkstemp coverity warning wrt threading fiasco
...
Change-Id: Ic8fea32a163ca5e85ac3e2a34d04e4fa1a1943f9
2014-12-15 12:30:42 +00:00
1276076ac8
ibridges: convert all legacy osl/diagnose.h assertions in source/cppu_uno
...
Change-Id: I4e78fac76b6bb4923e3b680d910afe5bb9640c33
2014-11-21 17:32:26 +01:00
d32be3ace8
fdo#86023 - O[U]String needs a 'clear' method
...
Added clear() method to OString and OUString class, Updated appropriate call-sites.
Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac
Signed-off-by: Stephan Bergmann <sbergman@redhat.com >
2014-11-14 09:20:38 +01:00
269b0b4081
Avoid -fsanitize=signed-integer-overflow
...
Change-Id: Icec67e6eb57605102cabf494d3e2bb6249d785c7
2014-11-11 08:28:52 +01:00
07f9a7dc83
some coverity false positive markup efforts
...
Change-Id: Id17c3426cb4a5913881201a0bf2f569ca5002303
2014-11-03 20:44:57 +00:00
22730b9f48
The unused source_arena arg to alloc/freeExec can just be null
...
Change-Id: I16f8a9e8f421215fe5d392ba3f1f304618d70174
2014-09-26 10:19:58 +02:00
9c9f0ea2c3
Include RTTI in generated vtables for ubsan's vptr-based checks
...
...though only on gcc3_linux_x86-64 for now.
Change-Id: Id90554425e78b38a5a97149f2a7d3ac04cbe0c9b
2014-08-07 18:21:19 +02:00
14ab8c3f1d
bridges: remove SAL_THROW macro
...
Change-Id: I2daafd711aedab17b6c13fde95c8af5f49d38a7c
2014-06-05 08:17:49 +02:00
96b129052e
Revert "CID#705982 ensure umask for mkstemp"
...
This reverts commit 9ab99483808bad973363f1f27bb548c8628ace1d. Coverity warning
about mkstemp without umask appears to be bogus (cf.
<https://communities.coverity.com/message/6516 > "Why are uses of mkstemp
'without securely setting umask first' being flagged?) and calling umask is not
MT-safe, see fdo#60338 "FILESAVE: Saved files have incorrect permissions on
linux."
2014-05-13 10:46:00 +02:00
14d22ce271
coverity#707667 Uninitialized pointer field
...
Change-Id: I6e6627ee8104501f078aa967a16f210abb1d75bd
2014-05-11 11:52:33 +01:00
f598a018f1
Clean up function declarations
...
Change-Id: I5d3ed0a266f327dbc8d506090221c43ef89fbcc0
2014-04-08 10:35:57 +02:00
fc320c41b5
bool improvements
...
Change-Id: I215bb8c484785175c297953a2ef385b2caf87bee
2014-01-28 20:26:30 +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
c69b6417af
fdo#72598 Remove SunStudio cruft from code base
...
Change-Id: Ia6799c852eb95d496fbc8dcfdabde62dffc263a6
Reviewed-on: https://gerrit.libreoffice.org/7066
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2013-12-13 09:07:07 +00:00
9ab9948380
CID#705982 ensure umask for mkstemp
...
Change-Id: I5c67346d09d04a2d1a781f8fee07c84004aac960
2013-09-12 13:09:04 +01:00
eeaa2ecd1e
remove unused component_canUnload functions
...
Change-Id: Id3f41e2a620c47bb848718d0fc994739be2d64fc
2013-04-19 16:52:03 +02:00
1946794ae0
mass removal of rtl:: prefixes for O(U)String*
...
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).
Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
7dac241ca0
Remove RTL_CONSTASCII_(U)STRINGPARAM in bridges
...
Change-Id: Id8777ee7f587846399e95cf3b1b37d669a76bae5
Reviewed-on: https://gerrit.libreoffice.org/3139
Reviewed-by: Christina Roßmanith <ChrRossmanith@web.de >
Tested-by: Christina Roßmanith <ChrRossmanith@web.de >
2013-04-02 20:25:44 +00:00
aa753f01ba
-Wunused-macros
...
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
e5e8136c6a
re-factor lifecycle issues in FormattedFieldWrapper.
...
XAggregation.idl has some rather helpful comments on how this
should work.
2012-11-27 12:55:11 +00:00
17ff7b41d1
re-base on ALv2 code. Includes:
...
Patches contributed by: Armin Le Grand.
#118558# Correcting OLE attributes of LO3.4 at load time by loading as OOo3.3, details see task.
http://svn.apache.org/viewvc?view=revision&revision=1195906
#118485# - Styles for OLEs are not saved.
http://svn.apache.org/viewvc?view=revision&revision=1182166
#118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles
http://svn.apache.org/viewvc?view=revision&revision=1293316
#119337# Solves the wrong get/setPropertyValue calls in
SvxShapeText (and thus in SvxOle2Shape)
http://svn.apache.org/viewvc?view=revision&revision=1344156
Patches contributed by Mathias Bauer (and others)
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394707
http://svn.apache.org/viewvc?view=revision&revision=1394326
cws mba34issues01: #i117717#: remove wrong assertion
http://svn.apache.org/viewvc?view=revision&revision=1172349
Patch contributed by Herbert Duerr
goodbye Registration and License dialogs, don't let the door hit you
http://svn.apache.org/viewvc?view=revision&revision=1172613
help gcc 4.6.0 on 32bit ubuntu 11.10"
http://svn.apache.org/viewvc?view=revision&revision=1245357
Do not add targets for junit tests when junit is disabled.
Patch contributed by Andre Fischer
http://svn.apache.org/viewvc?view=revision&revision=1241508
Revert "sb140: #i117082# avoid unncessary static class data members
commit 21d97438e2944861e26e4984195f959a0cce1e41.
remove obsolete FreeBSD visibility special case.
retain consolidated BSD bridge code, remove OS/2 pieces.
2012-11-15 16:06:08 +00:00
595771d00d
More ::rtl::OUString -> OUString in bridges
...
Change-Id: Ibd29c68077dd8f27c95cd4cb62cd8dad0e18aacf
Reviewed-on: https://gerrit.libreoffice.org/976
Reviewed-by: Radek Doulík <rodo@novell.com >
Tested-by: Radek Doulík <rodo@novell.com >
2012-11-07 12:09:31 +00:00
da67a17d2d
::rtl::OUString -> OUString in bridges
...
Change-Id: I3a4fa7b108c58f100d2c8a586ec6c76af902e138
Reviewed-on: https://gerrit.libreoffice.org/974
Reviewed-by: Radek Doulík <rodo@novell.com >
Tested-by: Radek Doulík <rodo@novell.com >
2012-11-07 12:06:45 +00:00
750fc20611
replace remaining InterlockedCount() with inlined version
...
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c
Reviewed-on: https://gerrit.libreoffice.org/671
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com >
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com >
2012-09-25 01:55:38 +00:00
61c0a3a63d
switch bridges to gbuild
...
Change-Id: Ia19ff61f1f7fb446298472acd6722b57ddaeddec
2012-09-22 08:15:30 +02:00
f2ec771cd9
add missing exports
...
Change-Id: I4cfbcedde049ae205997815786c46941937e2cf7
2012-09-22 08:15:28 +02:00
bdc909b07d
re-base on ALv2 code.
2012-06-19 18:00:37 +01:00
3770bbbdba
Remove superfluous empty lines on top
...
More than two lines are removed for readability.
Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-06-09 04:57:58 +02:00
c0ab229dc7
Uniquify uno_initEnvironment and uno_ext_getMapping in the static linking case
2012-03-21 00:00:04 +02:00
0439af27e1
Code cleanup: ( () ) replaced by (())
2012-01-26 17:41:07 +00:00
7c704c78d3
Removed some unused parameters; added SAL_UNUSED_PARAMETER.
...
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.
2012-01-21 15:21:16 +01:00
aee436760e
function component_canUnload is exported
2011-12-27 15:44:42 +01:00
b8b22391ae
only use posix_fallocate() if it's actually available
2011-12-21 16:17:45 +01:00