8363 Commits

Author SHA1 Message Date
Stephan Bergmann
14544da21e loplugin:cstylecast
Change-Id: I6ec274c6c546f60c23fe639002d751f0a9f11d33
2016-11-10 11:38:27 +01:00
Wastack
21cc1826c7 WiP tdf#74172 use DECIMAL and NUMERIC data types
Change-Id: I917cdf6e8d3ebfa7c9e4a52ca61adc5b8707ecfc
Reviewed-on: https://gerrit.libreoffice.org/30447
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2016-11-10 09:37:12 +00:00
Noel Grandin
5c2c2d8dc4 loplugin:expandablemethods in comphelper..cppuhelper
Change-Id: I9d5487af4729bd3ee4f6450092e4b77f74a12e6d
Reviewed-on: https://gerrit.libreoffice.org/30717
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-10 06:51:53 +00:00
Noel Grandin
c123c528bf loplugin:unnecessaryvirtual in comphelper..forms
Change-Id: Iabe292e68cb84b97f207061347ed6a30309dc9fd
Reviewed-on: https://gerrit.libreoffice.org/30679
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-08 06:57:57 +00:00
Noel Grandin
fae35e535d loplugin:oncevar in cui..connectivity
Change-Id: Ibe9d04932b0a57040db4fee11886dc1701f6ea17
Reviewed-on: https://gerrit.libreoffice.org/30653
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-07 11:00:47 +00:00
Jan-Marek Glogowski
079610f6ca KAB loplugin:unnecessaryoverride
Change-Id: I62e6f2488554df663e0ae6c72b6af9e2ec9976a1
2016-11-02 19:00:38 +01:00
Stephan Bergmann
25df5f2ac7 loplugin:unnecessaryoverride
Change-Id: I70ba8d3b03c56a597785f109f0cb687bd936bc64
2016-10-28 19:48:44 +02:00
Caolán McNamara
807151aa13 coverity#1371275 Missing move assignment operator
Change-Id: I6c47c797d2654506bdc95c35b2558ce812f4070d
2016-10-28 10:09:32 +01:00
Stephan Bergmann
d4398c7767 Remove bogus comments about ~IPropertyArrayHelper not being virtual
...which isn't true at least ever since b525a3115f54576017a576ff842dede5e2e3545d
"initial import", but got copy/pasted all over the place

Change-Id: I47d3d8a594aef3ac3736d7176ae964a118821014
2016-10-27 17:08:09 +02:00
Caolán McNamara
2574d76059 coverity#1374287 Uncaught exception
Change-Id: Ieed911b33fe4a5358855b3960b9d4c77c66ceff9
2016-10-26 09:56:30 +01:00
Caolán McNamara
8ee0932466 coverity#1374285 Uncaught exception
Change-Id: I0a3790607fe7db6a8b8093a67e4dbf3548c800bb
2016-10-26 09:56:30 +01:00
Caolán McNamara
b9d0b57b17 coverity#1374283 Uncaught exception
Change-Id: I658a12da4d30f360f207ca06dcf3650ba18cc7a2
2016-10-26 09:56:30 +01:00
Wastack
41832d27c3 tdf#103373 create and connect with default user
For an embedded Firebird database resolve authentification with a
default username and password (hardcoded) instead of trusted
authentification.

Change-Id: I54ee04898a8b2bedc9a24001c64173400769f416
Reviewed-on: https://gerrit.libreoffice.org/30160
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2016-10-26 07:52:38 +00:00
Noel Grandin
e4cb0742c8 loplugin:expandablemethodds in include/connectivity..drawinglayer
Change-Id: Ic58f86422ef8f1e2bb655157850e214fc3a1a9b4
Reviewed-on: https://gerrit.libreoffice.org/30136
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-23 12:09:33 +00:00
Jochen Nitschke
7567a4c230 '>>=' with rhs Any is a copy assignment
replace '>>=' operator with '=' where return value is not checked
and simplify. (note: switches lhs with rhs)

Change-Id: I0d283e8786ea996ed80d7aa9d8a4ea930a3d52f8
Reviewed-on: https://gerrit.libreoffice.org/30004
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-19 19:28:18 +00:00
Noel Grandin
292560a957 loplugin:unusedmethods
Change-Id: Icf773925c37dde8b7404edac9864e7b10fe113b4
Reviewed-on: https://gerrit.libreoffice.org/29968
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-18 06:15:55 +00:00
Stephan Bergmann
058abc7cfe loplugin:unnecessaryoverride
Change-Id: Id90a0a3334f4551b926a240b2e06a34337188c07
2016-10-17 08:56:14 +02:00
Stephan Bergmann
b9ed8dd02a clang-cl loplugin: connectivity
Change-Id: I025cf2ad63f08bb58d54983982d7a116fac0ffea
Reviewed-on: https://gerrit.libreoffice.org/29874
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-16 14:19:24 +00:00
nadith
833d952a57 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: I4abcff5e1bf050bd4e4cf0695f196c418d8229ef
Reviewed-on: https://gerrit.libreoffice.org/29778
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-14 06:36:35 +00:00
nadith
0f67b8626b tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Ibfb981a58e61c72f3a292dd8e72895b98502d640
Reviewed-on: https://gerrit.libreoffice.org/29787
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-14 06:11:05 +00:00
Asela Dasanayaka
83cc9a3fae tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Fix a bug on connectivity/source/drivers/ado/AResultSet.cxx

Change-Id: I164732100ff3bdc4e73f80e2495610cb53581b0d
Reviewed-on: https://gerrit.libreoffice.org/29758
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-10-13 14:34:31 +00:00
Noel Grandin
62223f9a8a loplugin:unnecessaryoverride
Change-Id: I08c55a3023ec2e8990098eeb60e91cd18556e7ae
Reviewed-on: https://gerrit.libreoffice.org/29656
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-13 06:47:44 +00:00
Stephan Bergmann
66b67f40a7 ADO: return correct css::sdbcx::CompareBookmark values
css.sdbcx.XRowLocate's compareBookmarks is documented to return values from the
css.sdbcx.ConpareBookmark constants group, which has LESS = -1, EQUAL = 0,
GREATER = 1, NOT_EQUAL = 2, NOT_COMPARABLE = 3.  So in case of equality return
EQUAL (0) instead of sal_True (1).  And, in the MS SDK's adoint.h, the
CompareEnum enum os defined with enumeators adCompareLessThan = 0,
adCompareEqual = 1, adCompareGreaterThan = 2, adCompareNotEqual = 3,
adCOmpareNotComparable = 4, so mapping from the latter to the former needs to do
-1, not +1.

Change-Id: I6643da31f326e38153e4ebab9e680b33a6854918
Reviewed-on: https://gerrit.libreoffice.org/29735
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-12 21:32:03 +00:00
Noel Grandin
a9717054dc loplugin:unnecessaryoverride in connectivity/cui
Change-Id: I5ec4eb2f74036e42851333e3d669dbea58c2490a
Reviewed-on: https://gerrit.libreoffice.org/29687
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-12 06:31:56 +00:00
Stephan Bergmann
1e0fa85cd3 Replace OLEVariant operators with proper functions, for clarity
* Rename the original getDate (returning double) to getDateAsDouble, to make
  room for the new getDate (returning css::uno::Date).

* Assume the difference between the original 'operator String' (first checking
  for VT_BSTR, then for isNull()) and getString (first checking for isNull(),
  only then calling 'operator String') was accidental rather than by design.

Change-Id: I6261bdad5c328d6b10e83f2d1664a6c78ec1fed4
Reviewed-on: https://gerrit.libreoffice.org/29705
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-11 18:42:02 +00:00
Stephan Bergmann
51e5e4970b Replace OLEString operators with proper functions, for clarity
Change-Id: I1fa309d034e1ec94f38d07ede07e691f1484a4f5
Reviewed-on: https://gerrit.libreoffice.org/29697
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-11 14:19:28 +00:00
Andrea Gelmini
943919692e Fix typos
Change-Id: I8374d6d08f4eb4ae2821e213371c615b92d7e9ab
Reviewed-on: https://gerrit.libreoffice.org/29432
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-01 19:02:02 +00:00
Jan-Marek Glogowski
f486329a03 TDE fix some clang plugin based warnings
Change-Id: I3b44038e8a889e4c13126fd8d721e53e71ea9ec6
2016-09-23 23:25:47 +02:00
Noel Grandin
1c15a20df8 loplugin:unusedmethods unused returns
Change-Id: I4da3374e31d3c7407b401d66275da7f56ae83d30
Reviewed-on: https://gerrit.libreoffice.org/29178
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-22 13:13:05 +00:00
Maarten Bosmans
9df9949cc4 Remove NumberFormatCodeWrapper
This class only adds a level of indirection, without any useful functionality.

Change-Id: I806e1b9241caf025c62c12c93aad3101daac874a
Reviewed-on: https://gerrit.libreoffice.org/29134
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-22 07:12:49 +00:00
Stephan Bergmann
07339d03af Remove obsolete workaround for SUNPRO 5 compiler
...copy/pasted into three more places

Change-Id: I6661244d0248af509cd867fc3e8c451551068a78
2016-09-20 07:55:10 +02:00
Noel Grandin
a2b77b4368 loplugin:singlevalfields in basic..idl
Also fix obvious bug in the initialisation of the
connectivity::odbc::OConnection::m_bClosed field.
Probably closes some kind of connection leak there.

Change-Id: I04579cf91bcd6d6c51c697d83971da4142743a82
Reviewed-on: https://gerrit.libreoffice.org/28932
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-16 08:30:26 +00:00
Jochen Nitschke
32e45a6f2a convert LogLevel constants to scoped enum
rename some variables to distinguish them from type name
use enumarray for log level strings
remove unused DATA member

Change-Id: Id3c38b82e679b3aede5ce790735443e769d5f236
Reviewed-on: https://gerrit.libreoffice.org/28920
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-15 14:10:07 +00:00
Michael Stahl
86f6fc069f connectivity: firebird: loplugin:nullptr
Change-Id: Ia711be1238de87ac5b52b02de077b70220369e4b
2016-09-15 12:08:47 +02:00
Michael Stahl
b647996a9b replace sal_Size with std::size_t (or sal_uInt64 for SvStream pos)
... except in include/rtl, include/sal, include/uno, where sal_Size is
retained for compatibility, and where callers of rtl functions pass in
pointers that are incompatible on MSVC.

Change-Id: I8344453780689f5120ba0870e44965b6d292450c
2016-09-15 12:01:11 +02:00
Stephan Bergmann
c765a6757f loplugin:override
Change-Id: I0cd2007c9169fe480e28e684cfe1bd8b24da7123
2016-09-14 14:35:36 +02:00
Noel Grandin
1e49e33c26 loplugin:constantparam in chart2..connectivity
Change-Id: Ic9e1bd36a11c7148fa7595a2b6c6de9bd7a8653d
Reviewed-on: https://gerrit.libreoffice.org/28834
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-14 06:40:30 +00:00
Stephan Bergmann
91dd2db17b loplugin:override: No more need for the "MSVC dtor override" workaround
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark
overriding destructors as 'virtual'" appears to no longer be a problem with
MSVC 2013.

(The little change in the rewriting code of compilerplugins/clang/override.cxx
was necessary to prevent an endless loop when adding "override" to

  OOO_DLLPUBLIC_CHARTTOOLS    virtual ~CloseableLifeTimeManager();

in chart2/source/inc/LifeTime.hxx, getting stuck in the leading
OOO_DLLPUBLIC_CHARTTOOLS macro.  Can't remember what that
isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.)

Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-09-13 13:19:22 +02:00
Caolán McNamara
98ce52b678 coverity#1372406 Uncaught exception
Change-Id: I24fe9cb3aa9002d4b94b6f934e39aff243c1e09d
2016-09-01 10:40:14 +01:00
Caolán McNamara
321d5970c6 coverity#1372402 Uncaught exception
Change-Id: I63743ccdeca1be66da5622bd286f08daebdd74ff
2016-09-01 10:40:14 +01:00
Caolán McNamara
6ce409bd9c coverity#1372398 Uncaught exception
Change-Id: Icf6c0f8071a3ea2de81073dfcabc64fae6aeee9c
2016-09-01 10:40:14 +01:00
Caolán McNamara
3c50bae222 coverity#1372392 Uncaught exception
Change-Id: Ic8bb4748b0752796fcb76c1816441bb22b896809
2016-09-01 10:40:14 +01:00
Caolán McNamara
ec2aa9c5ba coverity#1372390 Uncaught exception
Change-Id: I4bb01b0bb9865986d9da8ed294a46fa7a4488458
2016-09-01 10:40:14 +01:00
Caolán McNamara
99542f5744 coverity#1372389 Uncaught exception
Change-Id: Ic788073adcaefb3de2bff7e249f17a64fad48b19
2016-09-01 10:40:14 +01:00
Caolán McNamara
1e98814414 coverity#1372388 Uncaught exception
Change-Id: I55c4e2ad1f3384c4e8b0a6cc88b83fa96cf2dede
2016-09-01 10:40:14 +01:00
Caolán McNamara
e4a1209443 coverity#1372387 Uncaught exception
Change-Id: I563e7987d00a68373c05dc4f1f3d62cd3e52de70
2016-09-01 10:40:14 +01:00
Caolán McNamara
ca409c68e2 coverity#1372383 Uncaught exception
Change-Id: Idfdd846d8439be91b059d53dab6591d202576fae
2016-09-01 10:40:14 +01:00
Caolán McNamara
dd5fa4cea7 declare default dtor as virtual
Change-Id: Ic77dbe3ffb2d2856d437158914b877b913296e0e
2016-08-30 19:26:41 +01:00
Stephan Bergmann
d0cb35f3be loplugin:stringconstant: adapt to improved OUStringLiteral1 (connectivity)
Change-Id: I1c9e33d3f4306199320e60cf0eb2970e687576ef
2016-08-30 15:27:16 +02:00
Stephan Bergmann
5536aea822 Let OUStringLiteral1 take its arg as ctor arg, not template arg
...which makes it more flexible, can now also be used on non-const arguments.
The drawback of the argument no longer being a compile-time constant is remedied
by making the ctor constexpr.

Change-Id: Ia4903a2cc86791fece92eac0cb8406b6659dd19d
2016-08-30 07:43:52 +02:00