479 Commits

Author SHA1 Message Date
Stephan Bergmann
0b1e4a3067 Prevent Any::setValue from reinterpreting bool* as sal_Bool*
...which only happens ot work in environments where sizeof (bool) == 1.  The
simpler alternative is to use the operator <<= template without passing explicit
UNO type information, anyway.

The std::nullptr_t overloads are needed to disambiguate calls with a nullptr
argument.  (Which can at least be meaningful for VOID, but for other types what
it happens to do is store a default value of the given type.)  As std::nullptr_t
is only C++11, this all needs to be LIBO_INTERNAL_ONLY.

Change-Id: Iff06a6ba94250bd4ae4afc937c2a2bfa75f0888f
2016-05-03 15:26:01 +02:00
Stephan Bergmann
a05ab9ef5e Remove unnecessary setBOOL, makeBoolAny
Change-Id: Id82c3f352fcc2d4dafad877517098cb6f5d046d4
2016-05-03 11:20:51 +02:00
Andrea Gelmini
506c929a0a Fix typos
Change-Id: Ifb7c33d6052efe5ea8a1e0e10b3178073cd29ca0
Reviewed-on: https://gerrit.libreoffice.org/24536
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-05-01 09:51:41 +00:00
Stephan Bergmann
d3f80583ee -Werror,-Wvarargs
"passing an object that undergoes default argument promotion to 'va_start' has
undefined behavior [-Werror,-Wvarargs]"

just replace the variadic function with one taking an initializer list

Change-Id: Ied3dfe835dcebef48cf35374ec4d8835f98e6779
2016-04-27 13:47:30 +02:00
Stephan Bergmann
a82805f8f9 Kill comphelper::MakeMap
Change-Id: I97e9e79ef51e3d78f01b831dd3eee91218058823
Reviewed-on: https://gerrit.libreoffice.org/24344
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-25 06:11:27 +00:00
Stephan Bergmann
2b68383e44 Kill comphelper::MakeSet
Change-Id: I2e5f8c2cd67406d9d275960a37c4aa45e283eec3
Reviewed-on: https://gerrit.libreoffice.org/24343
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-25 06:11:10 +00:00
Stephan Bergmann
68d88e2bda Remove unused comphelper::MakeSequence
Change-Id: I0f34fddbfd709455f1aa2f1bfaa70d72a2752f74
Reviewed-on: https://gerrit.libreoffice.org/24342
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-24 19:37:29 +00:00
Stephan Bergmann
b477a9e0b6 Kill comphelper::MakeVector
Change-Id: I6525f9189b25f007d3ffd190b37c73552a900de2
Reviewed-on: https://gerrit.libreoffice.org/24341
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-24 19:06:02 +00:00
Giuseppe Castagno
bbe51f039d Add an interaction handler wrapper for simple file access.
This wrapper is to be used when you want to avoid the error
messages displayed when accessing a file (the messages activated
by ucphelper::cancelCommandExecution), especially when accessing a
Web/DAV connection to enable https certificate validation and
optionally enabling the authentication dialog that may be needed
in these operations.

Change-Id: I19f3072b91b6c4f453a54b56a3d9883b3383dfa5
Reviewed-on: https://gerrit.libreoffice.org/24274
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-22 07:11:31 +00:00
Stephan Bergmann
f555ab4e96 loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Idb7e5ff0c73bbc2c462b92cd96444eb5d2d4194b
2016-04-20 17:25:37 +02:00
Noel Grandin
216ffb038f loplugin:passstuffbyref in comphelper
Change-Id: I502a0ec6627f37e17c4a9adebda58299167a8126
2016-04-13 13:27:51 +02:00
Jochen Nitschke
4c7ec9f112 cleanup: remove unused com/sun/star/uno includes
Sequence.h(xx), Any.h(xx) and Type.h(xx)
and remove unused using-declarations from these files.

Add a few missing includes provided by them.

Change-Id: I6b91b6d1fdf9d0496dd546c0aab9bdcc6831a5d4
Reviewed-on: https://gerrit.libreoffice.org/23805
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-12 06:38:26 +00:00
Noel Grandin
f3a43c723e clang-tidy performance-unnecessary-value-param in comphelper
Change-Id: Iff26c89ea6079e0f12691dbc04bb36f02b85c305
Reviewed-on: https://gerrit.libreoffice.org/23920
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-11 06:20:32 +00:00
Noel Grandin
b9372f0e90 loplugin:constantparam in comphelper
Change-Id: I81e6af1ee869caa3b40d2d00604e8e22517d92d7
Reviewed-on: https://gerrit.libreoffice.org/23808
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-05 06:26:22 +00:00
tymyjan
c20cc7e79b tdf#97499 Fixed containers parameters clearing #4
Change-Id: I7c96181399f4d7e62d4aceca404b22d68f903513
Reviewed-on: https://gerrit.libreoffice.org/23754
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-04 05:49:06 +00:00
Jochen Nitschke
f7a75a66fa cleanup: remove unused Reference.h(xx) includes
and unused using-declarations from Reference.h

Change-Id: I297a7ae6044fa329d245ecf08fd5c4cb930f5b19
Reviewed-on: https://gerrit.libreoffice.org/23735
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-04-02 19:01:24 +00:00
Stephan Bergmann
d2f9f27774 loplugin:nullptr: Find some more cases in templates
Change-Id: I1f127d56e40b04f2b4df85c0afbcfd424d68a8cc
2016-03-30 18:59:54 +02:00
Stephan Bergmann
6aa5bdc371 ...and now it got included twice
Change-Id: I5cb7eda5a8dc1bddd3e76e1d3aae94f264d609d9
2016-03-11 11:09:22 +01:00
Stephan Bergmann
28fb13b473 Missing include
Change-Id: Ia99c17d90f66860bcd9ef6bb1732437e425a4a04
2016-03-11 11:08:28 +01:00
Caolán McNamara
849e78756b include memory
Change-Id: If91042b2a72b0dd70cc630e1140f602ac1b823d2
2016-03-11 10:07:28 +00:00
Caolán McNamara
66fee51115 Resolves: tdf#98418 AttributeList must support XCloneable
regression from

commit 8998768a34751d35403678a81464a26835b2230e
Date:   Sat Feb 6 18:38:32 2016 +0100

Change-Id: I217fb66621505b77b6102954c07ef513e2d4b25e
2016-03-11 09:45:43 +00:00
Stephan Bergmann
e58704ff81 Avoid reserved identifiers
Change-Id: Ie6a7e3fafd1394f93164a46fa0e7e149cf947ed2
2016-03-10 18:32:05 +01:00
Stephan Bergmann
f5b426ebd7 Avoid reserved identifier
Change-Id: Iccd3a443fc0df0b7090f91b3510e0677a0094fb1
2016-03-10 18:32:04 +01:00
Stephan Bergmann
9b7b7351a2 Avoid reserved identifier
Change-Id: I1255d0a5a1d112077c258a141b384a655ba62dff
2016-03-10 18:32:04 +01:00
Jaskaran
00ecf7899a tdf#97499 Remove some Default arguments in unordered container
Change-Id: Ic008e244b8ae1888fa45379371f5525ee77f6087
Reviewed-on: https://gerrit.libreoffice.org/22887
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-03-07 12:50:15 +00:00
Michael Stahl
c96dc8822d ucb: replace boost::bind with C++11 lambdas
... and remove now unused comphelper::TNamedValueEqualFunctor.

Change-Id: Ia6cac4ae4e34d2ba134e2f2a4a5b4daea58bf0b3
2016-03-03 15:04:11 +01:00
Noel Grandin
337f517af6 loplugin:unuseddefaultparams comphelper
Change-Id: I78280a13fc0d82fc87041b5dad0c3f2f7d462652
Reviewed-on: https://gerrit.libreoffice.org/22853
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-03 12:06:57 +00:00
Matúš Kukan
5a1cd2f30d OSingletonRegistration is dead now
Change-Id: I64a5ffa8790496bd39ba26e0c789db9eedc51071
Reviewed-on: https://gerrit.libreoffice.org/22788
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Matúš Kukan <matus@libreoffice.org>
2016-03-01 19:36:58 +00:00
Noel Grandin
f163745cca convert HighlighterLanguage to scoped enum
Change-Id: Ibf0871601e52ea4fa49e9622176431943c55abdd
2016-02-24 11:48:39 +02:00
Noel Grandin
a5e53f9ffd convert TokenTypes to scoped enum
Change-Id: I17c0a616dd6cf48a22896b6cd6b0df157d1f9a9f
2016-02-24 11:48:39 +02:00
Noel Grandin
2f9d53df89 remove unused exc_handling enum
Change-Id: I5e2e084114c8b0eedd0f2cd8327d6c6d68742462
2016-02-24 11:48:39 +02:00
Noel Grandin
cdf176c974 convert PropertyDescription::LocationType to scoped enum
Change-Id: Ifcd6bf1728c632ed10301c4a426dae57dbf0912a
2016-02-24 11:48:38 +02:00
Noel Grandin
3b168bc685 convert DocPasswordRequestType to scoped enum
Change-Id: I25d217ca2cf3e8cc4dfaccc6dc7d5453ffdc6cb6
2016-02-24 11:48:38 +02:00
Noel Grandin
5d8474bae0 convert PropertyOrigin to scoped enum
Change-Id: I26c9929be8aad02030722508334e66f5028ffb37
2016-02-24 11:48:38 +02:00
Noel Grandin
dc1f1cde63 convert DocPasswordVerifierResult to scoped enum
Change-Id: Ib5a595819dec8511d284ed1022d8f7c624f8d8f9
2016-02-24 11:48:38 +02:00
Noel Grandin
0839f90394 convert EConfigurationModes to scoped enum
Change-Id: I1e81c8d637e738f536f7efad8b67d0c9183e6483
2016-02-24 11:48:38 +02:00
Noel Grandin
a9a04f11a6 convert ComponentMethodGuard::MethodType to scoped enum
Change-Id: I1f1b4981c70c2b8ff8087a85f0af28b816b4654a
2016-02-24 11:48:38 +02:00
Noel Grandin
2087484c65 use consistent #define checks for the Windows platform
stage 2 of replacing usage of various checks for the windows platform
with the compiler-defined '_WIN32' macro

In this stage we focus on replacing usage of the WIN macro

Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84
Reviewed-on: https://gerrit.libreoffice.org/22393
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-17 11:33:57 +00:00
Noel Grandin
0f8ec3036f [API CHANGE] add operator==/!= to UNO structs
this is useful now that we are storing UNO structs in std::vector

Change-Id: Ic558bcd669bd2b3cdf9eb8393269eb906ac52369
Reviewed-on: https://gerrit.libreoffice.org/22257
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-11 06:22:28 +00:00
Noel Grandin
1cb7cc1f1d sequence->vector in OPropertyChangeMultiplexer
Change-Id: I4daa06fe14971ae34e089620ba07818d998764f0
Reviewed-on: https://gerrit.libreoffice.org/22179
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-09 10:32:24 +00:00
Chris Sherlock
a238b1f8d3 Remove excess newlines
A ridiculously fast way of doing this is:

for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \
  --exclude-dir=workdir --exclude-dir=instdir '^
{3,}' .)
do
    perl -0777 -i -pe 's/^
{3,}/

/gm' $i
done

Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
Reviewed-on: https://gerrit.libreoffice.org/22224
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09 08:18:05 +00:00
Noel Grandin
bbb5584669 sequence->vector in OPropertyArrayAggregationHelper
Change-Id: Ib6ad60495736ea6da4612d3e7591b514465069a2
Reviewed-on: https://gerrit.libreoffice.org/22180
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-09 07:40:38 +00:00
Noel Grandin
b14224fe97 loplugin:unusedmethods
using an idea from dtardon:

<dtardon> noelgrandin, hi. could you try to run the unusedmethods clang
plugin with "make build-nocheck"? that would catch functions that are
only used in tests. e.g., i just removed the whole o3tl::range class,
which has not been used in many years, but htere was a test for it...
<noelgrandin> dtardon, interesting idea! Sure, I can do that.

Change-Id: I5653953a426a2186a1e43017212d87ffce520387
Reviewed-on: https://gerrit.libreoffice.org/22041
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-08 06:08:14 +00:00
Matúš Kukan
8998768a34 sax: Use comphelper's AttributeList
Change-Id: I6eb0115dba8797025a513cf1e6cfbfbe0b6f7e50
2016-02-06 18:41:33 +01:00
Noel Grandin
e76b009781 sequence->vector in OInteractionRequest
Change-Id: I995cb96e514e1aaa05a96f29344ef51e4ca83c64
2016-01-29 10:54:23 +02:00
Michael Stahl
8b1fc9108f comphelper: replace boost::hash with std::hash
Change-Id: I9824145518cbac6ae3e700c402f1335b7d1b56f8
2016-01-28 10:10:27 +01:00
Noel Grandin
3e77939986 fix DLLPUBLIC annotations in OInterfaceContainer2
Change-Id: I9567e40203b8f646dc811bfae10610711702b39c
2016-01-25 10:10:52 +02:00
Stephan Bergmann
7d49f78acc loplugin:nullptr
Change-Id: I43a0d543d1f258a2a9be34e4594dfd75d6ee684d
2016-01-25 08:20:29 +01:00
Noel Grandin
752cd07d08 InterfaceContainer2 with vector instead of Sequence
create an InterfaceContainer2 class to replace InterfaceContainer.
It uses a std::vector instead of a Sequence for the mutable listener
list, which provides far better performance.

Switch all our internal use-sites to the new class.

Change-Id: I6b56cfa511ded2395faa22e68fab3b2f16c3cb88
2016-01-25 08:52:03 +02:00
Michael Stahl
d99fc6f2ad fix the MSVC 2013 --enable-lto build
... by sacrificing the appropriate number of chickens to the template
dllexport gods.

Change-Id: I27fb6a1f0a8a32c9bdc67574b3a2f3ec9f27b00f
Reviewed-on: https://gerrit.libreoffice.org/21442
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-01-14 12:52:41 +00:00