403714 Commits

Author SHA1 Message Date
Noel Grandin
25702ff6c9 loplugin:unusedenumconstants read-only constants in writerfilter
Change-Id: I3cc0d696059b130a8f1f1d8d3b1908d2e84d1a75
Reviewed-on: https://gerrit.libreoffice.org/34017
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-08 11:00:32 +00:00
Mohammed Abdul Azeem
9b72409487 Adding an iterator for fastattributes:
This helps to avoid the expensive allocation and
freeing of OUString at some places.

Change-Id: I7d49974ce13799fcf62b989ce5d3c61b01316190
Reviewed-on: https://gerrit.libreoffice.org/34011
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2017-02-08 10:49:34 +00:00
Caolán McNamara
73cc391e9c use c++11 data()
Change-Id: Id111686979d6002d4b4206d18980c38e6260971f
2017-02-08 10:41:07 +00:00
Caolán McNamara
f12b4be44d coverity#707560 Uninitialized scalar variable
Change-Id: Ia041c86a689f92795298ee16922ab42734820ec6
2017-02-08 10:41:07 +00:00
Caolán McNamara
fb107f15b2 coverity#1242486 Out-of-bounds access
Change-Id: I24d73edd90a7fbfe63dd70a1784fb2276ceb079b
2017-02-08 10:41:06 +00:00
Caolán McNamara
27a673ac52 coverity#1371289 Missing move assignment operator
Change-Id: Idc26faf904f0c89cfd66f53bb311d8ce9b41eaab
2017-02-08 10:41:06 +00:00
Caolán McNamara
193ec57c89 coverity#1400143 Missing move assignment operator
by using a vector and let the defaults kick in

Change-Id: I84e6144ab4beeeb316ccb830e7be55e35d942062
2017-02-08 10:41:06 +00:00
Caolán McNamara
d8baaf43b0 coverity#1400144 Uninitialized pointer field
Change-Id: Ie7031679c60b70eb8a79062cdd0353c3da1550e4
2017-02-08 10:41:06 +00:00
Caolán McNamara
1428e9e0ab coverity#1400141 Unchecked return value
Change-Id: I69f99910bb5748e8e182639387fa3cdbc04b5589
2017-02-08 10:41:06 +00:00
Caolán McNamara
0008b7564a coverity#1400142 Dereference after null check
Change-Id: Ifdb77761a6d8a6dbcbb8f59c84734f767fe0dfaf
2017-02-08 10:41:06 +00:00
Caolán McNamara
0898d12d21 ofz#394 xbm ParseDefine problem
Change-Id: I75fb761d23fdb3780088a9d209200429edb57a26
Reviewed-on: https://gerrit.libreoffice.org/32876
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-02-08 10:37:03 +00:00
Stephan Bergmann
321205e4a3 And more blind fix for apparently buggy GCC 4.8
Change-Id: Iaad8362ce263a19302a284554bf5925205c35ec3
2017-02-08 11:20:36 +01:00
Stephan Bergmann
42d2bdcf05 And more blind fix for apparently buggy GCC 4.8
Change-Id: I0aad8ccf24eca383c763010cfdefba19465c487d
2017-02-08 11:14:56 +01:00
Stephan Bergmann
3b53a4cdb5 Blind fix for apparently buggy GCC 4.8
cf. <http://ci.libreoffice.org/job/lo_tb_master_linux_dbg/10952/console>

Change-Id: If947e338be0ab17f41f74f8e70e6281f46a7f57c
2017-02-08 11:10:30 +01:00
Stephan Bergmann
88692a2d24 This should have been OUStringLiteral
(which hopefully also fixes some tb's complaints about the code)

Change-Id: Ie7529ad40c5c91214c281e84461888525cbbf479
2017-02-08 10:57:00 +01:00
Cor Nouws
aa974f3993 tdf#105818 Grid and Help Lines menu does't always offer what it promises
Change-Id: I7c0c4f932dc953b7892fc0b812c9e9e045230e49
Reviewed-on: https://gerrit.libreoffice.org/33990
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2017-02-08 09:51:55 +00:00
Stephan Bergmann
91cafef7d3 -Werror,-Wunused-private-field
Change-Id: Ibba8f9d1823471cc548220d4de62041151898f12
2017-02-08 10:36:42 +01:00
Stephan Bergmann
1ba76fa81e Use OUStringLiteral
Change-Id: I76b83140222cfd7e313736936b2803997c43836d
2017-02-08 10:14:21 +01:00
Stephan Bergmann
fc51789ad0 Solaris C++ 5.2 compiler is no longer relevant
Change-Id: I520a58438e156661d3e01a899e97ee33d9f19102
2017-02-08 10:14:21 +01:00
Stephan Bergmann
07b51bc283 Use OUStringLiteral
Change-Id: I6fd5f86288b303c8e3ce1cd072368df578e5e6a9
2017-02-08 10:14:21 +01:00
Stephan Bergmann
d7a2e94e65 Use OUStringLiteral
Change-Id: I720f70f81db92d75cdd83aa20a1cbf5a311b092b
2017-02-08 10:14:21 +01:00
Stephan Bergmann
3c5c11bf63 Use OUStringLiteral
Change-Id: I20685c733b12ef2a7efc894091a6e40d1347ac84
2017-02-08 10:14:21 +01:00
Stephan Bergmann
3783df2027 rtl_str_shortenedCompare_WithLength -> OString::startsWith
Change-Id: I3eabdeba10d8d1064f00b817b04f03aad8a6b352
2017-02-08 10:14:20 +01:00
Stephan Bergmann
dd1cdac272 Clean up curious by-4/by-2 loop indices
...that had been like that ever since ff09f8d6ef2c613037f039dbcafcad6b76243a48,
"MWS_SRX644: migrate branch mws_srx644 -> HEAD" at least, for no apparent
reason.

Change-Id: I6f8bd44179b232b7b39e493d443a443a60522a5c
2017-02-08 10:14:20 +01:00
Stephan Bergmann
9123dda5c4 Use OUStringLiteral
Change-Id: I905fe6553f0ad7f0d2dd1ac1bc771b2d42f35fe2
2017-02-08 10:14:20 +01:00
Stephan Bergmann
ccc2b4ec0e Use OUStringLiteral
Change-Id: I15580bd0395145f9554cd3a155c4825ba95005b3
2017-02-08 10:14:20 +01:00
Stephan Bergmann
40035bbbbc Drop bogus check for escaped $
This apparently wanted to check whether the $ starting a potential pattern
occurrence was escaped by a preceding $.  However:

* The check itself was broken, erratically looking into sPattern instead of
  _inout_rFileURL for the $.

* The check was bogus, as it would have misinterpreted e.g. "$$$(loggername)".

* The resulting string is documented (in
  officecfg/registry/schema/org/openoffice/Office/Logging.xcs) to be passed
  through css.util.PathSubstitution.  However, neither the PathSubstitution
  service's documentation (in offapi/com/sun/star/util/PathSubstitution.idl) nor
  its implementation (SubstitutePathVariables::impl_substituteVariable in
  framework/source/services/substitutepathvars.cxx) appear to support esacping
  $ with a preceding $.  So it looks more reasonable to remove the check
  completely here.

Change-Id: I445493d444904cd54f166adcbf870a918d1f9982
2017-02-08 10:14:20 +01:00
Stephan Bergmann
55717b14e0 Remove newly-unnecessary #includes from cppumaker-generated files
...after e57ca02849c3d87142ff5ff9099a212e72b8139c "Remove dynamic exception
specifications" dropped uses of UNO exception types from those generated files.
This needed first adapting client code that implicitly depended on those
#includes in the generated files it included ("Add missing #includes":
6dce9c6757823b9e89863716ae70ff4e8ddd4e60,
a34d9150b419ee7471b96599d877ff1091d6b567,
fed3783e77e00635e50622e7229b06c9e25451f1).

Change-Id: Ia1defda2d586b69092f53feef3644875192cbea4
Reviewed-on: https://gerrit.libreoffice.org/34014
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-08 08:39:24 +00:00
Miklos Vajna
ad24a7c7f4 oox, sfx2: can use std::move() here
Change-Id: I0add196f79045e8cb7280b2b7d1d8620e4ec669e
Reviewed-on: https://gerrit.libreoffice.org/34013
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-02-08 08:19:34 +00:00
Noel Grandin
f5245bf483 loplugin:unusedenumconstants read-only constants in xmloff
Change-Id: I88afb3b4b3aa7d823c46062ead894561a66ac275
Reviewed-on: https://gerrit.libreoffice.org/33995
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-08 08:17:46 +00:00
Noel Grandin
37e9eae8ac remove unused constants from RES_MSG
Change-Id: I3eaa1f051440a91c8c5b4996e28dea4e0d3933e5
Reviewed-on: https://gerrit.libreoffice.org/33994
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-08 08:17:27 +00:00
Noel Grandin
a3190d7201 remove unused SCHATTR_DIAGRAM_STYLE
and associated SvxChartStyleItem and SvxChartStyle

Change-Id: I1564a4583125dd32af71e4eff338dfcefc6517c4
Reviewed-on: https://gerrit.libreoffice.org/33988
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-08 08:12:56 +00:00
Stephan Bergmann
7c62784314 loplugin:useuniqueptr (clang-cl)
Change-Id: I9b9a6af2a7ff2dd64c474ec7f2dd084d4feb76f0
2017-02-08 08:41:17 +01:00
Stephan Bergmann
c0d7a40be2 loplugin:useuniqueptr (clang-cl)
Change-Id: Ic774c9ad174ea522da85585cd1d36f89ca6b1d64
2017-02-08 08:41:00 +01:00
Stephan Bergmann
fed3783e77 Add missing #includes
...like 6dce9c6757823b9e89863716ae70ff4e8ddd4e60, for Windows-only code

Change-Id: I35f37aae2e6f55ff8ed82afc710a9b59a43b028c
2017-02-08 08:40:06 +01:00
Michael Stahl
653e181fb8 Revert "remove ugly operator* in DynamicErrorInfo"
This reverts commit b5e3f8a5fa98a249ecd50021c33cf2a5c7a3b4fc.

The problem is this:

==24217== Conditional jump or move depends on uninitialised value(s)
==24217==    at 0x29A25FCE: SfxObjectShell::SetError(unsigned int, rtl::OUString const&) (objmisc.cxx:220)
==24217==    by 0x29A35E6E: SfxObjectShell::ImportFrom(SfxMedium&, com::sun::uno::Reference<com::sun::text::XTextRange> const&) (objstor.cxx:2300)
==24217==    by 0x29A3705C: SfxObjectShell::DoLoad(SfxMedium*) (objstor.cxx:765)
==24217==    by 0x29A6BC48:
SfxBaseModel::load(com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) (sfxbasemodel.cxx:1802)

The commit is bogus because it introduces a
DynamicErrorInfo::GetErrorCode(), which overloads
ErrorInfo::GetErrorCode(), which is used at least in
DynamicErrorInfo_Impl::RegisterEDcr() and used to return a constructor
argument of DynamicErrorInfo but now returns pImpl->lErrId,
which is what this statement is trying to initialize.

Ultimately this causes my clang+ASAN build to fail because the
uninitialized error code happens to be detected as a mere Warning:

Test name: testMathMalformedXml::Import
assertion failed
- Expression: !xComponent.is()
- loading succeeded: sw/qa/extras/ooxmlimport/data/math-malformed_xml.docx

Change-Id: I9141144e0bc356ee54279948f2fce036d1831a86
2017-02-07 23:02:57 +01:00
Michael Stahl
32cae6a2ea Revert "create ErrorHandlerFlags scoped enum for error handling flags"
This reverts commit 05e78bde26d8b8b257ed22a0ce20c5b386a629d1.

Depends on the other commit that needs reverting
2017-02-07 23:02:28 +01:00
Michael Stahl
178f530697 sfx2: if the exception thrown by filter isn't known...
... then don't silently ignore it but just abort.  Evidently this cannot
happen, because if it were a real possibility the author of this
exception handler would have at least called SetError here.

Change-Id: Iaa5f1f1d4cac388ae08214f6031a8bc279e6fceb
2017-02-07 23:02:18 +01:00
Caolán McNamara
54380811ac ofz: get the font info early inside leak disabled code
cause we don't have a tear-down to release it

Change-Id: I86a72288a1ed03bf5fc5b6a00d9067f3f1063580
2017-02-07 20:42:29 +00:00
Stephan Bergmann
8c2f9bb5b8 Remove duplicate documentation comment
Change-Id: I5215f4a27a5fde9e34ba1dce0a6f68f8dfbf0f97
2017-02-07 21:10:12 +01:00
Maxim Monastirsky
4d4d25ee6f Always use split button for .uno:CharBackColor
Change-Id: I4dd01ec8692fff77a94d6fa698e438581f6dbf37
2017-02-07 21:34:58 +02:00
Maxim Monastirsky
5350dfca60 tdf#105631 Notebookbar doesn't use wide buttons
So we want non-split behavior only in SidebarToolBox,
not in the derived NotebookbarToolBox.

Change-Id: I064bbe59b97da301a13889ad78a31227cfd693ee
2017-02-07 21:34:58 +02:00
Stephan Bergmann
afe76d1a4e SDK, just stop tampering with my term's title
Change-Id: If053466ed5f2e74ea4b73719f6e07789c055998d
2017-02-07 20:34:13 +01:00
Stephan Bergmann
ccc827a593 Blind fix for build
Change-Id: I0e992eb2e10c71de1e04b9283a012c8e8f229612
2017-02-07 20:25:38 +01:00
Stephan Bergmann
da147a4e64 Clean up C-style interface nonsense
Change-Id: Ie9a1e106f5270fd307d211fa334449c698acf25d
Reviewed-on: https://gerrit.libreoffice.org/34010
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-07 19:23:01 +00:00
Jochen Nitschke
bddc774795 remove CREATE_OSTRING macro
Change-Id: I7d5e1570918adc3b0cf2063d9735414233011a81
Reviewed-on: https://gerrit.libreoffice.org/34009
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-07 19:06:16 +00:00
Michael Meeks
58d4a3122c tdf#104870 - keep reference on the TitleBar while setting title.
Unlikely to fix the issue, but may help.

Change-Id: I3c319f550e86f2ab731b072d86d258dca12d34fa
Reviewed-on: https://gerrit.libreoffice.org/33998
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2017-02-07 18:56:16 +00:00
Caolán McNamara
555e1ff4cc bubble the original gtk surface type through rendering
this may make scrolling a tad faster

Change-Id: I0c2cc9df85932e25dbfed88727d3b83d299671c7
2017-02-07 16:41:51 +00:00
Xisco Fauli
f9d0f55b2e tdf#79236: Add uitest
Change-Id: I916438d688ec24c67b581bf2e025215dda228e97
Reviewed-on: https://gerrit.libreoffice.org/34000
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-02-07 16:40:54 +00:00
Stephan Bergmann
cc33a1ccda Remove MINGW_CLIB_DIR left-over
...after b28f25aa9eeed71bd3f399a9c8fc4f1497b92e82 "MINGW_CLIB_DIR is unused"

Change-Id: I8395d492120455378ec001e37428a645aa879440
2017-02-07 17:19:18 +01:00