summaryrefslogtreecommitdiffstats
path: root/stoc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* tdf#92440: Reduce code areas covered by mutexStephan Bergmann2015-06-301-14/+31
| | | | Change-Id: Iec79e088e67e1cddeb8242d069fae911b305f613
* Revert "Typo: iff->if"Julien Nabet2015-06-231-1/+1
| | | | | | This reverts commit cf92da3d6e1de14756efe3f1ee79f393a2f3787d. iff can mean "if and only if" so not a typo
* Typo: iff->ifJulien Nabet2015-06-231-1/+1
| | | | Change-Id: I3fc60856b5a56e71d70b55c89323be074bdec3b3
* Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe2015-06-172-5/+4
| | | | | | | | | | | | | | | | | | | | | | This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* cppcheck:unreadVariableNoel Grandin2015-06-151-1/+0
| | | | Change-Id: I03981ceba67280e8ed98a9add7f24b3bd958d522
* cppcheck:redundantAssignmentNoel Grandin2015-06-151-2/+2
| | | | Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7
* loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann2015-06-0813-49/+49
| | | | Change-Id: Iaf1585c0413d07ce4f8712570d9195d6a21fa174
* loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann2015-05-112-2/+2
| | | | Change-Id: Ib9c8485590d939491c9bb2cf3f2b8a70200da231
* jboolean-related clean-upStephan Bergmann2015-05-081-4/+4
| | | | Change-Id: Iecd03d0343b9b7c3a8b23b5a1e9654148b94d44c
* redundant castCaolán McNamara2015-04-293-14/+11
| | | | Change-Id: Ib812a7cafabc4820946da67fb3f8896b6aad1461
* Various #include <sal/log.hxx> fixupsStephan Bergmann2015-04-224-0/+6
| | | | | | | | | | | | | | rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
* remove unnecessary use of void in function declarationsNoel Grandin2015-04-157-55/+55
| | | | | | | | | | | | | | | | ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
* convert RegError to scoped enumNoel Grandin2015-04-091-88/+88
| | | | Change-Id: I55977c38578cb59deb195d91f8948da2e0905b6a
* convert RegValueType to scoped enumNoel Grandin2015-04-091-19/+19
| | | | Change-Id: Ic672e75db4d7323760577b19490ffa28d38965b6
* remove reg keytype constants and related codeNoel Grandin2015-04-091-20/+2
| | | | | | since we no longer support the RG_LINKTYPE stuff Change-Id: If388ecfa0c475471b99b26155ad554ec702ca734
* convert REG_ constants to scoped enumNoel Grandin2015-04-093-4/+4
| | | | Change-Id: I11d92218c5e0678d497f8964723033e2bd8b3300
* Typo: creat->createJulien Nabet2015-04-041-1/+1
| | | | Change-Id: I5e57e6d506504933096f4c8e371b0ddc93c04cbd
* loplugin:staticmethodsNoel Grandin2015-04-024-13/+13
| | | | Change-Id: I3ae555fd9f0dc3c11ea301ee1cb2c799fbec820d
* Add support for cppu::UnoType<void>Stephan Bergmann2015-04-012-2/+2
| | | | Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
* Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann2015-04-019-47/+47
| | | | Change-Id: I14b923990a012e8e85ca9170cdffd6b8e3626d89
* Use OUString::unacquiredStephan Bergmann2015-03-312-2/+2
| | | | | | | | found with git grep -E '\* *\<reinterpret_cast\>[^>]+\<OUString\>' Change-Id: I9306d4ad8e3b1664f54cb7df86f2d79bfd3c6cb9
* Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann2015-03-317-22/+22
| | | | Change-Id: Ib3610f9d244b15f8f752c0f781600f5c7e7a944f
* Clean up remaining C-style casts among void pointersStephan Bergmann2015-03-292-5/+5
| | | | Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-2810-89/+89
| | | | Change-Id: I2ac79c757d9116d35436ae1adc0e11e7040e725d
* const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann2015-03-262-3/+3
| | | | Change-Id: Ifbe12a569a964203b07b47da5207ab0ffe00d4aa
* stoc: must check *both* bDisposed and bInDisposeMichael Stahl2015-03-141-1/+1
| | | | | | | | | | Implementation::inspect() was crashing with a null reflection_ in CppunitTest_libreofficekit_tiledrendering because another thread was disposing it. Actually, why are there 2 bools for this and not one enum with 3 values? Change-Id: Icd27145d3203e1f48a9841ee6251a50cb73f7988