Commit Graph

12731 Commits

Author SHA1 Message Date
94ffeed68f coverity#737807 Uncaught exception
Change-Id: Ibee829b4d2cc4d93453f47cc59dfbaec012ffc6e
2014-02-25 10:45:26 +00:00
76e14408ab coverity#737805 Uncaught exception
Change-Id: I61ca610f7183d7e72a5b36fb0bf1fe0fcd1210fe
2014-02-25 10:45:26 +00:00
47f4eead5d coverity#737802 Uncaught exception
Change-Id: I844e712f82890a4018c4ae45e7d79daaf4f6937a
2014-02-25 10:45:26 +00:00
75864819af coverity#737772 Uncaught exception
Change-Id: Idbff7a4dd1da93d16f85325ae992efce0b37dfee
2014-02-25 10:45:26 +00:00
c47496fdf9 Add config_libraries.h definitions to get library names easily.
Works for libmerged too, so we can get rid of LIBO_MERGELIBS.
And remove few more #defines in vcl.

It's generated by gbuild, so probably abusing config_host directory.
Open to improvements.

Change-Id: I87ab109bf109e42751766011daf076e9cdf8f5ee
2014-02-25 09:05:09 +01:00
523fcec55d Replace deprecated std::auto_ptr with boost::scoped_ptr
Change-Id: I72b0e8b07bd7309a23d5635b7e0b7dbdc9c2c721
2014-02-25 11:15:06 +09:00
76b114f849 implicitboolconversion: warn about implicit conversion of call args to bool
...to be able to find problems like 6e0bdf04add338b7d5b29fc7b3fc9f08cfd5e96f
"sal_Bool arg of SetUseImagesInMenus was abused to squeeze '2' through it"
earlier when converting occurrences of sal_Bool to bool.

Restricting this check to function call arguments avoids too much noise while
hopefully still catching all the relevant problems.

(This check partially overlaps the pointertobool check, so implicit conversions
from pointers to bool call arguments will now generate two loplugin warnings,
but that's harmless.)

Change-Id: I0b03b1d1615aaf8bc18e7a84c56fff3ef9903508
2014-02-24 17:25:05 +01:00
33740b7d5a Replace exisiting TriState, AutoState with more generic TriState
Change-Id: Ida05478aae5a379775c671e0c2f2851d820d78be
2014-02-24 12:27:32 +01:00
b7259532d8 Remove unnecessary bool2any
Change-Id: Ie2caee1d5a7912011d76172539c2f8f37eaee5cf
2014-02-24 08:08:00 +01:00
ad73967e99 Remove unnecessary extractInterface
Change-Id: I4848bf84615274ad5732223a354fb7a6b845d9a8
2014-02-24 08:08:00 +01:00
3b45f92ba6 Resolves: #i119985# date/time is displayed as different language
(cherry picked from commit 977a050343fc836fc3e7bd876afaee931c47252c)

Change-Id: I1f31f6731353b2d8b8fd684fc6ea29becfd4a814
2014-02-23 21:01:19 +00:00
8d5def6dc4 coverity#707114 Uncaught exception
Change-Id: I556c326e537faeb3d125a0a8f1cb0c749df29f24
2014-02-23 15:33:48 +00:00
379b98741a coverity#707113 Uncaught exception
Change-Id: I612503ef40682820821dbf61dd12afbc62e4eb39
2014-02-23 15:32:57 +00:00
66c8930012 coverity#704737 Dereference after null check
Change-Id: Icf30f9acf70c0dd367bad3f5711e71d9ab125ce9
2014-02-23 14:47:18 +00:00
6cccfd6c63 coverity#704736 Dereference after null check
Change-Id: Ib11b59696135f29375ec53332c526f0b5bcd638d
2014-02-23 14:45:55 +00:00
ad346fb791 coverity#704735 Dereference after null check
Change-Id: Ib2804949024dc3967d3eb2bcc7a82844f225be2f
2014-02-23 14:43:37 +00: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
599472a13e at least fix the crash when calling SdXImpressDocument::dispose for now
Can an experienced Impress developer please check the crash?

Change-Id: I84f532dde6aa61b997b949f6d7ef55026ced604c
2014-02-23 01:59:40 +01:00
2955607604 loplugin:literaltoboolconversion
Change-Id: I8e99c9c2566af224566c704982b43bf8565f49a2
2014-02-22 11:57:00 +01:00
c7a6e0645a coverity#1132721 fix exception specs
Change-Id: I1c499f8b994d29e265a66f4219d4c3fddb237a89
2014-02-21 15:30:27 +00:00
ad0c4bf579 Related: #i123197# Fixed selection problems when switching...
between normal and master mode.

(cherry picked from commit 163d414311b0c8bcb1b0ad7c7cbf364e0ad4e4c4)

Change-Id: Ibabee4c67367c367a9ce1c5afffa76efa3f66bd7
2014-02-21 15:30:24 +00:00
7be107378b coverity#738813 Uninitialized scalar field
Change-Id: Ibd63cdba123a1171b40780bb8a9ab6ef1af6e8a0
2014-02-21 12:40:24 +00:00
11a671ac5b coverity#738815 Uninitialized scalar field
Change-Id: I64379b438718ac1043fe7583a9eba966d8d83853
2014-02-21 12:40:23 +00:00
e8f8f24c84 vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21 12:53:51 +01:00
b7180bd14f editeng: sal_Bool->bool
Change-Id: Ia9b76985ea0b9c511208b8283c8487c89aa67b88
2014-02-21 12:19:24 +02:00
32ef676504 editeng: sal_Bool->bool
Change-Id: I1b215ef78bcade675a2f80def0d6d5afe0ff3d2c
2014-02-21 12:19:23 +02:00
4692d28e90 sal_Bool->bool
Change-Id: I83a9267cc461c2921b5da04a1122539ba0ac7d2d
2014-02-21 12:19:19 +02:00
5c3a6d383e callcatcher: update unused code
Change-Id: Ie4df15ab292df51274d983d31ce8e21e0549de81
2014-02-21 09:05:21 +00:00
dbfc495a9a Add config option used when we try to link one huge object file.
In theory, it should not be used, we use it now to mark duplicated
symbols from sdi slots as weak. See idl/source/objects/types.cxx.

Change-Id: I3c6fccfb96884df6b9e6eb35b8615ba4d66ca208
2014-02-21 07:52:24 +01:00
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
52e99e9e95 Rename functions to avoid name collisions more generally.
Luckily, in this case it's easy to find the only place where we load the symbol.

Change-Id: I224fd1e08f268095f8be58b089a643d434bc7a98
2014-02-20 11:24:21 +01:00
bce04e5193 cid#1078827 Dereference before null check
Change-Id: Id35992113a8e8f2d06bda7f2287227afeec62313
2014-02-20 09:31:13 +02:00
c39c621978 cid#1078825 Dereference before null check
Change-Id: I9daa1e3a294db0b205fe5b2ec247bbf550d2dca1
2014-02-20 09:31:13 +02:00
12f1faf7bf svl: sal_Bool -> bool
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
2014-02-20 08:17:00 +01:00
b64e2d2a30 coverity#738822 mnTemplate is unused
Change-Id: Ic9c4a520a5a3a849a16f68e033bae9ba83088f6e
2014-02-19 16:53:15 +00:00
d9568be3af coverity#738826 Uninitialized scalar field
Change-Id: Ib76b31ffb4c9708dc5f5d219c7a861a32f8851ff
2014-02-19 16:53:15 +00:00
4db1cdd41c coverity#738827 mbIsDeselectionPending unused
Change-Id: Icfe7a8f49853ec7250de1c4c578038787eb8f241
2014-02-19 16:53:15 +00:00
973b47a336 unotools: sal_Bool -> bool
Change-Id: I8051c0756e0474a5b4f748e0aa15a9922e82ea97
2014-02-19 12:47:07 +01:00
9ad3fc29dd Avoid app specific CreateDialogFactory code for non-DESKTOP.
As happened in 7e9ac5952711400ad856b3328c5cc00c05cec6f2 for cui library.

Change-Id: If51201eb452d4b84729b37949fb9b949020b47b8
2014-02-19 12:26:41 +01:00
814f6e4f19 cid#736800 dereference before null check
Change-Id: I51eb6331d74c1484cf12a2a1810485dd8b927a32
2014-02-19 09:42:17 +02:00
14829a84ff cid#736797 dereference before null check
Change-Id: Ib279f66fcc349c75d7b3d26ba80356eea1697295
2014-02-19 09:42:16 +02:00
12b78edde9 Remove from option-dialog the CurrentPage-option (fdo#71601)
Change-Id: I28a75468b1f43e0219fa0f03fe89601a77d3cd4d
Reviewed-on: https://gerrit.libreoffice.org/7842
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-18 20:35:38 +00:00
3d66adaa77 Typo (a/A)dditionaly -> (a/A)dditionally
Change-Id: Ic4451b45b86f14bb2fab507503a6fa1e8f515b66
2014-02-18 21:09:36 +01:00
3b729ab35b Resolves: #i123468# Added SdrEndTextEdit before replacing EmptyPresObj...
also secured ReplaceObjectAtView to check for active TextEdit, assert this and
make an emergency correction

(cherry picked from commit 623cd778689bd0851652b2db00b24c308dfb657a)

Conflicts:
	svx/source/svdraw/svdedtv.cxx

Change-Id: I0e9ae1b1cd84e04c37c4de38aca7752804782384
2014-02-18 15:18:07 +00:00
042725a5da Stick to a single O[U]String hash function
8f8bc0dcf3bc253ae49159d52db049767f476ced "Move string hash function into String
class" had introduced a new getHash64 that, besides returning sal_uInt64 instead
of just sal_Int32, didn't do sampling of only a handful of characters, but
always computed the hash over all characters (as the usage in SfxItemSet and
SdPage appears to require for either performance or approximated correctness).

However, it would be advantageous to keep the stable URE interface as small as
possible.  Now, O(1) sampling was apparently considered state of the art when
the rtl string classes were first created, closely copying java.lang.String,
which at that time demanded sampling for hashCode(), too---but never sampling
more than 15 characters, with the obvious (in hindsight, at least) performance
catastrophes, so they changed it to O(n) somewhere along the way.

Based on that, this commit changes the existing hash functions to not do
sampling any more, and removes the newly introduced -64 variants again.  (Where
the extended value range of sal_uInt64 compared to sal_Int32 was hopefully not
vital to the existing uses.)

The old implementation used sampling only for strings of length >= 256, so I did
a "make check" build with an instrumented hash function that flagged all uses
with inputs of length >= 256, and grepped workdir/{Cppunit,Junit,Python}Test for
hits.  Of the 2849 hits encountered, 2845 where in the range from 256 to 295
characters, and only the remaining four where of 2472 characters.  Those four
were from CppunitTest_sc_subsequent_filters_test, importing long text into a
cell, causing ScDocumentImport::setStringCell to call
svl::SharedStringPool::intern, which internally uses an unordered_set.  These
results appear to justify the change.

Change-Id: I78fcc3b0f07389bdf36a21701b95a1ff0a0d970f
2014-02-18 13:08:58 +01:00
d13545987a callcatcher: update unused code lists
Change-Id: Ie975f8a970eec63b593933ebb2394db76d537c51
2014-02-18 10:10:01 +00:00
05f742d28b comphelper: sal_Bool -> bool
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
2014-02-17 17:55:19 +01:00
939e23d18d cid#705877 dereference before null check
Change-Id: I78d51802fa5709d1aaccb3a73929b39bf75b4219
2014-02-17 14:04:33 +02:00
a519296007 Resolves: #i42894# added support for <presentation:animations>...
at import and creation

(cherry picked from commit 0f11a9d487744af6c50e9f1d547c22cd4bdeab48)

Conflicts:
	sd/source/core/EffectMigration.cxx
	sd/source/ui/dlg/animobjs.cxx
	sd/source/ui/unoidl/unoobj.cxx

Change-Id: Ib498bf718d40501cbab71a700342343df68a6ee9
2014-02-17 10:53:36 +00:00
d024fe60dc fdo#63154 Remove unused solar.h reference in sd.
Change-Id: I3dca2ffe3f94bedfea954bd83e84c724fb564ec9
Reviewed-on: https://gerrit.libreoffice.org/8063
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-02-15 15:27:01 +00:00