summaryrefslogtreecommitdiffstats
path: root/stoc
Commit message (Collapse)AuthorAgeFilesLines
...
* tdf#96223: introspection queries for XPropertySet againOliver Specht2015-12-211-15/+1
| | | | | | | | | | this patch removes the search by name for css::beans::XPropertySet because that fails if that is indirectly inherited e.g. with css::util::XSearchDescriptor Change-Id: I7f40b1d109d9bddc0987bea8eb3eda5b7f1aaaa9 Reviewed-on: https://gerrit.libreoffice.org/20792 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
* More loplugin:nullptr automatic rewrite (within templates)Stephan Bergmann2015-12-101-1/+1
| | | | Change-Id: I9bc06cfb5eeb38fd7ae7fb25f876ea9f96e4a65a
* use comphelper::containerToSequenceNoel Grandin2015-11-192-21/+4
| | | | | | in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
* Don't assume sal_Unicode is unsigned shortStephan Bergmann2015-11-171-19/+19
| | | | Change-Id: If61f46cceff4e2d4fe49e77788516ef60ab6eb50
* use initialiser list for Sequence<OUString>Noel Grandin2015-11-161-3/+1
| | | | | | | Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* use initialiser for Sequence<OUString>Noel Grandin2015-11-152-4/+2
| | | | | | | | | | | | | replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* use initialiser for Sequence<OUString>Noel Grandin2015-11-151-2/+1
| | | | | | | | | | | | | performed using: 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: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* use initialiser syntax for Sequence<OUString>Noel Grandin2015-11-1514-28/+14
| | | | | | | | | | | | | | 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>
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-1020-257/+257
| | | | Change-Id: I162b47199e959f97c3bed1f307225db944017e4f
* new loplugin: oncevarNoel Grandin2015-11-091-2/+1
| | | | | | | Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann2015-11-061-1/+1
| | | | Change-Id: I183fe5bf36ede2f411c86b5650348cb10978211b
* use uno::Reference::set method instead of assignmentNoel Grandin2015-11-0511-130/+104
| | | | Change-Id: I6cb508e392d5e194c80fc6d0927c86414e4ab05b
* yyyyyNoel Grandin2015-11-045-20/+14
| | | | Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
* no need to use OUString constructor in call to createInstanceNoel Grandin2015-11-011-3/+1
| | | | | | | Change-Id: Iaf3d83ba1490cb1d97a5bd4d1f7cd6943d4a7296 Reviewed-on: https://gerrit.libreoffice.org/19704 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* UNO: no need to use OUString constructor when calling createInstanceNoel Grandin2015-10-3010-23/+15
| | | | | | | Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* com::sun::star->css in starmath,stoc,svgio,svlNoel Grandin2015-10-297-21/+21
| | | | | | | Change-Id: If4308b358a55351f6e951ebf055df076ce4ad4ce Reviewed-on: https://gerrit.libreoffice.org/19667 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* don't allocate uno::Reference on the heapNoel Grandin2015-10-271-4/+4
| | | | | | | | | | | | There is no point, since it's the size of a pointer anyway (found by temporarily making the new operator in uno::Reference deleted). Change-Id: I62a8b957fef9184f65d705600acfdab4116dcb34 Reviewed-on: https://gerrit.libreoffice.org/19603 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:defaultparamsStephan Bergmann2015-10-191-1/+1
| | | | Change-Id: I240e44c0d342f75f613f8a74e11ba149961adae1
* Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-1229-513/+513
| | | | Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
* Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-124-8/+8
| | | | Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
* loplugin:unusedmethodsNoel Grandin2015-10-022-27/+0
| | | | | | | Change-Id: Ie1603adf3908fd0668bcbe8f75c6bafa0d0bfd6c Reviewed-on: https://gerrit.libreoffice.org/19072 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Fix typosAndrea Gelmini2015-09-302-4/+3
| | | | | | | Change-Id: Ic3d2171521e308261c354d8f699b44b26c95f1ea Reviewed-on: https://gerrit.libreoffice.org/18978 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* loplugin:removeunusedmethods, remove unused stuffNoel Grandin2015-09-293-31/+0
| | | | Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
* boost->stdCaolán McNamara2015-09-181-2/+2
| | | | | | | | Change-Id: Ie490bf2c6921f393bdeed96b1a8815996b701bf0 Reviewed-on: https://gerrit.libreoffice.org/18670 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* stoc: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe2015-09-0733-96/+89
| | | | | | | | | with the variadic variants. Change-Id: I34fe287036ca9b8e5edcb121ba70d9a93ab05276 Reviewed-on: https://gerrit.libreoffice.org/18338 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann2015-08-311-2/+2
| | | | Change-Id: Iec2bc6669bdc5c405de4f361f70cad569c33c0c1
* loplugin: defaultparamsNoel Grandin2015-08-203-3/+3
| | | | Change-Id: Ibf0ea539d2a95073a12f84964759d9c7a94baa7b
* cppcheck: noCopyConstructorCaolán McNamara2015-08-121-0/+4
| | | | Change-Id: I62da241f237b17fc192dd586bcd35b5bd6ea284a
* cppcheck:noExplicitConstructorNoel Grandin2015-08-072-2/+2
| | | | Change-Id: I2717d3d120df8af5b7e9af8d147a57b9f5b5ecbe
* svx,starmath: inline some use-once typedefsNoel Grandin2015-08-041-6/+2
| | | | Change-Id: I5a7405d326b7258cbed476c30f88e57559b4cc8e
* loplugin:unusedmethodsNoel Grandin2015-07-301-5/+1
| | | | | | | Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* stoc: tzname is _tzname on MSVC 14.0David Ostrovsky2015-07-281-0/+3
| | | | | | | | Change-Id: I899ed85dc86edceb83b262643f83d87edd4ba905 Reviewed-on: https://gerrit.libreoffice.org/17361 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* Tweak introspection/invocation to be more useful to PyUNOMatthew J. Francis2015-07-272-37/+206
| | | | | | | | | | | | | - Make introspection/invocation handle XNameReplace and XIndexReplace - Make introspection handle XUnoTunnel - Adapt PyUNO to take advantage of the additionally handled interfaces Change-Id: Ie848d10fd2c31cad76fcc3a746262a490a2c9ae1 Reviewed-on: https://gerrit.libreoffice.org/17314 Reviewed-by: Matthew Francis <mjay.francis@gmail.com> Tested-by: Matthew Francis <mjay.francis@gmail.com>
* Merge ImplIntrospectionAccess and ImplIntrospectionAdapterMatthew J. Francis2015-07-232-160/+128
| | | | | | | | | | | | | This eliminates a lifecycle error which caused an instance of ImplIntrospectionAdapter to be created on every failing call to ImplIntrospectionAccess::queryAdapter(), rather than only once, due to an incorrectly conceived weak reference relationship between the two. Change-Id: If0c7c906acadfd7f81a0ce9e7f7a949154494720 Reviewed-on: https://gerrit.libreoffice.org/16972 Reviewed-by: Matthew Francis <mjay.francis@gmail.com> Tested-by: Matthew Francis <mjay.francis@gmail.com>
* Fix logic in the fast path of Implementation::inspect()Matthew J. Francis2015-07-221-91/+22
| | | | | | | | | | | | - Merge TypeCache and ClassCache - Don't fill SupportedClassSeq before the fast exit for a cache hit - Do query XPropertySet blind in the degenerate interface case Change-Id: I3fd8ab4a215f4c217e1a687af679aef4a21b68b9 Reviewed-on: https://gerrit.libreoffice.org/16921 Reviewed-by: Matthew Francis <mjay.francis@gmail.com> Tested-by: Matthew Francis <mjay.francis@gmail.com>
* loplugin:simplifyboolStephan Bergmann2015-07-162-3/+3
| | | | Change-Id: Ib53ce4a10877361274dd9d4499d5eb797889cae9
* Translate German commentsMatthew J. Francis2015-07-162-248/+247
| | | | Change-Id: I1d1c66fb2c62a3c6e0c65c2b89efcd8bfd2b87cd
* cppcheck: noExplicitConstructorCaolán McNamara2015-07-158-18/+14
| | | | Change-Id: Ia86c6a2ce6c1f2501d0b18181966b61d9ef78746
* cppcheck: noExplicitConstructorCaolán McNamara2015-07-154-12/+12
| | | | Change-Id: Id438b987f72ae57bd4fa882e01fba17d3fa5b95b
* cleanup some unnecessary direct usage of the OString/OUString C API.Noel Grandin2015-07-101-4/+2
| | | | | | | Change-Id: I6edee95aae1c169ce70063562a0c1b287e0c4735 Reviewed-on: https://gerrit.libreoffice.org/16861 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Eliminate pointless string copiesMatthew J. Francis2015-07-091-17/+7
| | | | Change-Id: I30049795f511704a43ed0eaf8dd0841c7109c334
* Reduce the amount of up front work in performing introspectionMatthew J. Francis2015-07-081-46/+199
| | | | | | | | | | | | | | | | | | Previously, when using PyUNO over a remote bridge, each remote call which returned an object could result in 50+ further calls to query interfaces on the result, regardless of whether and how the object was then used. The majority of these queries were made under css.script.Invocation to pre-cache certain information about the returned object. By making better use of available information to eliminate interface queries which are certain to fail, and lazily acquiring those interfaces which are required, remote scripting is significantly accelerated. In general, this also gives a small speedup for local scripting. Change-Id: I4f36da6b5f09cb0d22f21291f05fbea2ae7ae697 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Use OUString::starts/endsWithStephan Bergmann2015-07-081-42/+16
| | | | Change-Id: I88effbf6f88dfb286f85f8fbd06bab8033aca6b0
* Whatever that "SDL-Bug" was supposed to be, it is clearly irrelevant by nowStephan Bergmann2015-07-081-10/+5
| | | | Change-Id: Iaa3482e0895b1ccb1f1743893d64ae1941f3f396
* Reduce variable scopeStephan Bergmann2015-07-081-9/+6
| | | | Change-Id: Ia9e427dfbd6e7f87087f5df334ec68acbcdfc624
* Fix typosAndrea Gelmini2015-07-081-2/+2
| | | | | Change-Id: I020c7ce4d9aa93cb0292378a410cdb9f7788e920 Signed-off-by: Michael Stahl <mstahl@redhat.com>
* loplugin:unusedmethods sax,shell,stoc,basegfxNoel Grandin2015-07-062-9/+0
| | | | Change-Id: I8f3871fd4e82b6850718b6f2a8757f3043d00017
* Fix typosAndrea Gelmini2015-07-041-1/+1
| | | | | | | Change-Id: Ic6415423f46aaee7ba90239a617c318cf92ae222 Reviewed-on: https://gerrit.libreoffice.org/16711 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
* Revert "loplugin:unusedmethods sax,shell,stoc,basegfx"Michael Stahl2015-07-032-0/+9
| | | | | | The basegfx changes appear to break Windows builds. This reverts commit 3b32c5898ff4e744d3f18b00421b433500426d74.
* loplugin:unusedmethods sax,shell,stoc,basegfxNoel Grandin2015-07-032-9/+0
| | | | Change-Id: Ia5d63f7153e4b02acc5e206739316264d6d1184e