Commit Graph

12461 Commits

Author SHA1 Message Date
6c2725038b Resolves: rhbz#1409634 crash on close storing clipboard of database table
Change-Id: I8e692314b4ef278f7881780d51bcecb60ca80c3f
2017-01-10 14:40:41 +00:00
a98334bc42 New loplugin:externvar: dbaccess
Change-Id: Ie1b87180b68c1f106128f0fc7a3a591c055b735f
2017-01-09 15:44:01 +01:00
d911663f0f Typo: Acess->Access
Found thanks to Buovjaga

Change-Id: I73e36f50a1fd393859ba775ab084a488047864a3
Reviewed-on: https://gerrit.libreoffice.org/32810
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-07 10:08:48 +00:00
471b58e190 Typo: Postion->Position
Found thanks to Buovjaga

Change-Id: Iacf09325cdb58e0dbdcc9bf0570b2e02ed275132
Reviewed-on: https://gerrit.libreoffice.org/32808
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-07 10:08:36 +00:00
c03d803a72 Replace side-effect--only uses of makeStringAndClear() with setLength(0)
Change-Id: Iaf8011f1bd6a10b324653899b7f51458f7d0b68a
2017-01-05 13:52:17 +01:00
860ecb9e58 require firebird 3.0 for build (don't allow 2.5)
Keep firebird_integer_x64le.odb around for a future 3.x firebird that
will allow opening Firebird 2.5 databases, so that we can test this
capacity in our tests.

Change-Id: I05dbef51284bdb25132ff6cb661659430eea6a92
2017-01-05 13:00:40 +01:00
29f971d0d2 micro opt
Change-Id: I2d713783f1ad533c23a3fe319e7c37b7fd0e0e0d
2017-01-02 21:22:19 +00:00
43cc44107e Remove newly added SAL_WARN_IF
Following Stephan's comment from https://gerrit.libreoffice.org/#/c/32643/

Change-Id: I6bb5c243313c3f0793286c6bae2967a6208dc854
Reviewed-on: https://gerrit.libreoffice.org/32651
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-02 15:48:17 +00:00
4b28e3b687 Typo: m_nColumnPostion->m_nColumnPosition
Change-Id: Iab83a89b5cfa1ca379cb59366682d5d2adeb0e31
Reviewed-on: https://gerrit.libreoffice.org/32645
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-02 15:13:05 +00:00
4e9af515d7 Remove some OSL legacies in dbaccess
Change-Id: Id809265c1df7df48e77ac2d8fbff685c599f8432
Reviewed-on: https://gerrit.libreoffice.org/32643
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-02 15:11:56 +00:00
7b588d7403 Translate German logs in QueryTabWinUndoAct (dbaccess)
Change-Id: Ia9a0dfac2174de6b0edc03d99cae0b9729cef36b
Reviewed-on: https://gerrit.libreoffice.org/32644
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-02 14:27:10 +00:00
7ed8646b07 osl/diagnose.h useless in userinformation (dbaccess)
Change-Id: I44c83f3655d49af9d28dd34a52e9266294b21552
Reviewed-on: https://gerrit.libreoffice.org/32639
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-02 13:49:40 +00:00
a29bd2dabb cleanup tailing backslashes
Change-Id: Idb4bfc97e7d758c58118742affd9a9345c7a99f2
Reviewed-on: https://gerrit.libreoffice.org/32491
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-30 18:48:24 +00:00
833e6ca9d2 use std::vector instead of naked array in SfxItemPool
Change-Id: I2d4ac010ff5818e673567cee05700872588918e4
Reviewed-on: https://gerrit.libreoffice.org/32384
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-12-26 18:35:59 +00:00
f37042f0f2 remove unused ImageLists
since...

commit 0dc13e9c06bf5bc188b427f0760d0dc2eee8f75e
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Tue Jun 10 12:32:03 2014 +0100

    tweak things to allow switching between small and large toolbar icons

Change-Id: I3e1821297c5f7ea1a00356e51167d75265462ee7
2016-12-23 20:52:27 +00:00
5610381dde Dispose component when done
Change-Id: I3ea2004556b01ba992215b9142b9c8a6aabb63c0
2016-12-22 10:56:45 +01:00
da42fabff4 Dispose document when done
Change-Id: I73a1cb1c206a2f55ec0c8948fca29b3976a51e75
2016-12-22 10:50:07 +01:00
6b8ee3c9ba convert VclButtonsType to scoped enum
Change-Id: I9b91108c18e190060dc71546977aa8a3c11f06e1
Reviewed-on: https://gerrit.libreoffice.org/32285
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
2016-12-21 16:19:37 +00:00
e0b71d8e5a remove newly unused SfxImageManager
Change-Id: If68637fe49b5d252ad4ec5d63d56261113be6a7c
2016-12-21 11:07:21 +00:00
5c2f401a5f Minor simplification
Change-Id: Ia953a09f708fd83a2a5b2655dec2ed626891bb7c
Reviewed-on: https://gerrit.libreoffice.org/32099
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-12-17 16:12:52 +00:00
d15b4e2045 teach sallogareas plugin to catch inconsistencies
Change-Id: I8bcea5ffc74d48148bea78da8c17744e288c069a
Reviewed-on: https://gerrit.libreoffice.org/32004
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-15 06:45:14 +00:00
c3586b684c OSL_TRACE->SAL in chart2..oox
Change-Id: I133a6441824bfbefcfcda130119b5c5d706f86b2
Reviewed-on: https://gerrit.libreoffice.org/31907
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-13 06:12:00 +00:00
ae8bd4267a dbaccess: fix testCloneMovesPlusDeletions test
JunitTest_dbaccess_complex spuriously fails 1% of the time with:

1) testCloneMovesPlusDeletions(complex.dbaccess.RowSet)
java.lang.AssertionError: moving to the next record after |deleteRow| and clone moves failed
    at complex.dbaccess.RowSet.testCloneMovesPlusDeletions(RowSet.java:756)

The problem is that line RowSet.java:750 deleteRow() manages to delete
the last row in the set, because the positionRandom() is tricked to
position itself on the last row (which it tries not to do), becuase the
RowSet is currently positioned past-the-end on a deleted row and the
ORowSetBase::impl_getRowCount() is a lying bastard that adds 1 to the
result in this special case.

Funnily both the ORowSetBase::impl_getRowCount() and the test using
positionRandom() were added in CWS rowsetdel.  Yay for randomized
tests!

Change-Id: Ic8c7bfa190f6a5269604cf5b3c338f2d0b64205e
2016-12-12 23:32:14 +01:00
385f624027 Prevent use of ORowSetValue with sal_Bool as TINYINT
sal_Bool and sal_uInt8 are typedefs for the same underlying type, so any use of
ORowSetValue with sal_Bool instead of bool, apparently intending to treat the
value as a boolean, actually treated it as a TINYINT.  (See e.g. recent
7b0c57b2faec875c790051d233d1e9abaed2a3bc "some compilers don't like implicit
bool-to-ORowSetValue conversion".)

Now that there's no way to create a sal_uInt8 ORowSetValue, getUInt8 and the
m_uInt8 union member can probably go away, too.

Change-Id: Ia27554f76e7e9edce6410284b578064573e54fd3
Reviewed-on: https://gerrit.libreoffice.org/31909
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-12-12 18:02:57 +00:00
2d48f5fc0a convert VCLEVENT constants to scoped enum
Change-Id: Ic8ccb0a9715ec05182dacddab2c015b0de6a0fba
Reviewed-on: https://gerrit.libreoffice.org/31675
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-07 07:10:39 +00:00
0c6c37cb01 cleanup unused includes (related to tdf#88206)
cppuhelper/compbase*.hxx and cppuhelper/implbase*.hxx

compbase*.hxx includes implbase*.hxx replace compbase*.hxx if only
implbase*.hxx stuff is used.

Change-Id: I631a20aee411c6a32ffcf470f6e392621755f995
Reviewed-on: https://gerrit.libreoffice.org/31686
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-06 18:17:06 +00:00
9b8fb82150 loplugin:unnecessaryoverride
Change-Id: Iac074bd6f59d2fc890459b45801d0a6143c3eb9e
2016-12-06 10:20:01 +01:00
9ab9a15c06 only IMG_PRIMARY_KEY is actually used
Change-Id: Ie888ed93f0d511e0c040af32f41e8350113b586c
2016-12-05 21:38:52 +00:00
bfde4866e0 convert DecodeMechanism to scoped enum
Change-Id: I5c56634b1bca8e37fa73d02d2428645301b6c547
2016-12-05 12:49:02 +02:00
803215142e convert INetURLObject::EncodeMechanism to scoped enum
Change-Id: I50ea17c7779c7b5cacddf548f1773fd7d6c8bade
2016-12-05 12:49:02 +02:00
d12c8a0f2c loplugin:unnecessaryoverride (dtors) in dbaccess
Change-Id: I22cf2fec8e543582a32b9a4f00221f1b2d864f7a
2016-12-05 09:05:38 +01:00
361c6eb18c Use Size::Width/Height instead of inherited Pair::A/B
Change-Id: Ie0346d5ec054fbe7eff1d4b73814a5e2b9f654c2
2016-11-29 10:22:33 +01:00
e6ffb539ee loplugin:vclwidgets check for assigning from VclPt<T> to T*
Inspired by a recent bug report where we were assigning the result
of VclPtr<T>::Create to a raw pointer.

As a consequence, we also need to change various methods that were
returning newly created Window subclasses via raw pointer, to
instead return those via VclPtr

Change-Id: I8118e0195a5b2b4780e646cfb0e151692e54ae2b
Reviewed-on: https://gerrit.libreoffice.org/31318
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-29 06:45:42 +00:00
6bb20609a2 vcl: rename Window::Notify to EventNotify
There is annoying overloading between Window::Notify and
SfxListener::Notify, and the Window one has apparently fewer
implementations, so rename that and remove lots of disambiguating
"using Notify" in multiply inheriting classes.

Change-Id: I8b597fd9e70cf2e7103b9dfa7cc666e79e7aff49
2016-11-24 22:56:34 +01:00
04a84913ea use o3tl::typed_flags in ConfigurationListener::ConfigurationChanged
Change-Id: I0ad7c02953aa53168dc242f1f374ab871728c84e
2016-11-24 11:27:51 +02:00
ba9b0fb78a convert SAD constants to o3tl::typed_flags
and drop unused SAD_TITLE_STORE_AS

Change-Id: I5114958b3954e3dc3ffd941334c6c4dbfbed7aea
2016-11-23 11:55:09 +02:00
a8b555a260 convert EF constants to o3tl::typed_flags
and remove now unused ByteVector typedef

Change-Id: I9c4b30aea2608cf97e597b00b4a4ea800efac4ec
2016-11-23 11:55:09 +02:00
8af0d5367e convert CBTP constants to o3tl::typed_flags
Change-Id: I453a9bacef737a56e381c4172710ec6acf225f0b
2016-11-23 11:55:09 +02:00
e010834dc1 remove some more global OUStrings
Change-Id: Ic02754f98bfda3b7cd8c06857123d363a96e8d0e
Reviewed-on: https://gerrit.libreoffice.org/31071
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-22 12:37:51 +00:00
6a18fdceb5 trivial makefile cleanups
Change-Id: Ida5bdfa06ecd7907305f4f171ca5ab64260d0259
2016-11-22 13:14:57 +01:00
d187057d2f Revert "add missing component"
This reverts commit 7fe1b39e8abe68357c88536923b7058807b32119.
2016-11-21 10:16:55 +01:00
656e999b5b Revert "add missing component"
This reverts commit b55d17471f73b843943269c6cbd30f99995d8354.
2016-11-21 10:16:55 +01:00
b55d17471f add missing component
Change-Id: I53d50f8e338fcc64e24370a80ce390f7a2be34ba
2016-11-21 09:44:41 +01:00
7fe1b39e8a add missing component
Change-Id: I8b6f6d650c011fc0611d6933894bc64a780ff8c0
2016-11-21 09:44:40 +01:00
bbb9264610 add missing deps on ui files
Change-Id: I28bb2a33c02d8eadced584d3d3f2b62b2e847324
2016-11-21 09:44:39 +01:00
d8a8ed04b1 gbuild allow unitest to run once per lang in WITH_LANG_LIST
this is motivated by the new screenshot feature
the initial proposed solution involved running make screenshot once per lang
which took ~6 hours for --with-lang=ALL on tb68 a reasonnably big
windows slavebot.

with this patch, one can run make screenshot just once and get all the screenshot
the elapsed time is 36 inutes on the same box/same config a 10x improvement.

Change-Id: I4339caebf915c118aa455de2a7e56e1a4e413939
Reviewed-on: https://gerrit.libreoffice.org/30970
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2016-11-20 13:34:40 +00:00
401d07f31f loplugin:datamembershadow
Change-Id: I0206905ce95467a560f8ed24db4403df07d3680e
2016-11-17 11:19:55 +02:00
ec4e48c750 Fix typos
Change-Id: I3e38b1d445c368c28e807202b94c603bd2b2c672
Reviewed-on: https://gerrit.libreoffice.org/30872
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-11-15 14:51:34 +00:00
0d05173015 loplugin:constantparam
Change-Id: Iced8ff99d52d55e6b6c3126affafbea6786e94f0
Reviewed-on: https://gerrit.libreoffice.org/30858
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-15 12:56:26 +00:00
20043e3fa2 coverity#1394296 Dereference before null check
Change-Id: I143b7439b33695aa5bc4e32fd9386692eac37697
2016-11-12 12:21:59 +00:00