Commit Graph

1940 Commits

Author SHA1 Message Date
8aa7394dfb don't warn on Color streaming missing Solar Version
Change-Id: I47e6a21fde77028c7a717b095883497888806501
2015-11-20 11:54:06 +00:00
048a32d903 use unique_ptr for pImpl in tools/
Change-Id: I7ac7eca32a67524f6c87696c16b16128e6d8518b
2015-11-17 13:21:49 +02:00
e625a440a4 Don't assume sal_Unicode is unsigned short
Change-Id: Idcfa500c491fcedfff7d4c6e1bef25fd2d948d36
2015-11-17 10:42:37 +01:00
61f168d987 Add SvStream::ReadUtf16 (don't assume sal_Unicode is unsigned short)
Change-Id: I74f34e3389582617fa83f8f4a3d6867cf87189e1
2015-11-17 10:36:13 +01:00
f115b0cf1b underscores are reserved
Change-Id: Iee60389ccc9e348db6ed00e48e32b1e86f17b530
2015-11-13 18:01:04 +01:00
2af4da0ea9 improve compile time SSE2 detection, fix broken android build
Prereq. to enable runtime SSE2 detection is that the compiler
supports it in the first place. MSVS and GCC use different
compiler flags for this so use __LO_SSE2_AVAILABLE__ to make this
build platform independent.

emmintrin.h is unavailable on ARM Android so include this and
compile the SSE2 specific code only when we are sure we can build
SSE2 code (__LO_SSE2_AVAILABLE__ is defined).

Change-Id: I212c4e0b99a314d087b9def822a81325b25f3469
2015-11-13 16:37:29 +01:00
726ce582ab remove SSE detection code (but keep SSE2)
For corner case CPUs out there that support SSE and not SSE2 it
makes more sense to use the "fallback" code path instead of
writing a SSE only version. For this reason detecting SSE is not
relevant anymore - so removing it.

Change-Id: I3f1425af2cb5cdf9fba699e2996014598a15b5c1
2015-11-13 14:56:13 +01:00
154bcd887d tools: runtime SSE/SSE2 detection
Change-Id: I29330061e2986ec2ae899c2f3a63d0eadd9cc194
2015-11-13 14:10:10 +01:00
d7627da5c9 stream version doesn't matter here
Change-Id: I318b0268143bef376f324afdd42692991c3bab4c
2015-11-11 17:21:22 +00:00
2b4d7be948 stream version doesn't matter here
Change-Id: I5871028b6c32194257d3a5f8bdf838cd0c277349
2015-11-11 13:08:56 +00:00
fa91dd31f3 5th step to remove tools/rtti.hxx
tools/rtti.hxx removed
completed the interface of some Sdr.*  Items
and removed pseudo items

Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a
Reviewed-on: https://gerrit.libreoffice.org/19837
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-11 10:49:30 +00:00
db17d3c17c new loplugin: memoryvar
detect when we can convert a new/delete sequence on a local variable to
use std::unique_ptr

Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc
Reviewed-on: https://gerrit.libreoffice.org/19884
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-11 07:16:20 +00:00
1c4f33b5d8 loplugin:nullptr (automatic rewrite)
Change-Id: Ia5acfb564f913d52cd25b5d64d06b5280b94cb72
2015-11-10 10:31:54 +01:00
a3db4959b0 com::sun::star->css in tools/ and ucb/
Change-Id: I695ff721efd63b8ca0dd3c61ba5a4fef2c43cde6
Reviewed-on: https://gerrit.libreoffice.org/19854
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-09 11:14:44 +00:00
c4b71b0885 tdf#57950 Replace chained O(U)StringBuffer::append() with operator+
Change-Id: Ieef535e34f5acd9139c3ee1e9e6c650fc5fe92e4
Reviewed-on: https://gerrit.libreoffice.org/19842
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-11-08 19:04:54 +00:00
d1c91627d9 Return early
Change-Id: Ifef410c1495d1a2b99693f4669d81d6293f74f6a
Reviewed-on: https://gerrit.libreoffice.org/19834
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-11-06 23:20:39 +00:00
e01e03ae6d loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I88a3396746bf12c08265600072a368c9bbf5744e
2015-11-06 09:38:10 +01:00
13d9272675 (Poly)Polygons: sal_uIntPtr to sal_uInt32/sdt::size_t/enum
Change-Id: I167d656f419ddbeb72960b8510fb8084605d4d5c
2015-11-05 20:32:47 +01:00
e35ef25029 class PolyOptimizeData is never instantiated
Change-Id: I136b3b1d572e4401d89d50f543150d71dbe44d16
2015-11-05 20:32:47 +01:00
b75bc4b5de Date: avoid temporary conversions to sal_uIntPtr
Change-Id: Ib52c5d1a55d17c572fd5be9a3ce36c6de7965220
2015-10-28 14:08:34 +01:00
1d927b23df Date: group common code
Change-Id: I4d1bf6591d54621c33dc2ff0be0ecb59f1839581
2015-10-28 14:08:34 +01:00
a3de32acc0 Rename (private) Date::init and reuse it
Change-Id: I3123876860cf6cce1e16c8f516f3d08fa7e15d83
2015-10-28 14:08:34 +01:00
24c28ac7b0 Date: use support function for mapping years to days
and reduce scope for other local support functions.

Change-Id: Id0d6b9a04ff67620f6dca39d62443a3f191d75ee
2015-10-28 14:08:33 +01:00
8e369625a4 Avoid intermediate cast to sal_uIntPtr
Change-Id: Ia7b5f519e381318f1d1cd6d0f982d22e8bbdffa7
2015-10-28 14:08:33 +01:00
7e89e28274 sal_uIntPtr to sal_uInt64, sal_uLong to sal_Size for streams
Change-Id: I062f1f6c5b20ca47734a9a3cd1a229d51763a206
2015-10-27 13:59:09 +01:00
644487a115 loplugin:unusedmethods
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861
Reviewed-on: https://gerrit.libreoffice.org/19231
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27 08:20:43 +00:00
6017a8ee74 loplugin:defaultparams
Change-Id: Ia24ec98bfec36aa758fb1c5a6ec095c5047242a2
2015-10-20 11:47:14 +02:00
ca49ea419c loplugin:defaultparams
Change-Id: I3c9be2a7e192fea7c415721872a803659a300282
2015-10-19 17:51:58 +02:00
c8479bdc5b convert DBG_ASSERTWARNING to SAL_WARN_IF
I know the comment in debug.hxx said to use SAL_INFO, but SAL_WARN makes
much more sense.

Change-Id: I3d81f9db89ef8cebe1e4f2983941d69b4c7e6b7d
2015-10-19 13:08:29 +02:00
39e63bfac5 convert remaing DBG_WARNING to SAL_INFO
and drop the macro

Change-Id: I452ca373d0c277166e94928c1bce78bf37e39d7c
2015-10-19 13:08:29 +02:00
bd2f6ab505 Reuse FRound from tools/helpers.hxx
Change-Id: I74ec4fc6a685c59dbc79978bf8a9afff0a1f9501
2015-10-15 21:42:59 +02:00
b4b7703e43 cppcheck:variableScope
Change-Id: I9b671637fbe0f32e695d22b74bfb40a39a9fe884
Reviewed-on: https://gerrit.libreoffice.org/19364
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-15 06:49:23 +00:00
b36963c0a6 Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12 17:52:29 +02:00
f76b3dd039 Move SolarMutex down from tools to comphelper/ to make life easier.
Change-Id: I7dd21f30daa27e5de2848eb16aee9a610dd629d5
Reviewed-on: https://gerrit.libreoffice.org/19271
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-10-09 14:51:44 +00:00
bbfc031333 tdf#57950 Replace chained O(U)StringBuffer::append() with operator+
Change-Id: Id9bc24079d3840277d6fc10197a4f27373f4bd25
Reviewed-on: https://gerrit.libreoffice.org/19225
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-08 06:20:02 +00:00
8ea85c264f Add isSchemeEqualTo(), isAnyKnownWebDAVScheme() to INetURLObject
...which will be used when rebasing
    <https://gerrit.libreoffice.org/#/c/17189>
"tdf#82744: fix WebDAV lock/unlock behaviour - part 3" on top of
 d3de490437df4c9093f32e97fc185066d64c0f46
 "Add vnd.sun.star.webdavs URL scheme."

Change-Id: I19bd715d755a6f070b95ce897d8a1bbb4910d537
Reviewed-on: https://gerrit.libreoffice.org/18151
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2015-10-05 11:11:24 +00:00
39a097f52e clang-analyzer-deadcode.DeadStores
Change-Id: Ic4aba87fa750824a366fba18fcfa46fa11d31e78
2015-10-05 10:00:09 +02:00
f7cee96168 clang-analyzer-deadcode.DeadStores
Change-Id: Iec5a5fe5f14a9dcdbd7644bf67d4a985e42cd957
2015-10-05 10:00:09 +02:00
946cf1b7a2 clang-analyzer-deadcode.DeadStores
Change-Id: Ia1f6433000fe48ec6249b1cfb26668b665b2d15a
2015-10-05 09:47:52 +02:00
85f93697de tdf#94559: third step to remove rtti.hxx
replaced use of PTR_CAST, IS_TYPE, ISA in
oox, reportdesign, svl, svtools, svx, tools

Change-Id: I1f85ff92267a0668eba625fa61b4f07feb8f3d4e
Reviewed-on: https://gerrit.libreoffice.org/19002
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-10-01 08:32:26 +00:00
82f0a4f930 Fix typos
Change-Id: I3926eca56ac9f54f9ddbf88610888ce97cf00b34
Reviewed-on: https://gerrit.libreoffice.org/18990
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-30 10:41:48 +00:00
a2a5187a8f Fix typos
Change-Id: Ifddd2533b767924791338555031b848c59980c52
Reviewed-on: https://gerrit.libreoffice.org/18989
Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
Tested-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-09-29 22:19:19 +00:00
34180700b2 loplugin:removeunusedmethods, remove unused stuff
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
2015-09-29 15:08:43 +02:00
b72eea1dbf coverity#1325052 Logically dead code
since

commit 984780243c9a1ab1242f3af719c6dca3ddacf67a
Author: Stephan Bergmann <sbergman@redhat.com>
Date:   Thu Sep 17 19:15:26 2015 +0200

    HEADER_FIELD_TEXT is the only used HeaderFieldType

    Change-Id: Ia4e5554e1aaed9e821bdea18b9b3acff001dd6e7

Change-Id: Id56790fd5c953d4d7f4a235c7d016c807ff37038
2015-09-29 11:10:28 +01:00
1f1b160902 coverity#1325051 Logically dead code
since

commit 984780243c9a1ab1242f3af719c6dca3ddacf67a
Author: Stephan Bergmann <sbergman@redhat.com>
Date:   Thu Sep 17 19:15:26 2015 +0200

    HEADER_FIELD_TEXT is the only used HeaderFieldType

    Change-Id: Ia4e5554e1aaed9e821bdea18b9b3acff001dd6e7

Change-Id: I94a1cba6e9813b7192a03ea59948bb40438c341b
2015-09-29 11:10:28 +01:00
d66d6d7059 valgrind: use of uninit data in sw_globalfilter test
Change-Id: I4d327d1e65c8ef5b9dede18ac55f1658d8e3569a
2015-09-21 10:12:18 +01:00
a12c083cad Some follow-up #include clean-up
Change-Id: I4e91748701becfc92a379a490c08e9c7950007e3
2015-09-18 07:51:35 +02:00
9ce08dcc2e writeHeaderFieldBody is only called with bInitialSpace = false
Change-Id: Ib7fe0bee6339bfad0f63794fec3dfb3f24333ff4
2015-09-17 22:22:34 +02:00
a68b0ef5c1 CODING_QUOTED has become unused
Change-Id: I012b7d407cb50ba01fcc3b98ea2fe1968ec74a28
2015-09-17 22:22:33 +02:00
8fdd280930 CONTEXT_TEXT is the only unused Context
Change-Id: Ibacc88a60a313fd503935deef93881236cd8ec7f
2015-09-17 22:22:33 +02:00