summaryrefslogtreecommitdiff
path: root/sdext
AgeCommit message (Collapse)AuthorFilesLines
2016-07-20use Any constructor instead of temporariesNoel Grandin1-3/+1
(cherry picked from commit 58a32075ca4f457f570af75aef368dd6c389aca7) Change-Id: Iffb82a2cee1a28d89eeea2b905aaa14086ee475a
2016-07-20Fix typosAndrea Gelmini1-1/+1
Reviewed-on: https://gerrit.libreoffice.org/24317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit fc2590cfa112222500a6c847917d7545f60024c6) Change-Id: Id81b16ff26283611f0b84929d831c827f847ab73
2016-07-20tdf#99352 - Some VclPtrs leak past DeInitVCLNoel Grandin1-5/+6
Change-Id: I74b27b1d8b662a644df580ae128643b8495355f8 Reviewed-on: https://gerrit.libreoffice.org/24204 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit 67d333c608a662621c1069aacdec75e45e33a183)
2016-07-20Fix typosAndrea Gelmini5-5/+5
Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 64d624b65124ac02d8ee59b135593fd9d8eb9067) Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86
2016-07-12loplugin:unusedfieldsNoel Grandin2-2/+0
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864 (cherry picked from commit ec3f72415850bd865eb030cf2b7edb55b99d4756)
2016-07-12loplugin:unusedfields variousNoel Grandin1-3/+1
(cherry picked from commit 1f86864e97bea96fdc608f8c8b93024ad4684d51) Change-Id: I59d9f7f73677358b4ae57efda965d43718bdf0d5
2016-07-12Remove excess newlinesChris Sherlock34-104/+0
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 Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> (cherry picked from commit a238b1f8d304bf1e2ffb357937f3ec888ee8ac89) Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
2016-07-12update loplugin stylepolice to check local pointers varsNoel Grandin1-17/+17
are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit e8fd5a07eca70912ddee45aaa34d434809b59fb7) Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1
2016-03-22delete hidden pages before deleting unused mastersDavid Tardon1-7/+7
Change-Id: I40b624c0e6e6cff2c88815f7d16e862f09d79d5c (cherry picked from commit 0f0cea28c75a6565c7803b54536d4a8720ead160) Reviewed-on: https://gerrit.libreoffice.org/23422 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-03-09tdf#98421: properly import vertical mirroring of images from PDFMike Kaganski4-0/+67
Since commit ae0e830f9ace78b889713e7e74ce46f88fa21470, mirroring is handled correctly in LO, so no need to handle it specially in PDF import code. Commit 11c865031cffc170d3db6b00fb48c683fb4ff070 fixed import to Draw, this one fixes import to Writer. Also, unit tests for both cases are provided. Change-Id: I9ef9753a364af34f9e158052855c5dba1300c934 Reviewed-on: https://gerrit.libreoffice.org/23028 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 345d5b172cb81f86e91cb5c0b49f54d4957b9663) Reviewed-on: https://gerrit.libreoffice.org/23063 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-02-02tdf#96993: remove obsolete vertical mirror hack from PDF importMike Kaganski2-11/+4
Since commit ae0e830f9ace78b889713e7e74ce46f88fa21470, mirroring is handled correctly in LO, so no need to handle it specially in PDF import code. This obsolete handling causes double-mirroring. Change-Id: Ia873f0426e444cafd80b24b7d209e90eb481d8f4 Reviewed-on: https://gerrit.libreoffice.org/21870 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de> (cherry picked from commit f8058b556d7ef23098bf6265f41e3f01f0529879) Reviewed-on: https://gerrit.libreoffice.org/22011 Reviewed-by: Mike Kaganski <mikekaganski@hotmail.com>
2016-01-21Ensure irreflexivity of std::stable_sort predicateStephan Bergmann1-0/+4
GCC 6 libstdc++ checks for that in debug mode now Change-Id: I879b1b5eb9b54ad19749e561c55333b0a084c699 (cherry picked from commit 72865662208e1c053c8a48b4751e234cf3a312da) Reviewed-on: https://gerrit.libreoffice.org/21635 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-11-23loplugin:unusedfields in sdext/Noel Grandin3-4/+0
Change-Id: Ibf5083cde3553289b3a29c9b992800e4bd82e6e4
2015-11-17Use std::vector instead of boost::shared_arrayStephan Bergmann1-19/+19
Change-Id: If28713daab4bb5cbdb450879c2dc2a265c62a4f3
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian2-151/+144
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin1-3/+1
using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-11new loplugin: memoryvarNoel Grandin3-12/+9
detect when we can convert a new/delete sequence on a local variable to use std::unique_ptr Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc Reviewed-on: https://gerrit.libreoffice.org/19884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann58-655/+655
Change-Id: I8aec30601862feaeb99e3ce01adf61665688fa9a
2015-11-09new loplugin: oncevarNoel Grandin2-18/+10
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann6-22/+22
Change-Id: I7efbeda973c2cfa2472eec5b3d309e8e22aa5d9b
2015-11-05Remove unused PPPOptimizerTokenEnum enumeratorsStephan Bergmann2-238/+0
Change-Id: Ia94becb796f71aa602c65375539f8cdafb270bca
2015-11-05Remove unused stringsStephan Bergmann2-14/+0
Change-Id: I376a1a9c8198e71eb8fd893ca4382fd25bd55817
2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin28-80/+70
Change-Id: I03a8cc8405e1e7ddf75fabd2ba7d85edddf5b30c
2015-11-04yyyyyNoel Grandin3-6/+4
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-01no need to use OUString constructor in call to createInstanceNoel Grandin1-2/+2
Change-Id: Iaf3d83ba1490cb1d97a5bd4d1f7cd6943d4a7296 Reviewed-on: https://gerrit.libreoffice.org/19704 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin14-20/+18
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-29com::sun::star->css in sdextNoel Grandin31-80/+80
Change-Id: I1720391c6842a75033aca4e1b852a8cb89ca1efa Reviewed-on: https://gerrit.libreoffice.org/19638 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-23Remove obsolete version map filesStephan Bergmann1-25/+0
Change-Id: Ic179264fe306bb2bca9797f10e26c0224fb1dd00
2015-10-20loplugin:defaultparamsStephan Bergmann1-2/+1
Change-Id: I4c6936e882455b0ef39169a904281a9124b61689
2015-10-13Fix building with --enable-pdfimport on FreeBSD.Damjan Jovanovic1-2/+0
Found-by: Don Lewis Patch-by: Don Lewis (cherry picked from commit 788b479fff17918d21d26f71ce33c4cea0835251) Change-Id: Idb72387186a7575989292179d52e4629415e5741
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann51-621/+621
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-06presenter console: add 'Restart Timer' buttonMiklos Vajna4-1/+63
Use case is that the presentation is started a few minutes in advance, so the audience can check if they are at the correct room, seeing the title side. Then previously the presentation had to be stopped and started again, so the presenter had an idea how much time the talk took so far. The side effect of this workaround was that the audience saw a short flash while the presentation was not running. Fix this by adding a button to just restart the timer, then it's not needed to stop/start the presentation manually. The two icons are just placeholders for now, real design is still needed. Change-Id: Id67e7e53a339ea5672dfb1c261f63d43466e9eff
2015-10-04Prefer getSelectedFiles to getFiles (sdext+qadevOOo)Julien Nabet1-1/+1
Change-Id: I4827e47b7d67b0112c0f9023c0db4ce8975f06e1 Reviewed-on: https://gerrit.libreoffice.org/19126 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2015-09-30Fix typosAndrea Gelmini6-7/+7
Change-Id: I3ea8a90f0ec917b4e26335fcd31a5f7e0888589e Reviewed-on: https://gerrit.libreoffice.org/18972 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-27cppcheck: noExplicitConstructorCaolán McNamara21-39/+39
Change-Id: Ibb94d40706fced3c1c053fd58ef4e2af2d849587
2015-09-18boost->stdCaolán McNamara47-230/+226
Change-Id: I21ca18c23277423d106d990fd537d58108bd1084 Reviewed-on: https://gerrit.libreoffice.org/18679 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-10Handle IOException during filter detectionStephan Bergmann1-51/+56
Change-Id: Ie2b8b65f0f2b7b34efbba478a7ccda7ef3719bd6
2015-09-07Work around bogus warning C4701: potentially uninitialized local variableStephan Bergmann1-1/+1
Change-Id: I9c5d9c53785828b3535c960f826ccd3720b2e4c3
2015-09-07clang-analyzer-deadcode.DeadStoresStephan Bergmann1-4/+2
...the computation of nTop, nBottom was done in this curious way ever since its inception with 108632dc97a720639df495de3b5d966ee286be95 "CWS-TOOLING: integrate CWS impressaccessibility3" Change-Id: Ib516e944d96dc10ff12d0a82c0d8c921b57b0466
2015-09-07clang-analyzer-deadcode.DeadStoresStephan Bergmann1-10/+10
Change-Id: I7c19ce1bde1eb405fe64aba7504fc511c0ab646e
2015-09-01sdext: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe40-89/+79
with the variadic variants. Change-Id: I663029b736489b81ed4ccb5f7bd657fbaf091bdf Reviewed-on: https://gerrit.libreoffice.org/18206 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-31loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann7-29/+29
Change-Id: I82330271362a428b2850d0f561770d35de1ee6b0
2015-08-29o3tl/cow_wrapper: remove boost dependencyDaniel Robertson3-0/+3
Remove boost dependencies from ::o3tl::cow_wrapper, and add the necessary includes to files including checked_delete and noncopyable that do not already include the necessary files. Change-Id: Iedae4232002792724226829a5d5cf9d16ffd0686 Reviewed-on: https://gerrit.libreoffice.org/18125 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-20loplugin: defaultparamsNoel Grandin3-12/+12
Change-Id: Ibf0ea539d2a95073a12f84964759d9c7a94baa7b
2015-08-19Consolidate isFileUrl checksStephan Bergmann2-1/+3
Change-Id: I1b74fdfaa09c4d0d6c296253958e83e78b546a9a
2015-08-05remove unused SfxFilterFlags valuesNoel Grandin1-1/+1
from both the code and the XCU files Change-Id: I47f1f33c3ad4a37e346e3b8020dd9d3e284ccb77 Reviewed-on: https://gerrit.libreoffice.org/17522 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-03sdext: replace boost::function with std::functionMichael Stahl17-56/+68
This one is a bit odd, wonder if that was a bug: - aAction(aPredicate); + aAction(aPredicate()); Change-Id: I0ddd565b65fe4778a297486805fa7f7a12702224
2015-08-03new loplugin: refcountingNoel Grandin2-9/+9
This was a feature requested by mmeeks, as a result of tdf#92611. It validates that things that extend XInterface are not directly heap/stack-allocated, but have their lifecycle managed via css::uno::Reference or rtl::Reference. Change-Id: I28e3b8b236f6a4a56d0a6d6f26ad54e44b36e692 Reviewed-on: https://gerrit.libreoffice.org/16924 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-30loplugin:unusedmethodsNoel Grandin4-20/+0
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-17formatting of public/private/protected section qualifiersNoel Grandin6-10/+10
make it consistent across the codebase, no space between keyword and the colon Change-Id: Idca61ddfc74ad2460fb05fe417499324b05e5de5 Reviewed-on: https://gerrit.libreoffice.org/17148 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>