summaryrefslogtreecommitdiff
path: root/vbahelper
AgeCommit message (Collapse)AuthorFilesLines
2016-03-15vcl: move graph.[hx]xx to graphic.[hc]xxChris Sherlock1-1/+1
It's IMO a bit confusing to see a "graph" header that doesn't strictly deal with graphs, but graphics. Backporting to 5.1 series to allow for easier backporting of other potential hotfixes. Change-Id: Ic37c6cd78e23d05939486f98667144c4453bb0a3 Reviewed-on: https://gerrit.libreoffice.org/22949 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2015-11-20Seems more natural to pass a homogenous list by initializer_listStephan Bergmann1-2/+2
...than by template parameter pack (even if that requires using ServiceDecl*, as initializer_list cannot take reference types) Change-Id: Ia986201b52d8daedfe925f132ebc79bc2c0ba378
2015-11-20add mapKeysToSequence/mapValuesToSequence methods to comphelperNoel Grandin1-7/+2
and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-18com::sun::star->css in vbahelper/Noel Grandin17-40/+40
Change-Id: I7ab89b01cf6817b365a02e73d4635dfdb5b40440 Reviewed-on: https://gerrit.libreoffice.org/20022 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-17use unique_ptr for pImpl in vcl,vbahelper,uuiNoel Grandin1-1/+0
Change-Id: Icb7573c24c681a8fc0570d61b6a30dab91378eb8
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian2-197/+446
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 syntax for Sequence<OUString>Noel Grandin1-2/+1
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann10-29/+29
Change-Id: I6eb8949e3e14d82b52af9a2ba26d67bf1bd8e1a5
2015-11-09new loplugin: oncevarNoel Grandin1-2/+2
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-06coverity#1338249 Uncaught exceptionCaolán McNamara1-1/+1
Change-Id: Ife52263b250e11720575cec800834f7608f25d6c
2015-11-04yyyyyNoel Grandin1-2/+2
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann37-443/+443
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-06vba: convert to variadic InheritedHelperInterfaceImpl&WeakImpl etcDouglas Mencken8-8/+8
Variadic templates ~-i.e. templates, which can take an arbitrary number of arguments of any type-~ is new C++11 feature note that uno::Reference and cppu::UnoType can only take one parameter thus leave XNamedObjectCollectionHelper non-variadic in vbacollectionimpl.hxx Change-Id: I22e60fa050ee31d39ae8bb7cac06cf243c4587b1 Reviewed-on: https://gerrit.libreoffice.org/19145 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-16boost->stdCaolán McNamara1-3/+2
Change-Id: Ic18be8b86727dd1179a7e39c70493d088ed00557
2015-09-10vbahelper: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe30-61/+53
with the variadic variants. Change-Id: I8a7f7c81a876b5f1ac987375f8c43bbef89dc087 Reviewed-on: https://gerrit.libreoffice.org/18461 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-08-27Clean up emptyStringStephan Bergmann1-2/+1
Change-Id: I5350322e5c957127fe125e633b31b2492410995e
2015-08-27Clean up sEmptyStephan Bergmann1-4/+2
Change-Id: If1b2bfe308caa2bce92e73d2c5c86ee273faed93
2015-08-03inline some use-once typedefsNoel Grandin6-17/+8
Change-Id: I02cbbba56a2ad83e0ac3d806265a7e0d6a29594d Reviewed-on: https://gerrit.libreoffice.org/17495 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-28inline "old" SbERR constantsNoel Grandin3-4/+4
Change-Id: I3e6665351de97692ae70207e8b623ad008ca8c9a
2015-07-21loplugin:unusedmethods vbahelperNoel Grandin5-18/+0
Change-Id: Ia04e2682e3bd05591b67b9fe15557ce8c0e7939e Reviewed-on: https://gerrit.libreoffice.org/17234 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-16loplugin:simplifyboolStephan Bergmann2-2/+2
Change-Id: I06135270e460cd554cca9153292dcc1984d50d43
2015-07-04Fix typosAndrea Gelmini3-3/+3
Change-Id: Id9296115f30858e7fd470a199e59343a96d7deec Reviewed-on: https://gerrit.libreoffice.org/16712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-07-02coverity#1309054 Uncaught exceptionCaolán McNamara1-1/+1
Change-Id: I81c8983a981e1dfeff17f62c852163e6290dceb4
2015-06-27coverity#1308448 Uncaught exceptionCaolán McNamara1-1/+1
Change-Id: Ib6e994cc89ddfaf504f5b585127d5ea4fb257458
2015-06-16Fix typosAndrea Gelmini1-1/+1
Change-Id: I28cfc629dc3d6ef54128615452667ccce86c1072 Reviewed-on: https://gerrit.libreoffice.org/16297 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-05-25cppcheck: noExplicitConstructorCaolán McNamara7-8/+8
Change-Id: Ic323f07196d8a0d106d9ddf73a06db377c23fb98
2015-05-22convert POINTER constants to scoped enumNoel Grandin2-20/+20
Change-Id: Iea29ce5fd6c620535197d3ca8538335078430e19 Reviewed-on: https://gerrit.libreoffice.org/15825 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-05Use typed Timer::SetTimeoutHdl LinkStephan Bergmann1-4/+2
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-05-05loplugin:staticmethodsNoel Grandin4-7/+7
Change-Id: I86e2095bee82a2a6a28b8750e5a328c4d395e2aa
2015-04-29convert STR_EVENT constants to scoped enumNoel Grandin1-1/+1
- also add needed infrastructure to o3tl::enumarray so we can use std::find on it - move the Impl inside the .cxx file, no need to expose it in the header Change-Id: I7758a6175849f46723d97b1e657f846524c3b7cd
2015-04-23loplugin:staticmethodsNoel Grandin1-1/+1
Change-Id: Ib0c0841e48814d1a6e13bcd4575725d86ffa5e5e
2015-04-08A UNO Any can't contain an AnyStephan Bergmann3-3/+3
...and css::uno::makeAny<css::uno::Any>() was never meant to be used. Introduce css::uno::toAny for the (template-code) cases that shall return an Any for both Any and non-Any inputs. Change-Id: Ifa977d73f1da71b2fedde7e8140b19497c4a0257
2015-04-08fix shadow errorNoel Grandin1-0/+1
introduced by my commit 216fdcbdb4c17f349ffd68abd1f372bea3287fad "convert RECALCMODE_ constants to scoped enum" Change-Id: Ie7db053741205faeac70e3d21757774567f43ce0
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann1-1/+1
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann1-1/+1
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann1-1/+1
Change-Id: I5be2bed2203cd3807d3d9659e09e5f60f7a3257c
2015-03-24loplugin:constantfunction: variousNoel Grandin1-13/+0
Change-Id: I6eddda9f4b31c7ce413c328b6a857a81bd222eed
2015-03-17Fix various XServiceInfo implementationsStephan Bergmann1-0/+6
...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
2015-03-06V801: Decreased performanceCaolán McNamara9-14/+14
Change-Id: I97c7977fdfea57b5d1c45ce0c5902b74cc719db9
2015-03-04V813: Decreased performanceCaolán McNamara1-4/+4
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
2015-02-07loplugin:deletedspecialStephan Bergmann1-9/+4
Change-Id: Id3f938a5794e29b14c6adca0065465f3412c5fe2
2015-02-05Updated all precompiled headers.Ashod Nakashian2-2/+1
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin2-8/+8
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
2015-01-20Drop unused comphelper::service_decl::component_getFactoryHelper paramsStephan Bergmann1-5/+2
Change-Id: Ia47c0bc3539ddf8f925cd053a2431c742c46d337
2015-01-20Some more loplugin:cstylecast: vbahelperStephan Bergmann1-2/+2
Change-Id: I0b09119d0084ac4eed8d805c4fbca0afc013080d
2015-01-19Fix typo code Resouce->ResourceAndrea Gelmini2-3/+3
Change-Id: I6e68c13e4513c2f8cc38e237646db7dffc88fe3b Reviewed-on: https://gerrit.libreoffice.org/13986 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-19fdo#39440 reduce scope of local variablesMichael Weghorn1-8/+12
This addresses some cppcheck warnings. Change-Id: I1cd8b118e2598b8b18fb445851a3bb41e554267b Reviewed-on: https://gerrit.libreoffice.org/13967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-19Fix typo comments Resouce->ResourceAndrea Gelmini1-3/+3
Change-Id: Ia3195a21ad46b4c9830ee6293135dfe5945986a2 Reviewed-on: https://gerrit.libreoffice.org/13985 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara5-9/+10
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-12-15vbahelper: Use appropriate OUString functions on string constantsStephan Bergmann2-2/+2
Change-Id: Iabe3deccf77a79db03909b8ae6ab70322cf0ffba