389374 Commits

Author SHA1 Message Date
Julien Nabet
05ff3d112b Let's use the iterator return by erase method of iterator list
and avoid to retrieve list->begin and loop from the first element

Change-Id: I536b7a03c4033b02a7226d25f64764c10c28bdd0
Reviewed-on: https://gerrit.libreoffice.org/23126
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-11 07:18:59 +00:00
Markus Mohrhard
e94d5233dd work on sane lifecylce for SfxFilter
all SfxFilter instances should now be hold inside of a std::shared_ptr.

This fixes a number of huge memory leaks in the test framework and
removes one huge source of memory issue in sfx2. SfxMedium contains a
pointer to the SfxFilter but does not own. Therefore it is required that
any SfxFilter belonging to a SfxMedium lives longer. However this seems
to work mostly by hoping that all SfxFilter instances are stored in a
global array. As we have seen with the tests this is not true (there are
also some cases inside of sd that seem to not follow that pattern as
well).

Change-Id: I12fd04a504cc4efc0a94967abd91c6fe2c6a8ce8
Reviewed-on: https://gerrit.libreoffice.org/23140
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-11 06:38:15 +00:00
Markus Mohrhard
fb827f2a34 fix a few memory leaks in the calc test framework
Change-Id: Ic32d31913f40636e2b579d46ecf287110090772b
Reviewed-on: https://gerrit.libreoffice.org/23139
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-11 06:37:25 +00:00
Markus Mohrhard
63bb0e891e allow to call xpath expression on different files in container
Change-Id: I0b95ac19e2f6a01cadb4de32937282f489dbca7f
Reviewed-on: https://gerrit.libreoffice.org/23137
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-11 06:36:18 +00:00
Markus Mohrhard
a63c9c5de4 just take a reference
Change-Id: I9c156cc931fa1312df3588d86e2c592c8fd79c30
Reviewed-on: https://gerrit.libreoffice.org/23136
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-11 06:35:35 +00:00
Markus Mohrhard
1a474b37ef add assert to prevent memory leak
This is on my way of tracking a nasty memory leak in the change tracking
export code.

Change-Id: Ia46ef201f757dcd7f8764c3adf487de7fec58019
Reviewed-on: https://gerrit.libreoffice.org/23138
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-11 06:35:06 +00:00
Yousuf Philips
129d199d27 tdf#97906 Ensure that F4 isnt used in Writer for Data Sources
Change-Id: I6bc9aa925e7ea0a9d1ee24605127b2e005811aab
Reviewed-on: https://gerrit.libreoffice.org/23047
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2016-03-11 06:15:57 +00:00
Maxim Monastirsky
42d6a165b0 framework: Kill BmkMenu
Change-Id: I182e752f5602d946f27206a1bb744c5d2248bdf8
2016-03-11 00:53:21 +02:00
Eike Rathke
36722b6b02 wrap vcl::window* pointer members in VclPtr, tdf#97344 follow-up
Trying to satisfy loplugin:vclwidgets

sc/source/ui/inc/checklistmenu.hxx:199:28: error: OutputDevice subclass 'ScCheckListMenuWindow *' declared as a pointer member, should be wrapped in VclPtr [loplugin:vclwidgets]
    ScCheckListMenuWindow* mpMenuWindow;
    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
sc/source/ui/inc/checklistmenu.hxx:200:21: error: OutputDevice subclass 'ControlToPosMap' (aka 'unordered_map<vcl::Window *, size_t>') declared as a pointer member, should be wrapped in VclPtr [loplugin:vclwidgets]
    ControlToPosMap maControlToPos;
    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
sc/source/ui/inc/checklistmenu.hxx:201:31: error: OutputDevice subclass 'std::vector<vcl::Window *>' declared as a pointer member, should be wrapped in VclPtr [loplugin:vclwidgets]
    std::vector<vcl::Window*> maControls;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~

Change-Id: I47ba432fd76899681ec0afd852c71b584629eeb9
2016-03-10 23:29:22 +01:00
Caolán McNamara
cb00ae0a82 coverity#1355504 Dereference before null check
Change-Id: I1f19fa2b55054bff7bb7e34d8a07dcf29fd229be
2016-03-10 22:15:00 +00:00
Caolán McNamara
b20af8b684 coverity#1355499 Unchecked return value
Change-Id: I0b9329d00bfcebb6e29db6786715b19a7697d087
2016-03-10 22:14:59 +00:00
Caolán McNamara
bd17307216 coverity#1355501 Dereference after null check
Change-Id: I84001559ed2bafee16a176eb11ea991397b733bc
2016-03-10 22:14:59 +00:00
Caolán McNamara
c27d0a583d coverity#1355507 uninitialized scalar field
I think

commit b2fb84499e1f75735e8fd90bc2eece3fed9af5f6
Author: Noel Grandin <noel@peralex.com>
Date:   Mon Mar 7 14:19:22 2016 +0200

    loplugin:write only fields

wrong wrong and took out this param along with the unused nIndex
beside it

Change-Id: Idc34e03b5d59d4b0017fff456b79c807fda2535f
2016-03-10 22:14:59 +00:00
Stephan Bergmann
eee4dd746e Fix memory leaks
Change-Id: If9f7dc4a28d5e005959f0d4a0a2ed317b699f292
2016-03-10 21:43:13 +01:00
Stephan Bergmann
8e9a7cac42 No more need for jfw_freeJavaInfo
Change-Id: I2426a76936b4099a243ce8c102da867e7868aac3
2016-03-10 21:42:31 +01:00
Stephan Bergmann
8546831b3b Turn JavaInfo sal_Sequence* member into rtl::ByteSequence
Change-Id: Iecd476970b0b7a46afe223f71e95b0010048d7b1
2016-03-10 21:41:24 +01:00
Stephan Bergmann
5dcdb35ab1 Turn JavaInfo rtl_uString* members into OUString
Change-Id: Ieb23b0c36ef56a4793a56cdb450df34e4d9bce1d
2016-03-10 21:41:24 +01:00
Stephan Bergmann
81dd7115e8 Manage JavaInfo instances via new/delete
Change-Id: I10a113718e525b646c51aa8a19f9f2b75a36714a
2016-03-10 21:41:23 +01:00
Stephan Bergmann
624f9696a9 No need for SAL_CALL here
Change-Id: Iefa38d62235eb54ed5f1ff78b49127bd7bea1f5e
2016-03-10 21:41:23 +01:00
Stephan Bergmann
bf6c5c9b0f No need to repeat SAL_CALL in definitions
Change-Id: Ief75af9d08d9b7e31d821773db2363fa201f3038
2016-03-10 21:41:23 +01:00
Stephan Bergmann
8471ba7b97 No need for extern "C" here
...and fix resulting loplugin:salbool fallout

Change-Id: I5ae1497608d31c20b0d10676450a7673dee1c651
2016-03-10 21:41:22 +01:00
Stephan Bergmann
b6dbc5e708 -Werror=shadow
Change-Id: I82d2d44fd43ff2a641df74b9e05aea01991d001c
2016-03-10 21:24:03 +01:00
Jan Holesovsky
235136c178 sc lok: Don't interact with the user during .uno:SortAscending or Descending.
Change-Id: Ib3679413ba59e86438dac83abfa9b624e291e5a9
2016-03-10 21:01:23 +01:00
Stephan Bergmann
83de4879c3 Improve error message when URL cannot be opened externally
It need not be due to no browser, but might also be e.g. a misspelled URL
like <htp://...>, see mail thread starting at
<http://listarchives.libreoffice.org/global/users/msg48090.html>
"[libreoffice-users] LO 5.1 Presentation can't find system browser on OSX
10.11."

Change-Id: I74ce7abb4e78d72ce9bf92424f66608c6780d2d3
2016-03-10 20:57:35 +01:00
Stephan Bergmann
45a771ef72 Avoid reserved identifiers
Change-Id: Ic2c7cc2a78e8e58c3ca28acd9b6a35ddaceeab60
2016-03-10 18:32:16 +01:00
Stephan Bergmann
7b9429473a Avoid reserved identifier
Change-Id: I4d0dc49e44b9e9f7504008ea1d10876cd80e76f8
2016-03-10 18:32:15 +01:00
Stephan Bergmann
cda55df8a0 Avoid reserved identifier
Change-Id: I6c60905541de56229bc26e9dc6e589d4099e9266
2016-03-10 18:32:15 +01:00
Stephan Bergmann
4a296a0548 Avoid reserved identifiers
Change-Id: I75158ff7588452f38306b0bed351a6532b9c8d1f
2016-03-10 18:32:15 +01:00
Stephan Bergmann
f9202971b4 Avoid reserved identifier
Change-Id: Ifc4929a5ef43194af33b0aa2816aaf21bc61cd0e
2016-03-10 18:32:14 +01:00
Stephan Bergmann
fede8cfaa7 Avoid reserved identifiers
Change-Id: I33b9966c0d57b4f9b2028352dfbb68359653f976
2016-03-10 18:32:14 +01:00
Stephan Bergmann
0417cdceb9 Avoid reserved identifier
Change-Id: Iba05a29b75666a595e58dfe753bba0825d09f61f
2016-03-10 18:32:14 +01:00
Stephan Bergmann
88754ea53d Avoid reserved identifiers
Change-Id: I0e353e3d892e1d01155dd7e48f8d24597604d3c4
2016-03-10 18:32:13 +01:00
Stephan Bergmann
e01e2342fb Avoid reserved identifier, remove unnecessary typedef
Change-Id: I1172bff37539d1ffb8da7b53c0e5f1913f7b7ec7
2016-03-10 18:32:13 +01:00
Stephan Bergmann
8988d1a744 Avoid reserved identifier
Change-Id: I69e8a6b2d449aff92e7bd8d0d4c39b0d1c71c97c
2016-03-10 18:32:13 +01:00
Stephan Bergmann
82ef1b8111 Avoid reserved identifier
Change-Id: I4e846dcfa3325a1b700da0ec16a380b97a9fb2ed
2016-03-10 18:32:12 +01:00
Stephan Bergmann
cafad3b73e Avoid reserved identifier
Change-Id: I47c9613771bb99c43c12dfe43e2d3c2417403b56
2016-03-10 18:32:12 +01:00
Stephan Bergmann
732417ca24 Avoid reserved identifiers
Change-Id: I0b9e187be888cb1f89b52dcc60edadf6399802d6
2016-03-10 18:32:12 +01:00
Stephan Bergmann
1fd693e91d Avoid reserved identifiers
Change-Id: Ie27122c31703b1a09874d21a686cd0bc54ebbccb
2016-03-10 18:32:11 +01:00
Stephan Bergmann
5c968ab1da Avoid reserved identifiers
Change-Id: Id82db66f932c033491c6014eecdff4cc48f5c083
2016-03-10 18:32:11 +01:00
Stephan Bergmann
588fca3213 Avoid reserved identifiers
Change-Id: I7fe3cbd19358dafb998cae189f07e93a9ee791a2
2016-03-10 18:32:10 +01:00
Stephan Bergmann
fc93d61fa9 Avoid reserved identifier
Change-Id: I8fa13369070d8364c8f1f574dfa056d021d4c083
2016-03-10 18:32:10 +01:00
Stephan Bergmann
6d711b55d8 Avoid reserved identifier
Change-Id: I59b2e4859fab89fb7508b8c929d4d586495c6022
2016-03-10 18:32:10 +01:00
Stephan Bergmann
19a5374b06 Avoid reserved identifiers
Change-Id: I52cab3f30c5a1365dd51d7db2c2cf2b3a609fa11
2016-03-10 18:32:09 +01:00
Stephan Bergmann
e4602e54af Avoid reserved identifier, remove unnecessary typedef
Change-Id: I2dfce92ef98ca18ac0fe2c415240216228b4ee0a
2016-03-10 18:32:09 +01:00
Stephan Bergmann
afc34aac2c Avoid reserved identifier
Change-Id: I554fde45000114dd19f117d93ef5c7a780231594
2016-03-10 18:32:09 +01:00
Stephan Bergmann
af6fdd6824 Avoid reserved identifier
Change-Id: Ie62bbf64a9cdb74725fd48a8f8dcc1ab76d97219
2016-03-10 18:32:08 +01:00
Stephan Bergmann
d429ea8ac1 Remove unnecessary typedef (that introduced a reserved identifier)
Change-Id: I6c0aaac10b2244271f3cdf45f4eceb6d685b213c
2016-03-10 18:32:08 +01:00
Stephan Bergmann
201812ee8b Avoid reserved identifiers
Change-Id: I751e75e0b63e95cc92be7b61a77ed21eeb52bc1f
2016-03-10 18:32:08 +01:00
Stephan Bergmann
4a7237cb31 Avoid reserved identifier
Change-Id: I6ac0dfb8bb013e8106bdeb9df00aef3abe4d3af6
2016-03-10 18:32:07 +01:00
Stephan Bergmann
4657286f22 Avoid reserved identifiers
Change-Id: I815c839b19e5b2d7d5b5bab821614ad953006de2
2016-03-10 18:32:07 +01:00