291f55edf3
assert that no ODF import happens without a BaseURL
...
Change-Id: I4520a9d0350349cb083ed627a19264a3a97e090f
2015-12-16 20:37:39 +01:00
1ded035f85
tdf#74608 dbaccess: Constructor for singleton DataAccessDescriptorFactory
...
Change-Id: Id1453e3cf1c8aef22536b4e0797cca7e654316c0
2015-12-12 17:23:34 +01:00
f229b9b04a
tdf#74608 dbaccess: Constructor feature for ODatabaseDocument
...
Change-Id: Id524a1a717c350cb0558ef5ff11da3e6c941c203
2015-12-05 15:12:54 +01:00
970f518989
tdf#74608 dbaccess: Constructor feature for OComponentDefinition
...
Change-Id: I150cdaa46a0d86e1a4b6598ac580a10b2e8f071f
2015-12-05 15:12:53 +01:00
f7c94c5b8a
tdf#74608 dbaccess: Constructor feature for OCommandDefinition
...
Change-Id: Ibaa1fd8310fdba073190a7721891ebb835eb0e6e
2015-12-05 07:08:46 +01:00
58a3f56978
UBSan: Bad static_cast from dbaccess::ODatabaseSource
...
...which doesn't inherit from cppu::OWeakObject in the first multiple-
inheritance slot
Change-Id: I1624e5c696d5a592f86e7c48849ecf3a39e1e6fb
2015-12-04 15:30:40 +01:00
81fa534019
tdf#74608 dbaccess: Constructor feature for ODatabaseSource
...
Change-Id: I9ab9c0eaf463c93caf116c98e47564562af0af5d
2015-12-03 21:07:35 +01:00
3aff028b8f
loplugin:unusedfields in dbaccess
...
Change-Id: I563c3727c1719fe21acced269e5469c2de7112e8
2015-11-20 14:06:49 +02:00
fe3fd05966
add mapKeysToSequence/mapValuesToSequence methods to comphelper
...
and use them
Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec
Reviewed-on: https://gerrit.libreoffice.org/20055
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-20 08:14:13 +00:00
2554efabb6
use comphelper::containerToSequence
...
in chart2, we remove a local equivalent of the method
Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
2015-11-19 09:33:29 +02:00
96c26b0d9d
use initialiser for Sequence<OUString>
...
using variations of:
git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\;
\s*OUString\* pArray.*;
.*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g"
Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3
Reviewed-on: https://gerrit.libreoffice.org/19971
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-15 12:20:39 +00:00
25aec383f9
use initialiser for Sequence<OUString>
...
replaced using:
git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)'
| xargs perl -0777 -pi -e
"s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\);
.*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g"
Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9
Reviewed-on: https://gerrit.libreoffice.org/19969
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-15 12:18:55 +00:00
8e234c5b7d
use initialiser syntax for Sequence<OUString>
...
replaced using the script:
git grep -lP 'Sequence.*OUString.*\(1\)'
| xargs perl -0777 -pi
-e "s/Sequence< OUString > (\w+)\(1\);
.*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g"
Change-Id: I23688a91562051a8eed11fc2a85599545c285c34
Reviewed-on: https://gerrit.libreoffice.org/19967
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-15 10:13:08 +00:00
89c4edc13f
loplugin:nullptr (automatic rewrite)
...
Change-Id: I2bba104b1bff30910864e45b5b032533099742ff
2015-11-10 10:31:22 +01:00
add39c3cc1
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
...
Change-Id: I14bdbad2469d05eb25514d7ab995acb8c6ef7bd1
2015-11-06 09:35:25 +01:00
3d784c4af6
remove extra spaces around ::
...
just makes it harder to grep for methods
Change-Id: I0925db2f9284972fcf7e1e3adf90cbe21f69eb15
2015-10-26 09:12:05 +02:00
a673713bb3
more removal of com::sun::star typedefs
...
Change-Id: Ia73f1b4f1dcfa3f0936359e744afe76e02dcd2eb
2015-10-21 15:10:24 +02:00
28ecf84346
loplugin:defaultparams
...
Change-Id: I9dccf0538389063648e97575ff4c3765f0b1256b
2015-10-20 11:45:11 +02:00
b36963c0a6
Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
...
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12 17:52:29 +02:00
43d35f56ef
Fix typos
...
Change-Id: I54c32259750c0863a39f56fabaa1a0df7d208c9a
2015-10-06 21:17:27 +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
ddc2809202
boost->std
...
Change-Id: Idfbcfa1e5ba7bff92e98693c33c4b33a6beda08f
2015-09-17 14:12:07 +01: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
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
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
bd8b93fdff
make PostUserEvent Link<> typed
...
Change-Id: I13f10bda985d55d419a5bff481130a456ae2db8a
2015-08-28 09:49:56 +02:00
fab18ef350
parameter names are useless in DECL_LINK declarations
...
Change-Id: I77f7b528ed97964bdc153f820f6f96977ddb9254
2015-08-25 11:23:45 +02:00
fe6c124da7
Remove demonstrated-useless comphelper::compare
...
Change-Id: Ifd1b38afb963255b76f0d821eb46e4c6a972128a
2015-08-21 10:34:04 +02:00
ad1f0d1f1a
o3tl: rename compat_functional header
...
After the cleanup, the stuff there really stands on its own (and the
remaining usage of select1st/2nd is more descriptive than lambdas).
Change-Id: I0aba131d5dc550189f8130d167dc94167e404540
Reviewed-on: https://gerrit.libreoffice.org/17806
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de >
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de >
2015-08-17 16:38:30 +00:00
56af9ab6bb
loplugin: defaultparams
...
Change-Id: Ia66788f5db2da8c6259cd08f655b3cb7cb12ed59
2015-08-14 10:52:47 +02:00
87130a4e18
tdf#92459 Cleanup unclear lambdas
...
Replace lambdas used to select the first/second member of a pair with
the new simplified select1st/2nd from o3tl/compat_functional. There
should be no side effects due to this change.
Change-Id: I17f37796e0c4defe96a10aa491d192adb9eebb89
Reviewed-on: https://gerrit.libreoffice.org/17656
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de >
2015-08-11 22:29:12 +00:00
8e08edb1d9
filter,desktop,dbaccess: inline some use-once typedefs
...
Change-Id: I35f256a11b211c3cb977ae76b5b561efbfd13b9d
2015-08-04 08:55:56 +02:00
7dc5e8731f
com::sun::star->css in dbaccess
...
Change-Id: I4fbdd3fb7d1e0ad4423148aaaed3a15aebb26d14
2015-08-03 13:38:44 +02:00
37ec6cbeeb
tdf#91112: pass by const reference to lambdas
...
Since the function returned by o3tl::compose1 had its parameter
passed by const reference, the same should be done for the lambda
expressions that replace o3tl::compose1. I overlooked this detail
in my previous commits.
Change-Id: I0db5eec4e74d4835e786742ee6de3805215f377f
Reviewed-on: https://gerrit.libreoffice.org/17465
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-08-03 07:02:57 +00:00
7339c360ef
tdf92459 replace select1st/2nd in dbaccess
...
Replace all uses of deprecated features in the o3tl with lambda
expressions in dbaccess.
Change-Id: I865bb5db5257e985a0eed0110874d6b29892fcfb
Reviewed-on: https://gerrit.libreoffice.org/17483
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-08-03 06:48:14 +00:00
2660d24a07
new loplugin: refcounting
...
This was a feature requested by mmeeks, as a result of
tdf#92611.
It validates that things that extend XInterface are not
directly heap/stack-allocated, but have their lifecycle managed
via css::uno::Reference or rtl::Reference.
Change-Id: I28e3b8b236f6a4a56d0a6d6f26ad54e44b36e692
Reviewed-on: https://gerrit.libreoffice.org/16924
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-08-03 06:37:16 +00:00
a45827b230
loplugin:unusedmethods
...
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971
Reviewed-on: https://gerrit.libreoffice.org/17378
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-07-30 06:23:00 +00:00
38ecca9b30
inline a bunch of use-once macros
...
no point in having a macro unless it's actually going to reduce the
number of lines of code
Change-Id: Ic8760d6506cf272d7bd088f7b3b4dcbf288099fc
2015-07-27 08:18:16 +02:00
7fa29ecc72
tdf#88206 replace cppu::WeakImplHelper* etc.
...
with the variadic variants, for dbaccess.
Change-Id: I60921b1b1d3b65fb9087552ed118c60dc9f89032
Reviewed-on: https://gerrit.libreoffice.org/17146
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-07-17 07:13:29 +00:00
4ca2cf1b7e
loplugin:unusedmethods sfx2
...
Change-Id: I98c455d89f76fbcacf74929a4e8775b4da697f62
Reviewed-on: https://gerrit.libreoffice.org/17069
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-07-16 05:47:52 +00:00
799cc41b53
Fix typos
...
Change-Id: I70b03c152f63e48341dc5629a99b0eeab7b497c0
Reviewed-on: https://gerrit.libreoffice.org/16834
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Julien Nabet <serval2412@yahoo.fr >
2015-07-08 05:48:18 +00:00
64385c7555
cppcheck: noExplicitConstructor
...
Change-Id: I999923031c573f361bc421eab84e68a4a130d688
2015-07-05 21:22:31 +01:00
87dc6c82d5
Fix typos
...
Change-Id: Ideb5688a8c9e7cf10038f2e9d00991e8653b1875
Reviewed-on: https://gerrit.libreoffice.org/16706
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
2015-07-03 09:02:48 +00:00
e71ccd6e45
coverity#1308522 Uncaught exception
...
Change-Id: I2cab6b55aebc50bd024fe68553040292e40acb4b
2015-06-28 17:55:53 +01:00
f571a17484
tdf#91112 replace o3tl::compose1 with lambdas in dbaccess
...
Change-Id: Ic4a95272e88cda0080f0faddfb0671e3ff3f9d7c
Reviewed-on: https://gerrit.libreoffice.org/16418
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Michael Stahl <mstahl@redhat.com >
2015-06-25 10:17:11 +00:00
a51ac4d2bb
Add variadic PartialWeakComponentImplHelper, remove need for implbase_var.hxx
...
Change-Id: Iad3417822b2ab3afb75da09c311a0bf07af5e2e4
2015-06-22 21:48:36 +02:00
90134af864
cppcheck: noExplicitConstructor
...
Change-Id: I913f983bb0f55e05bb5ec8994ee75a7e7d69bd1b
2015-06-22 15:46:13 +01:00
1f116adb7c
callcatcher: update unused code
...
Change-Id: I29b3f1408b814a1424d8bab232e9ac618901b4c2
2015-06-20 14:20:33 +01:00
4729774b24
remove unnecessary check for null when calling delete
...
Idea originally from caolan.
Found using the following command:
find . -name *.cxx | xargs /opt/local/bin/grep -zlP '(?m)if\s*\(\s*\w+\s*\)\s*delete\s+\w+\;'
Change-Id: I3338f4e22193a6dfd6219c8c75835224a3392763
2015-06-15 14:46:41 +02:00