summaryrefslogtreecommitdiff
path: root/stoc
AgeCommit message (Collapse)AuthorFilesLines
2016-01-10Fix typosAndrea Gelmini2-2/+2
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-21loplugin:unusedfields in sfx2,slideshow,starmath,stocNoel Grandin4-10/+3
Change-Id: If3622b23c45dd3a2a4e9869452142d1f6b47919e
2015-12-21tdf#96223: introspection queries for XPropertySet againOliver Specht1-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>
2015-12-10More loplugin:nullptr automatic rewrite (within templates)Stephan Bergmann1-1/+1
Change-Id: I9bc06cfb5eeb38fd7ae7fb25f876ea9f96e4a65a
2015-11-19use comphelper::containerToSequenceNoel Grandin2-21/+4
in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
2015-11-17Don't assume sal_Unicode is unsigned shortStephan Bergmann1-19/+19
Change-Id: If61f46cceff4e2d4fe49e77788516ef60ab6eb50
2015-11-16use initialiser list for Sequence<OUString>Noel Grandin1-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>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin2-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>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin1-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>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin14-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>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann20-257/+257
Change-Id: I162b47199e959f97c3bed1f307225db944017e4f
2015-11-09new loplugin: oncevarNoel Grandin1-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>
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann1-1/+1
Change-Id: I183fe5bf36ede2f411c86b5650348cb10978211b
2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin11-130/+104
Change-Id: I6cb508e392d5e194c80fc6d0927c86414e4ab05b
2015-11-04yyyyyNoel Grandin5-20/+14
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-01no need to use OUString constructor in call to createInstanceNoel Grandin1-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>
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin10-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>
2015-10-29com::sun::star->css in starmath,stoc,svgio,svlNoel Grandin7-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>
2015-10-27don't allocate uno::Reference on the heapNoel Grandin1-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>
2015-10-19loplugin:defaultparamsStephan Bergmann1-1/+1
Change-Id: I240e44c0d342f75f613f8a74e11ba149961adae1
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann29-513/+513
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann4-8/+8
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-02loplugin:unusedmethodsNoel Grandin2-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>
2015-09-30Fix typosAndrea Gelmini2-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>
2015-09-29loplugin:removeunusedmethods, remove unused stuffNoel Grandin3-31/+0
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
2015-09-18boost->stdCaolán McNamara1-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>
2015-09-07stoc: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe33-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>
2015-08-31loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann1-2/+2
Change-Id: Iec2bc6669bdc5c405de4f361f70cad569c33c0c1
2015-08-20loplugin: defaultparamsNoel Grandin3-3/+3
Change-Id: Ibf0ea539d2a95073a12f84964759d9c7a94baa7b
2015-08-12cppcheck: noCopyConstructorCaolán McNamara1-0/+4
Change-Id: I62da241f237b17fc192dd586bcd35b5bd6ea284a
2015-08-07cppcheck:noExplicitConstructorNoel Grandin2-2/+2
Change-Id: I2717d3d120df8af5b7e9af8d147a57b9f5b5ecbe
2015-08-04svx,starmath: inline some use-once typedefsNoel Grandin1-6/+2
Change-Id: I5a7405d326b7258cbed476c30f88e57559b4cc8e
2015-07-30loplugin:unusedmethodsNoel Grandin1-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>
2015-07-28stoc: tzname is _tzname on MSVC 14.0David Ostrovsky1-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>
2015-07-27Tweak introspection/invocation to be more useful to PyUNOMatthew J. Francis2-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>
2015-07-23Merge ImplIntrospectionAccess and ImplIntrospectionAdapterMatthew J. Francis2-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>
2015-07-22Fix logic in the fast path of Implementation::inspect()Matthew J. Francis1-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>
2015-07-16loplugin:simplifyboolStephan Bergmann2-3/+3
Change-Id: Ib53ce4a10877361274dd9d4499d5eb797889cae9
2015-07-16Translate German commentsMatthew J. Francis2-248/+247
Change-Id: I1d1c66fb2c62a3c6e0c65c2b89efcd8bfd2b87cd
2015-07-15cppcheck: noExplicitConstructorCaolán McNamara8-18/+14
Change-Id: Ia86c6a2ce6c1f2501d0b18181966b61d9ef78746
2015-07-15cppcheck: noExplicitConstructorCaolán McNamara4-12/+12
Change-Id: Id438b987f72ae57bd4fa882e01fba17d3fa5b95b
2015-07-10cleanup some unnecessary direct usage of the OString/OUString C API.Noel Grandin1-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>
2015-07-09Eliminate pointless string copiesMatthew J. Francis1-17/+7
Change-Id: I30049795f511704a43ed0eaf8dd0841c7109c334
2015-07-08Reduce the amount of up front work in performing introspectionMatthew J. Francis1-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>
2015-07-08Use OUString::starts/endsWithStephan Bergmann1-42/+16
Change-Id: I88effbf6f88dfb286f85f8fbd06bab8033aca6b0
2015-07-08Whatever that "SDL-Bug" was supposed to be, it is clearly irrelevant by nowStephan Bergmann1-10/+5
Change-Id: Iaa3482e0895b1ccb1f1743893d64ae1941f3f396
2015-07-08Reduce variable scopeStephan Bergmann1-9/+6
Change-Id: Ia9e427dfbd6e7f87087f5df334ec68acbcdfc624
2015-07-08Fix typosAndrea Gelmini1-2/+2
Change-Id: I020c7ce4d9aa93cb0292378a410cdb9f7788e920 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-07-06loplugin:unusedmethods sax,shell,stoc,basegfxNoel Grandin2-9/+0
Change-Id: I8f3871fd4e82b6850718b6f2a8757f3043d00017
2015-07-04Fix typosAndrea Gelmini1-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>