summaryrefslogtreecommitdiffstats
path: root/jvmfwk/plugins
Commit message (Collapse)AuthorAgeFilesLines
* update loplugin stylepolice to check local pointers varsNoel Grandin2016-04-261-7/+7
| | | | | | | | | | | | are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1 Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann2016-04-202-6/+6
| | | | Change-Id: I65fdd933e2a3973053359024d8d9c733f79a6477
* clang-tidy performance-unnecessary-copy-initializationNoel Grandin2016-04-181-2/+1
| | | | | | | | | | | probably not much performance benefit, but it sure is good at identifying leftover intermediate variables from previous refactorings. Change-Id: I3ce16fe496ac2733c1cb0a35f74c0fc9193cc657 Reviewed-on: https://gerrit.libreoffice.org/24026 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* clang-tidy performance-unnecessary-value-param in variousNoel Grandin2016-04-141-1/+1
| | | | | | | Change-Id: I7168d44dab8e6a8e37bb7920d744ff32f5e52907 Reviewed-on: https://gerrit.libreoffice.org/24019 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* cleanup: remove unused com/sun/star/uno includesJochen Nitschke2016-04-123-4/+0
| | | | | | | | | | | | Sequence.h(xx), Any.h(xx) and Type.h(xx) and remove unused using-declarations from these files. Add a few missing includes provided by them. Change-Id: I6b91b6d1fdf9d0496dd546c0aab9bdcc6831a5d4 Reviewed-on: https://gerrit.libreoffice.org/23805 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* tdf#94306 replace boost::noncopyable ...Jochen Nitschke2016-04-111-2/+4
| | | | | | | | | | | | | ... in modules editeng to oox. Replace with C++11 delete copy-constructur and copy-assignment. Remove boost/noncopyable.hpp includes and one unused boost/checked_delete.hpp include in linguistic. Change-Id: I5a38d8e5ac1b4286bdeb3858d56490a53d13fe80 Reviewed-on: https://gerrit.libreoffice.org/23928 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Fix memory leaksStephan Bergmann2016-03-101-8/+7
| | | | Change-Id: If9f7dc4a28d5e005959f0d4a0a2ed317b699f292
* No more need for jfw_freeJavaInfoStephan Bergmann2016-03-101-1/+1
| | | | Change-Id: I2426a76936b4099a243ce8c102da867e7868aac3
* Turn JavaInfo sal_Sequence* member into rtl::ByteSequenceStephan Bergmann2016-03-101-4/+3
| | | | Change-Id: Iecd476970b0b7a46afe223f71e95b0010048d7b1
* Turn JavaInfo rtl_uString* members into OUStringStephan Bergmann2016-03-101-10/+4
| | | | Change-Id: Ieb23b0c36ef56a4793a56cdb450df34e4d9bce1d
* Manage JavaInfo instances via new/deleteStephan Bergmann2016-03-101-3/+1
| | | | Change-Id: I10a113718e525b646c51aa8a19f9f2b75a36714a
* include/jvmfwk/*.h -> .hxx (only ever included from C++ code)Stephan Bergmann2016-03-091-1/+1
| | | | Change-Id: Ia912e937d5a48afb6f8f5345b20bb7bd517fc4f1
* use consistent #define checks for the Windows platformNoel Grandin2016-02-174-12/+12
| | | | | | | | | | | | stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Remove excess newlinesChris Sherlock2016-02-094-9/+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 Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
* jvmfwk/plugins: clean-up in util.cxxDouglas Mencken2016-01-061-15/+4
| | | | | | | | | | These are some remnants from the-good-old-days of Mac OS X 10.4 support and 2005's commit b8871d23ea14d72ba1a22376e7812ea5840d1084 Change-Id: I9a14aaac94e4a6e4961a2fa9a5020d9cf3a07c9d Reviewed-on: https://gerrit.libreoffice.org/21124 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* cppcheck: noExplicitConstructorCaolán McNamara2015-11-243-7/+7
| | | | Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
* Don't assume sal_Unicode is unsigned shortStephan Bergmann2015-11-171-1/+1
| | | | Change-Id: I0439e40b0843ba9a0939eb47e339f396d26f3c64
* loplugin:nullptr (automatic rewrite; Mac-specific code)Stephan Bergmann2015-11-102-2/+2
| | | | Change-Id: Iee5d66a1c14e1583edb0945d23cec9986ce7a830
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-106-27/+27
| | | | Change-Id: I9dfcec9488b2a25e32d3934766d6d4b208a8c2dc
* new loplugin: oncevarNoel Grandin2015-11-091-4/+2
| | | | | | | Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* java: combine nested if statementsNoel Grandin2015-11-051-4/+2
| | | | Change-Id: I0457b81668e9427a3c8d6a4af93438b7fb2bb7ba
* Avoid using reserved identifiers, add missing includesStephan Bergmann2015-11-041-2/+6
| | | | Change-Id: I23b548de1f07a4ec5acfeef7c553030a1f098311
* Add mode linesStephan Bergmann2015-11-042-0/+8
| | | | Change-Id: I4026040cfa2cd34c3a33a0a3dd4651caeb11c76f
* loplugin:passstuffbyrefStephan Bergmann2015-11-042-2/+2
| | | | Change-Id: If6e877b326bb630f1b4631a60241a93a6e6cbaca
* tdf#94716 allow Oracle's JDK to be used on OS X 10.10 and 10.11Patrick Luby2015-11-045-11/+181
| | | | | | | Change-Id: Ide9b4beebb407e4ceee30f1d99f29d028c848d8c Reviewed-on: https://gerrit.libreoffice.org/19131 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-124-11/+11
| | | | Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
* Fix typosAndrea Gelmini2015-09-301-2/+2
| | | | | | | Change-Id: I44bdb63bef76e9686e995661a24a3bef7cd50ab7 Reviewed-on: https://gerrit.libreoffice.org/18959 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann2015-08-312-4/+4
| | | | Change-Id: I09552b4ddd8900952f499c8b9c44933c7240c866
* loplugin:defaultparamsStephan Bergmann2015-08-231-1/+1
| | | | Change-Id: I797b986b227381bc066ea3aa305c0abf78cd156a
* tdf#39440 reduce scope of local variablesMichael Weghorn2015-08-222-2/+2
| | | | | | | | | This addresses some cppcheck warnings. Change-Id: I6ab170c4426494ab9fc53017f88e47fbfdbd9aad Reviewed-on: https://gerrit.libreoffice.org/17920 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
* loplugin: defaultparamsNoel Grandin2015-08-111-1/+1
| | | | Change-Id: I5afe7f9f5caa1f5e55c6218bdb3771571ff0dafa
* loplugin:simplifyboolStephan Bergmann2015-07-163-4/+4
| | | | Change-Id: Iaa3c04ba936512f511de238f5a3ca5b0f9afc06d
* tdf#92483 fix initializing JRE on Win 64bit (load java's msvcr100.dll)Christian Lohmaier2015-07-111-1/+1
| | | | | | | | | | problem is that the offsets/sizes are of different type than ptrdiff_t, and when using without casting, the resulting address is way off... Change-Id: I7b1cdd611c8c4b317cd33ca8fbbda2e7e8f5f4fc Reviewed-on: https://gerrit.libreoffice.org/16938 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: Jenkins <ci@libreoffice.org>
* jvmfwk: pluginlib: Add support for mips64.Heiher2015-07-101-0/+2
| | | | | | | | Change-Id: I525266468ae2ef04976d7835cc22c930293a0dc3 Reviewed-on: https://gerrit.libreoffice.org/16911 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Fix typosAndrea Gelmini2015-07-032-2/+2
| | | | | | | | Change-Id: I8e429d1f03aac7c7cdb7ff4b43b3f46d40292510 Reviewed-on: https://gerrit.libreoffice.org/16709 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
* Fix typosAndrea Gelmini2015-06-301-2/+2
| | | | | | | Change-Id: I1c5e4970d4e90bdea68a901294594104de5e189e Reviewed-on: https://gerrit.libreoffice.org/16582 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
* jvmfwk: pass along -Xss to JVM on AMD64 tooMichael Stahl2015-06-241-2/+2
| | | | | | | | | | The PythonTest_dbacces_python in a clang ASAN build on F21 started to fail with StackOverflowError in JNI_CreateJavaVM on the main thread, and this fixes the problem. Seen with java-1.8.0-openjdk-1.8.0.45-39.b14.fc21.x86_64 Change-Id: I87dfb4b62d547b334c19261aad88b4856489776f
* jvmfwk: slighly misleading error messageMichael Stahl2015-06-241-1/+1
| | | | Change-Id: I64165a03c16d852781173fe2de952e6b803efaf7
* Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe2015-06-172-8/+8
| | | | | | | | | | | | | | | | | | | | | | 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:redundantAssignmentNoel Grandin2015-06-152-10/+7
| | | | Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7
* java:regulatize the order of 'final' and public/privateNoel Grandin2015-06-111-1/+1
| | | | | | | | | | Make the order be 'public static' or 'private static' Just makes the code nicer to read. Change-Id: I182424bda45a2d68642e5d04c6091d268ace1fe2 Reviewed-on: https://gerrit.libreoffice.org/16202 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:loopvartoosmallNoel Grandin2015-06-011-1/+1
| | | | Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
* Support Azul Zulu JRE on Linux and Mac OS X, tooStephan Bergmann2015-05-291-1/+2
| | | | Change-Id: I317506319b91daf006a0ba79874ff265ba6ed4da
* Support Azul Zulu JRE (at least on Windows)Stephan Bergmann2015-05-272-1/+3
| | | | | | | | (<http://www.azulsystems.com/products/zulu/downloads> also offers it for Linux and Mac OS X, so it could be added to more javavendors_*.xml if need be; I only checked it actually works with a Windows 64-bit LO build) Change-Id: If549a0d5bf1459eba2f6ba2bd545cfd55a20cea6
* fprintf -> SAL_INFOStephan Bergmann2015-05-272-8/+2
| | | | Change-Id: I4808e89cf5b90c99df3d4c4474c578a8c8f611a6
* More loplugin:simplifyboolStephan Bergmann2015-04-275-8/+8
| | | | Change-Id: I51e7a11149676a8b5396d9eb993a509859cdf725
* Improved loplugin:literaltoboolconversion looking into cond. exprs.Stephan Bergmann2015-04-231-1/+1
| | | | | | ...automatic rewriter fixes Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee
* Various #include <sal/log.hxx> fixupsStephan Bergmann2015-04-221-0/+1
| | | | | | | | | | | | | | 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
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-281-2/+2
| | | | Change-Id: I302d313f2d14d908672d4534aad1818e820eaae4
* loplugin:staticfunctionNoel Grandin2015-03-271-1/+1
| | | | Change-Id: I10c30ef28e7321882a720d1e7869a75a89febfc5