Commit Graph

11248 Commits

Author SHA1 Message Date
7e776c0027 loplugin:unusedmethods
Change-Id: I150baadc442e57ee604563bc52965daa9d2e41af
2015-10-06 10:17:02 +02:00
89d39bc100 tdf#94559: 4th step to remove rtti.hxx
replaced use of PTR_CAST, IS_TYPE, ISA in
    idl, editeng, sc, sd, sw, sfx2, sot, starmath

Change-Id: I4a5bba4fdc4829099618c09b690c83f876a3d653
Reviewed-on: https://gerrit.libreoffice.org/19132
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-10-06 07:29:37 +00:00
56a5734b06 cppcheck: noExplicitConstructor
Change-Id: I80950aaf1385bd76b012eab7866fd16848751f45
2015-10-05 20:30:59 +01:00
5e6d41ddcf coverity#735690 Unchecked dynamic_cast
and

coverity#735689 Unchecked dynamic_cast

Change-Id: I1181e21146972c7c01b0a421d3c1c4ecc3d7e75a
2015-10-01 14:41:33 +01:00
daf31b5e08 -Werror,-Wunused-private-field
Change-Id: I24e4dde34993e4fc994a8dc4a318e7d17c357260
2015-10-01 14:35:00 +02:00
58aea3f36c loplugin:unusedmethods
- improvements to the plugin to find more method calls
- improvements to python script to remove more false+
- fix the FORCE_COMPILE_ALL build flag to include code in
  the $WORKDIR

Change-Id: I4d6015dcb9b9d60c26f0bcee8abad807177a7836
Reviewed-on: https://gerrit.libreoffice.org/19064
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-01 10:43:24 +00:00
4046f6d257 Fix typos
Change-Id: Ia37c28bbb7a1b47ed4a6beffb3f03eb26742b653
Reviewed-on: https://gerrit.libreoffice.org/18944
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-09-30 08:42:52 +00:00
c50eb68af3 Renamed wrongly prefixed boolean variables
Fixed tdf#94269

Change-Id: I63109cc4e095bad680d7637a065080ea368860ae
Reviewed-on: https://gerrit.libreoffice.org/18851
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-29 18:33:40 +00:00
34180700b2 loplugin:removeunusedmethods, remove unused stuff
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
2015-09-29 15:08:43 +02:00
d3c7c9ea81 tdf#94559: first step to remove rtti.hxx
replaced use of PTR_CAST, IS_TYPE, ISA in
avmedia, basctl, basic, cui, dbaccess, vcl,xmloff

Change-Id: If4496762e82e896b6fbc362e6626502703c245f5
Reviewed-on: https://gerrit.libreoffice.org/18905
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-09-29 12:26:20 +00:00
d5b87dcce1 Return std::unique_ptr from SvTreeListBox::CreateContextMenu
Change-Id: I1e4c32099ec9741c0cab246eb627a2eb3b933e1a
2015-09-28 13:07:03 +02:00
73b158e001 convert Link<> to typed
Change-Id: If1dcc5e50b08540623bb21067c5f74e47192ef9a
Reviewed-on: https://gerrit.libreoffice.org/18859
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-26 05:27:04 +00:00
14a5131658 convert Link<> to typed
Change-Id: I7fd77490ab49a18f48e248ca277bc30b5a7d2071
Reviewed-on: https://gerrit.libreoffice.org/18858
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-25 18:23:14 +00:00
e85b2333bc convert Link<> to typed
Change-Id: I59d325c3b051690303a5841907317122fa1ec98b
Reviewed-on: https://gerrit.libreoffice.org/18825
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-24 16:19:37 +00:00
efeb928153 convert Link<> to typed
Change-Id: I12b3fdb443226a63786b94ce9836e9d2efa6a5c8
Reviewed-on: https://gerrit.libreoffice.org/18776
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-22 18:57:16 +00:00
1e67e94f1a convert Link<> to typed
Change-Id: If3e2b00092440ebd42ae5b73ae2b0e44c3702683
2015-09-21 08:03:52 +02:00
a12c083cad Some follow-up #include clean-up
Change-Id: I4e91748701becfc92a379a490c08e9c7950007e3
2015-09-18 07:51:35 +02:00
558b08d55f silence warning when not a warning
Change-Id: I31d7835a5ed3053cd1a930b3fb922d689d6ddcbe
2015-09-17 19:35:57 +02:00
ddc2809202 boost->std
Change-Id: Idfbcfa1e5ba7bff92e98693c33c4b33a6beda08f
2015-09-17 14:12:07 +01:00
a609822d5e remove unused Link<> field
Change-Id: I4d9f7d0fb1a2621121aa26f1ddff0a04116bc561
2015-09-17 12:22:46 +02:00
56de0d310f convert Link<> to typed
Change-Id: Iff53217807be85cbcd5f850739f8b0949521fca2
2015-09-17 12:22:46 +02:00
02fd846d23 convert Link<> to typed
Change-Id: I6c0898db47b39648bb143ad040864c0279269f96
2015-09-17 12:22:46 +02:00
b1263112b6 remove unused Link<> fields
Change-Id: I25bcec20f3a981ea681e29a0a1ef0726fa5e7e1c
2015-09-17 12:22:46 +02:00
d048ba568f convert Link<> to typed
Change-Id: Ie331012fa9beed1da99d3741d816fb8ac0e94d6d
2015-09-17 12:22:46 +02:00
cbf3fac0a5 remove unused Link<> field
Change-Id: Ic829d0e1acf11ce361f6bfe59364661ef9cb4b83
2015-09-17 08:19:35 +02:00
81105c7a16 convert Link<> to typed
Change-Id: I34e15999ecc73c5a330f637338ca9d8fce31b5d2
2015-09-17 08:19:34 +02:00
f5b5777491 convert Link<> to typed
Change-Id: I6f8ffaf59a1b22b66d3b92246384cd3203808bcf
2015-09-17 08:19:34 +02:00
5a91520269 convert Link<> to typed
Change-Id: Ibb426c6d0cd81ff866c431be8277849e002df57a
2015-09-17 08:19:34 +02:00
1e2119fd02 convert Link<> to typed
Change-Id: I3d35a0bb75b6989dd13371543d1bdf3ef5f47641
2015-09-17 08:19:34 +02:00
e0714ae393 convert Link<> to typed
Change-Id: I8f3e401afa27778678788b4ac90ea927a2fed1d7
2015-09-15 09:37:31 +02:00
ee7da352b8 Resolves: tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants.

Change-Id: I7154f9472f02fdf47d27ba715db55bb1ec669a8a
Reviewed-on: https://gerrit.libreoffice.org/18580
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-15 06:19:28 +00:00
2a4ccc0c1e convert Link<> to typed
Change-Id: I1c501671d72edd5b998e80c7fa1e91dbeb507af8
2015-09-14 10:00:44 +02:00
1a78f0965d Restore correct boolean return value
Fix commit f4c300eae4e9aaaec9e5d1f478ad35161ede2761

Change-Id: I660ca80b9df47160a24c2d32b1b03a814285a9a8
2015-09-12 19:13:16 +02:00
f4c300eae4 Reduce scope by early bail out
Change-Id: Ia4e1763cc4d70197342be4e5caf6d5c14cd34c80
2015-09-12 14:18:50 +02:00
c5909e2518 Update many ListBox users to its sal_Int32 interface
Change-Id: I6469ac5e2d17406bee9bc434930e2471cb3bae9f
2015-09-12 14:18:50 +02:00
cf0c04a428 convert Link<> to typed
Change-Id: I85658fa35b9b85106a3b9c8ef303584cad6f39b0
2015-09-11 08:48:54 +02:00
23175c02b0 convert Link<> to typed
Change-Id: I473ab8d77273c512e843427c86664f9eefbff116
2015-09-11 08:48:54 +02:00
f4e951a61a convert Link<> to typed
Change-Id: I603463d0486d4d0f21ebbdc6eca900db58bb090f
2015-09-10 11:38:30 +02:00
b4deeef405 convert Link<> to typed
Change-Id: Ia520982b6764994fc4ab02cb12d1bd051e37883a
2015-09-08 08:16:46 +02:00
61623d5b90 convert Link<> to typed
Change-Id: I365a81a0a960f5da736c9a97aa056da16c99452f
2015-09-08 08:16:46 +02:00
267f401e2a cppcheck: noExplicitConstructor
Change-Id: I2a1add8cf526cdb305ad99ccb138454a88f2fdbd
2015-09-07 09:56:07 +01:00
730da2a1e8 WaE: not necessary to pass this argument, it defaults to the same value
[loplugin:defaultparams].

Change-Id: I962bcf4c3de625bb6843cb7aa9ca0f4d6ba5187e
2015-09-07 10:37:25 +03:00
899c21ce5d dbaccess: replace for_each with range-based for
Replace complex uses of ::std::for_each with a range-based for-loop.

Change-Id: I82331f16cc1994dd9ef36eb80d67b64171cecc74
Reviewed-on: https://gerrit.libreoffice.org/18355
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-07 07:18:33 +00:00
ed7ea68854 convert Link<> to typed
Change-Id: I42eba6c9b6295d94dddc49942d47d59f474bfd28
2015-09-04 13:08:30 +02:00
4ea70f87f7 convert Link<> to typed
Change-Id: I2136c3db2742afcb4722f69297276bea1e0119f4
Reviewed-on: https://gerrit.libreoffice.org/18306
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-04 06:31:30 +00:00
411e32244c convert Link<> to typed
Change-Id: Ic15d0539aa00b46694a1715b6dda9d78bb1c00d8
Reviewed-on: https://gerrit.libreoffice.org/18269
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-03 07:21:26 +00:00
5e7cf50756 SetXXX(bool) with a default value of false are just wrong
Change-Id: I4888d0474199bb10ca81d1ad03118a150f574671
Reviewed-on: https://gerrit.libreoffice.org/18235
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-02 07:14:20 +00:00
410c06bec4 convert Link<> to typed
and remove some dead code

Change-Id: I608ed684fafb33390d869f7ebd4000c53d7fb28d
2015-08-31 09:50:10 +02:00
8106bfcdf3 loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Icbef0736acd5143200478410d65cfdd2ce10eeee
2015-08-31 08:03:51 +02:00
6900bf41e2 o3tl/cow_wrapper: remove boost dependency
Remove boost dependencies from ::o3tl::cow_wrapper, and add
the necessary includes to files including checked_delete and
noncopyable that do not already include the necessary files.

Change-Id: Iedae4232002792724226829a5d5cf9d16ffd0686
Reviewed-on: https://gerrit.libreoffice.org/18125
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-29 22:51:36 +00:00