Commit Graph

397341 Commits

Author SHA1 Message Date
Miklos Vajna
ecdec24c03 tdf#102384 sw: avoid moving cursors of other windows in SwTextNode::Update()
There is a list of exceptional SwIndex containers in that member
function, like bookmarks, at-char anchored fly frames, etc. If we're
growing (so basically in the safe case), don't touch the cursors of
other windows, either.

This helps to avoid the surprising "I didn't do anything and my cursor
moved" behavior.

Change-Id: I9941fdcb6b7ad4b6e18a321cecc72fdf73d917fd
2016-09-23 18:17:24 +02:00
Caolán McNamara
d17d7c63d2 coverity#1371156 Missing move assignment operator
Change-Id: I187bc61678b5283843227612c243c5a09d0e7eb1
Reviewed-on: https://gerrit.libreoffice.org/29227
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-09-23 16:14:41 +00:00
Caolán McNamara
c136c97875 coverity#1371219 Missing move assignment operator
Change-Id: I72ed6082b561079b45e82d8258fa1abbe23117e2
Reviewed-on: https://gerrit.libreoffice.org/29228
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-09-23 16:13:54 +00:00
Michael Stahl
3de2567853 vcl: Apple clang segfaults on "(", the "{" seems to work better
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)

Change-Id: Ib9c8639d4c821a39afb6b071ccd6c7072e6f9e7c
2016-09-23 17:25:00 +02:00
Noel Grandin
3e22dfa5eb convert formula error codes to scoped enum
Change-Id: I5ff214bf1ec9031e30344bc125bc99916fd11bfb
Reviewed-on: https://gerrit.libreoffice.org/28897
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-09-23 15:22:38 +00:00
Eike Rathke
7d8196ea2f perf: eliminate SfxSimpleHint and move to SfxHint, tdf#87101 related
There were over 150 places in *::Notify() functions that did some
dynamic_cast<SfxSimpleHint*> of which ~98% were unnecessary because the
base class SfxHint passed was an SfxSimpleHint anyway. dynamic_cast
operations come with quite some cost, so avoid if possible. Specifically
for ScFormulaCell::Notify() that created a bottleneck in scenarios where
cells were notified that already handled a previous notification. In
mass operations doing the dynamic_cast before it could be decided
whether having to act on it or not this made 2/3 of all time spent in
the Notify() call.

To get rid of that rename/move SfxSimpleHint to SfxHint and let classes
derive from SfxHint instead of SfxSimpleHint. This comes only with a
slight cost that an additional sal_uInt32 is transported in such hints,
initialized to 0, but this is neglectable compared to the huge gain.

For the rare cases where a Notify() actually expects both, an SfxHint
(formerly SfxSimpleHint) and a derived hint, this changed order of the
dynamic_cast involved so the simple SfxHint::GetId() is handled last.
Modules using such combinations can further optimize by treating the
simple SfxHint::GetId() first once verified that none of the other
derived hints use an ID not equal to zero respectively none of the ID
values the simple hint uses.

Change-Id: I9fcf723e3a4487ceb92336189d23a62c344cf0ce
Reviewed-on: https://gerrit.libreoffice.org/29205
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-09-23 15:14:03 +00:00
Stephan Bergmann
751689283c These functions wouldn't be implicitly declared/defined, anyway
Change-Id: Icd8531a6665b83c801b2f1e62dea5e8c45b06f00
2016-09-23 17:13:13 +02:00
Michael Stahl
fcdf75d946 Makefile.in: check JAVA_HOME/bin, not JAVA_HOME/include
On Mac OS X 10.8, the directory contains "bin" but not "include", so it
re-runs autogen.sh all the time.
JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Change-Id: I9065c8daef47df535f60267fc2c3e7cb23fc3910
2016-09-23 17:07:24 +02:00
Michael Stahl
7ac64b9afa fix denglish comment
Change-Id: I118e06b9664bdfc82de3c75471c28ec8e5dd84d2
2016-09-23 17:07:24 +02:00
Aleksandr Andreev
a303b53b3f Updating cu collation data for Unicode 9.0 and CLDR 30
See http://unicode.org/cldr/trac/changeset/12851

Change-Id: Idce0985c3015a0bfc24cb44a5abdf0eb86e5d183
Reviewed-on: https://gerrit.libreoffice.org/28969
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-09-23 13:24:25 +00:00
Stephan Bergmann
18cd08ae42 cid#1371162 etc.: Move semantics for cppumaker-generated UNO exception classes
For UNO ABI reasons, these classes need to be CPPU_GCC_DLLPUBLIC_EXPORT (so
their RTTI symbols get exported), so they are careful to explicitly declare any
special member functions that would otherwise be declared implicitly, to mark
them CPPU_GCC_DLLPRIVATE.  But for LIBO_INTERNAL_ONLY, we always use
-fvisibility-inlines-hidden (except for MSVC, where it doesn't matter, as
CPPU_GCC_DLLPRIVATE expands to nothing there, either), so can leave those
functions implicitly declared, so not to prevent move ctor and move assign op
from being implicitly declared.

This covers cid#s 1371143, 1371162, 1371185, 1371189, 1371290, and 1371308.

Change-Id: I468088750a02f85a4790d956c37f4c30de03f00c
2016-09-23 15:23:52 +02:00
Pranav Kant
4151c09d9a gtktiledviewer: Wrap dialogs in a GtkScrolledWindow
Change-Id: I33be18779ea680f7a9c20814ca3c3d94d206900b
2016-09-23 18:30:10 +05:30
Aron Budea
451c7de9d7 tdf#102216: move row overflow check after EoF check (CSV import)
With the check in the original place, importing exactly
1048576 rows gave a warning.

Change-Id: Iae98c07f638168d8537436045423ae6274ef7f64
Reviewed-on: https://gerrit.libreoffice.org/29159
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-09-23 12:35:59 +00:00
Samuel Mehrbrodt
949fa9a462 qadevOOo: Remove unused imports
Change-Id: I5295ba9af550d14f56f218765d43ce01a8177247
Reviewed-on: https://gerrit.libreoffice.org/29223
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-09-23 12:29:42 +00:00
Samuel Mehrbrodt
065ef005e9 Make createDesktop return XDesktop, not Object
and adjust/cleanup calling instances

Change-Id: I6b7be34fe6fce0a6fdbf2227f3e565b2f434c88c
Reviewed-on: https://gerrit.libreoffice.org/29221
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-09-23 12:25:52 +00:00
Caolán McNamara
01889962ca Resolves: tdf#99626 only the first queryTermination call in wizards works
cause the first call looks up the "queryTermination" method on the object
and replaces the object with that function, then calls on. Subsequent
calls then try to lookup "queryTermination" on "queryTermination".

Just pass queryTermination directly in the ctor (like all the other
wrappers do)

Change-Id: Ie042081c3c34e33b2f040d1ab1a33eeac4df9c3b
2016-09-23 13:11:57 +01:00
Caolán McNamara
7adb5c683c use std to impl this resource sharing
Change-Id: I41ea7bf672040089ccca5cf2bc449a0d0e78b903
Reviewed-on: https://gerrit.libreoffice.org/29219
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-09-23 12:09:02 +00:00
Jan-Marek Glogowski
04f50946de tdf#97721 KDE4 correct menu checkbox offset
Qt paints checkboxes next to images, so they always start left
oriented in menus.

Change-Id: I33ab0cf443f6716f9f9adc3ec2c394337db5f923
2016-09-23 13:19:02 +02:00
Stephan Bergmann
3ed5847c3e external/firebird: Use gb_Helper_extend_ld_path to add icu dir
Change-Id: If51813fc559a78a54ae5dcae4b8b9213c5e1bae6
Reviewed-on: https://gerrit.libreoffice.org/29215
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-09-23 11:15:05 +00:00
Samuel Mehrbrodt
b316edff1b Handle exception
Change-Id: If295d9a6106c0d03313c80464134e060da72bf53
Reviewed-on: https://gerrit.libreoffice.org/29224
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-09-23 10:49:18 +00:00
Maarten Bosmans
4638436567 Factor out common ScInterpreter::GetInt32() code
This might also be slightly more efficient because for
GetInt32WithDefault() when the value is missing, the
default value is not converted to and from double anymore.

Change-Id: I0a234265273086824f749b04aba022dd5cef322f
Reviewed-on: https://gerrit.libreoffice.org/29203
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2016-09-23 10:36:35 +00:00
Michael Stahl
680b1b5976 liblangtag: stop whining about missing supplementalMetadata.xml
A good way to get developers to add files is to print 80 lines of
stack trace multiple times on startup.

Change-Id: Id563ab1d26d32e6fe3f14b2afb59949ea04f0d6a
2016-09-23 12:32:00 +02:00
Samuel Mehrbrodt
eb00cb1ba8 Remove duplicate comment
Change-Id: I78d207a4be9eeb9ddf1782ed2488c928d9d1744a
Reviewed-on: https://gerrit.libreoffice.org/29222
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-09-23 10:33:04 +00:00
Samuel Mehrbrodt
6de79e3a10 Remove nonsense comments
Change-Id: Iad1091f3c4363940e956219e1723e159c35ea280
Reviewed-on: https://gerrit.libreoffice.org/29220
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-09-23 10:32:35 +00:00
Caolán McNamara
9d0571a276 why this odd unused assignment thing
Change-Id: I4c87e3fb418211a5f3750746e1b6928fbe8f1741
2016-09-23 10:36:35 +01:00
Caolán McNamara
01e4697b6d default assignment operators are good enough
Change-Id: Iaa7fd4112084d673cf768ebb732e1ea8a3383bdc
2016-09-23 10:33:59 +01:00
Miklos Vajna
5878bb1d2f editeng: fix loplugin:cppunitassertequals warnings
Change-Id: Icccd2db45616de708d83058d76ace312db8af94e
2016-09-23 11:30:10 +02:00
Caolán McNamara
59097e8d4c coverity#1371281 Missing move assignment operator
Change-Id: I7d0351931b0baa434bd24db05358e096cfa1b6e2
2016-09-23 10:17:30 +01:00
Caolán McNamara
5840a28fd4 coverity#1373351 make SetTabRows the same as SetTabCols
Change-Id: I9cfe2f3ec96ee72ff2e7657661a003086d301db6
2016-09-23 10:17:30 +01:00
Stephan Bergmann
78cc97405b -Werror,-Wunused-variable (clang-cl)
Change-Id: I829e2d45ac9fabc8fe1a26bebd9e6ce8c2af29c7
2016-09-23 11:13:56 +02:00
Stephan Bergmann
73a346d3e9 This is fixed with MSVC 2015
Change-Id: I032b872f75b59904c1c81e8932ad8058ece301b0
2016-09-23 11:13:03 +02:00
Stephan Bergmann
83ada47b08 -Werror,-Wignored-attributes
(__declspec attribute 'allocator' in MSVC 2015 atlalloc.h; clang-cl)

Change-Id: I88d2bc4667ded75a545c95f428e654be787b03f8
2016-09-23 11:12:06 +02:00
Stephan Bergmann
5d787f957d Don't check HAVE_GCC_VISIBILITY_FEATURE with clang-cl (intended to fail there)
Change-Id: I4cae18e1359f2e30ef4d4d7d550306489fcedd74
2016-09-23 11:10:06 +02:00
Stephan Bergmann
3a2818280a external/liblangtag: Tunnel LD_LIBRARY_PATH to where it's actually needed
At least make-4.1-5.fc24.x86_64's /usr/bin/make (indirectly) links against
libfreebl3.so, so it could erroneously pick up our instdir/program/libfreebl3.so
delivered there from external/nss.  But that's a problem for ASan/UBSan builds,
where that libfreebl3.so is instrumented and expects to find certain symbols
exported from the executable (and which /usr/bin/make of course doesn't have),
so running make from within external/liblangtag/ExternalProject_langtag.mk
fails.

Turns out that the only place where LD_LIBRARY_PATH is needed during the build
of external/liblangtag is when running
workdir/UnpackedTarget/langtag/data/reg2xml.

(This is unrelated to the recent changes to external/liblangtag by the way; just
happend to show up now by accident, when doing an incremental build where
external/nss had already been built when external/liblangtag got rebuilt.
external/firebird has a similar problem, but everybody seems to run ASan/UBSan
builds with --disable-firebird-sdbc anyway for now.)

Change-Id: I6e045b6d33a154e350f4640265e6568f96634187
Reviewed-on: https://gerrit.libreoffice.org/29211
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-09-23 08:55:32 +00:00
David Tardon
7f3395c42d upload liblangtag 0.6.1
Change-Id: I4e9ef9e607a15ab49ea16a2c3920e36a3a1aded2
Reviewed-on: https://gerrit.libreoffice.org/29179
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2016-09-23 08:53:28 +00:00
Mike Kaganski
6bdcb730fa Replace SWRECTFN macro with a class
Change-Id: Ib400c5930be84d26665b0e12a61508c8fbfd7f08
Reviewed-on: https://gerrit.libreoffice.org/29105
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2016-09-23 08:34:12 +00:00
Noel Grandin
e85d92a874 Revert "Revert "remove SfxPoolItemArrayBase_Impl typedef""
This reverts commit b0eecd2d3b.

Now that the necessary parent commits are in, we can re-apply this.
2016-09-23 10:13:24 +02:00
Caolán McNamara
373b44a2fc Resolves: tdf#101971 OleLoad under structured exception guards
sample pptx crashes down in the depths of (apparently pre-installed on
32bit Windows 10) Flash.ocx

Change-Id: I4e083d492e56e72df47b2c172d7f07f0e39b82ea
Reviewed-on: https://gerrit.libreoffice.org/29199
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-09-23 07:37:32 +00:00
Miklos Vajna
52977bdbef cid#1373353 uninitialized members
Change-Id: I88ae046866c616cc7de226e85eaab1a0e76eb59e
2016-09-23 09:11:13 +02:00
Asela Dasanayaka
bb06f2c00e tdf#100726 Improve readability of OUString concatination
concat string in module i18npool to improve readability

Change-Id: I7f447d64703cf5eb07742329ff2656f67214898b
Reviewed-on: https://gerrit.libreoffice.org/29206
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-09-23 07:00:50 +00:00
Jochen Nitschke
70c7e82003 move SfxPoolItemArray_Impl::ReHash to poolio.cxx ...
... it's declared in poolio.hxx

Change-Id: I8cc4a7152f66cf89fb01cd7a718974d76825ec04
Reviewed-on: https://gerrit.libreoffice.org/29181
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-23 06:54:20 +00:00
Laurent Balland-Poirier
792da744f3 Fix Cppcheck report: reduce scope of the variable 'fTemp'
Change-Id: I935de8e287f94f3219542dfe67f7bb4a05be14da
Reviewed-on: https://gerrit.libreoffice.org/29200
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-23 06:53:37 +00:00
Jochen Nitschke
b74d2433c8 don't write item right before destruction
SetRefCount writes only SfxPoolItem members m_nRefCount and m_nKind

Change-Id: Ibd06d4edc619b9a840a8a232d9395dd85c452149
Reviewed-on: https://gerrit.libreoffice.org/29195
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-23 06:53:09 +00:00
Eike Rathke
854254c36f attempt to fix build, ScImportExport( ScDocument*, const OUString& )
... is not unused but only in ifdef _WIN32

commit c4cd079b8f
Date:   Thu Sep 22 15:08:42 2016 +0200

    loplugin:unusedmethods in sc..vcl

Change-Id: I36c8d57fddfffe8c99cf40ae514270f445388d08
2016-09-22 23:53:55 +02:00
Michael Stahl
853a63997a desktop: that wasn't unused, just rarely used
Change-Id: I87c0fb287aa0b3fc5ad0216d8007772de3d03b2f
2016-09-22 23:20:29 +02:00
Eike Rathke
a84f4d266d attempt to fix build, reintroduce TabitemValue::isLast()
commit 7419057e3e
Date:   Thu Sep 22 16:34:14 2016 +0200

    loplugin:unusedmethods in chart2..svx

removed that but vcl/unx/kde/salnativewidgets-kde.cxx needs it.

Change-Id: I1ddc98ffafb1f6a1a22642a9a83cc58085cb4271
2016-09-22 23:21:42 +02:00
Eike Rathke
d519232369 attempt to fix build, PrinterInfoManager::changePrinterInfo() gone
commit 7419057e3e
Date:   Thu Sep 22 16:34:14 2016 +0200

    loplugin:unusedmethods in chart2..svx

removed that from
include/vcl/printerinfomanager.hxx
vcl/unx/generic/printer/printerinfomanager.cxx
but not the empty base class implementation from
vcl/null/printerinfomanager.cxx

Change-Id: I9bfd1c77490c70b9bf7a69c93d34bd0249cce64f
2016-09-22 23:08:17 +02:00
Stephan Bergmann
261113b5c7 -Werror,-Wunused-private-field
Change-Id: I88df0a06482a04609eb0c394dc7d9a023fc7e921
2016-09-22 21:59:41 +02:00
Noel Grandin
e0e8d0fbcf fix windows build
by reverting part of commit
    commit 7419057e3e
    Author: Noel Grandin <noel@peralex.com>
    Date:   Thu Sep 22 16:34:14 2016 +0200
    loplugin:unusedmethods in chart2..svx

Change-Id: I72515c9b5f3739f57d4b63a724a9fa32075b2612
Reviewed-on: https://gerrit.libreoffice.org/29197
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-22 19:57:07 +00:00
Noel Grandin
39293397dd fix windows build
by reverting part of commit
    c4cd079b8f
    Author: Noel Grandin <noel@peralex.com>
    Date:   Thu Sep 22 15:08:42 2016 +0200
    loplugin:unusedmethods in sc..vcl

Change-Id: I4d925532369b37e13d97edd907c12f59a350e6ea
Reviewed-on: https://gerrit.libreoffice.org/29196
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-22 19:41:49 +00:00