summaryrefslogtreecommitdiffstats
path: root/extensions
Commit message (Collapse)AuthorAgeFilesLines
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-123-4/+4
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* java: convert fields to local variables where possibleNoel Grandin2014-11-121-8/+4
| | | | | | | | | found by PMD Change-Id: I05b45382b8fb1b734657ce9421a20e6ef6fbe542 Reviewed-on: https://gerrit.libreoffice.org/12376 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* cleanup improper SOLARIS linker libs and optionsRichard PALO2014-11-112-20/+1
| | | | | | | and, most importantly, forget MOTIF! Change-Id: I0230932618b396ec4d5bf7638a13e5a80a4fada0 Signed-off-by: Michael Stahl <mstahl@redhat.com>
* fdo#86050 Let LibreOffice add scrollbars to widgets only when necessaryAdolfo Jayme Barrientos2014-11-091-1/+0
| | | | | | | Change-Id: I1a930a413c071d4d0c8855315dc85339e01b7d9b Reviewed-on: https://gerrit.libreoffice.org/12322 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
* fdo#84938: replace MOUSE_ modifier constants with enumNoel Grandin2014-11-071-1/+1
| | | | | | | | and make the two categories of constants non-overlapping, we really don't need to risk confusion in order to save 6 bits in a data structure like this. Change-Id: I2251195d8e45ed04e2a89e47ae9c3e52cf0475c0
* Revert "use the new OUString::fromUtf8 method"Stephan Bergmann2014-11-066-9/+9
| | | | | | | | This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
* use the new OUString::fromUtf8 methodNoel Grandin2014-11-066-9/+9
| | | | Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
* fdo#38835 strip out OUString globalsNoel Grandin2014-11-055-26/+13
| | | | | | | they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
* -Werror,-Winconsistent-missing-overrideStephan Bergmann2014-11-041-1/+1
| | | | | | (loplugin:saloverride does not warn about them because they depend on template args) Change-Id: I41a1dbfd7db24e58154f6f3810781219119418ba
* coverity#703954 Unchecked return valueCaolán McNamara2014-11-011-1/+1
| | | | Change-Id: Ifc8a4c2a3f22fc12b620a3bd0dd8ace57a99629c
* Removed duplicated includesAndrea Gelmini2014-10-311-8/+9
| | | | | | | Change-Id: I5362d997bfa086c9fb1726efcb15132a966684f6 Reviewed-on: https://gerrit.libreoffice.org/12160 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* nothing to see here, move alongCaolán McNamara2014-10-301-1/+1
| | | | | | | | | | | | brown bag fix for commit cdbfbd0f7c3ed3bd3235f97197d279c41913245b Date: Thu Oct 30 09:21:40 2014 +0000 coverity#735608 Division or modulo by float zero and coverity#735607 Division or modulo by float zero Change-Id: I8e04765cf5354d57a54b166a5e2af71b40b670bb
* Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini2014-10-301-1/+1
| | | | | | | | Change-Id: Ia43976d84eede6f699381bc4f3daf89b95e4cb4f Reviewed-on: https://gerrit.libreoffice.org/12150 Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* coverity#735608 Division or modulo by float zeroCaolán McNamara2014-10-301-2/+6
| | | | | | | | and coverity#735607 Division or modulo by float zero Change-Id: Iceeab702e183d291d7b1b6ded9113d1a15163c94
* remove unnecessary 'using namespace rtl' declarationsNoel Grandin2014-10-297-7/+1
| | | | | | | | | It turns out that almost none of them were necessary. Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83 Reviewed-on: https://gerrit.libreoffice.org/12133 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* ref-counting vcl::Window subclassesNoel Grandin2014-10-293-3/+1
| | | | | | | | | | | | | | | | | | | | | | Points of discussion -------------------- (*) where in the Window destructor should dispose() be called? It's a seriously large method. (*) we're going to need similar typedefs and declarations for every single sub-class of vcl::Window, I assume that I will need to create a macro to make it less verbose. TODO ---- Update clang plugin to verify that: (a) dispose() methods always call their superclass dispose() (b) dispose() methods don't forget to clear any references owned by that class. Change-Id: I873d5d5166f811e2f65e49327cc98862559fcf30
* fdo#84938: replace TIMEF_ constants with enumNoel Grandin2014-10-281-1/+1
| | | | | | | Change-Id: Ia6aa4e21fef46b20d1d8996d2f15855b8ba1776e Reviewed-on: https://gerrit.libreoffice.org/12114 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* coverity#982164 silence Unchecked return value from libraryCaolán McNamara2014-10-271-2/+2
| | | | Change-Id: Ie2479e3dc73a7c7e8d2d0c5c979bde2ea5d05a1e
* fdo#84938: replace KEYTYPE_ constants with enumNoel Grandin2014-10-271-3/+3
| | | | | | | Change-Id: I563cf96f8ca815d6c8ad9f5fe365fc7ce7a2a328 Reviewed-on: https://gerrit.libreoffice.org/12104 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* coverity#982164 silence Unchecked return value from libraryCaolán McNamara2014-10-251-2/+2
| | | | Change-Id: Ibec38a7e7846c463601b0a876778f53003cf0441
* coverity#982163 silence Unchecked return value from libraryCaolán McNamara2014-10-251-1/+1
| | | | Change-Id: I6b9a3c6ce75472da551706b1c1555eff4ba1abc8
* java: final fields that can be staticNoel Grandin2014-10-171-1/+1
| | | | Change-Id: I8c06be7bc0b8a38c662209f0de72a00550e25447
* More -Werror,-Wunused-private-fieldStephan Bergmann2014-10-151-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...detected with a modified trunk Clang with > Index: lib/Sema/SemaDeclCXX.cpp > =================================================================== > --- lib/Sema/SemaDeclCXX.cpp (revision 219190) > +++ lib/Sema/SemaDeclCXX.cpp (working copy) > @@ -1917,9 +1917,10 @@ > const Type *T = FD.getType()->getBaseElementTypeUnsafe(); > // FIXME: Destruction of ObjC lifetime types has side-effects. > if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) > - return !RD->isCompleteDefinition() || > - !RD->hasTrivialDefaultConstructor() || > - !RD->hasTrivialDestructor(); > + return !RD->hasAttr<WarnUnusedAttr>() && > + (!RD->isCompleteDefinition() || > + !RD->hasTrivialDefaultConstructor() || > + !RD->hasTrivialDestructor()); > return false; > } > > @@ -3517,9 +3518,11 @@ > bool addFieldInitializer(CXXCtorInitializer *Init) { > AllToInit.push_back(Init); > > +#if 0 > // Check whether this initializer makes the field "used". > if (Init->getInit()->HasSideEffects(S.Context)) > S.UnusedPrivateFields.remove(Init->getAnyMember()); > +#endif > > return false; > } to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about initializations with side effects (cf. <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html> "-Wunused-private-field distracted by side effects"). Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
* fdo#84938: replace SYMBOL_TYPE constants with enumNoel Grandin2014-10-151-1/+1
| | | | | | | Change-Id: Ib3763f20d74c22e28d519a9ac47f6f3ab4e31f51 Reviewed-on: https://gerrit.libreoffice.org/11983 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* convert vcl StateChangedType to enum classNoel Grandin2014-10-111-1/+1
| | | | | | | Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f Reviewed-on: https://gerrit.libreoffice.org/11843 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* MWERKS etc. are not supported toolchainsMichael Stahl2014-10-021-5/+0
| | | | Change-Id: I449fe34be396114529357388c87162aaf8976292
* coverity#1242860 Unused valueCaolán McNamara2014-10-021-5/+1
| | | | Change-Id: Ibd6d737cf117af0c2fdda7768da6a173c59bd346
* loplugin: cstylecastNoel Grandin2014-10-0110-16/+16
| | | | Change-Id: I6ea98852ba775d85ccd54823b67224ea7f587c65
* fdo#82577: Handle TimeNoel Grandin2014-10-012-2/+2
| | | | | | | | | | Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* extensions: std::auto_ptr -> std::unique_ptrStephan Bergmann2014-09-3017-26/+20
| | | | Change-Id: I2d9d2e145584013d8e94f5aea2ec7732452b240c
* fdo#82577: Handle RegionNoel Grandin2014-09-302-4/+4
| | | | | | | Put the VCL Region class in the vcl namespace. Avoids clash with the X11 Region typedef. Change-Id: I6e008111df7cf37121fbc3eaabd44a8306338291
* loplugin: cstylecastNoel Grandin2014-09-291-3/+3
| | | | Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
* remove unnecessary casts in calls to SvStream.WriteUInt32Noel Grandin2014-09-261-20/+20
| | | | | | | left over from our conversion of the SvStream output operators to more specific methods Change-Id: I1d848f19f82783e6eabf2da37dbde78fe36ea1e0
* remove unnecessary casts in calls to SvStream.WriteUInt16Noel Grandin2014-09-261-5/+5
| | | | | | | left over from our conversion of the SvStream output operators to more specific methods Change-Id: I482ca7abb84613971e7e8f839f7aa67a65cd71ff
* remove unnecessary casts in calls to SvStream.WriteUCharNoel Grandin2014-09-261-6/+6
| | | | | | | left over from our conversion of the SvStream output operators to more specific methods Change-Id: I2ea4c7d97e745b3e6a3834f41ac7bfefa4883c7a
* coverity#983665 Uncaught exceptionCaolán McNamara2014-09-264-4/+4
| | | | Change-Id: I3d0cd9a9bde8c3705abd876e832b6b7e56bb7fad
* comphelper: std::auto_ptr -> std::unique_ptrStephan Bergmann2014-09-252-10/+4
| | | | Change-Id: I364d6252f470dcc6d71a191f1249e95ca1f284ce
* Leftover XLIB_Window -> WindowStephan Bergmann2014-09-236-7/+7
| | | | Change-Id: I51aa3e3fbf440bbd16d43ab8113cd69937060bf3
* fdo#82577: Handle WindowNoel Grandin2014-09-2387-241/+241
| | | | | | | Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
* Put schema.xml in the correct place, and drop the empty English strings fileTor Lillqvist2014-09-231-1/+3
| | | | | Change-Id: Ic9d3894611eedcffa9ce79ae8b2745de72eb9117 (cherry picked from commit 0b6555f594095ddc082d555852f7d8e9f7d7f266)
* Use prex.h/postx.hStephan Bergmann2014-09-232-15/+4
| | | | Change-Id: I055ae0426df86a1ea49385bc8c0b176cc4b9d940
* Blind fix for WindowsStephan Bergmann2014-09-181-2/+2
| | | | Change-Id: I1b923cba578b0acc2b9ce389c6c7d664fa00b268
* Blind fix for WindowsStephan Bergmann2014-09-181-4/+2
| | | | Change-Id: I186024f8a95ada752115750419a54a6231967f57
* fdo#83512 Make use of OUStringHash and OStringHashDaniel Sikeler2014-09-181-17/+0
| | | | | Change-Id: I33cafe68c798e3d54943ea1790fa4e73f85e525d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* fdo#82577: Handle FontNoel Grandin2014-09-183-7/+7
| | | | | | | Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
* cppcheck: unpreciseMathCallJulien Nabet2014-09-151-1/+2
| | | | | | | Change-Id: I440dc3e30ee139d6cb261e1308e48e9b63b52bc8 Reviewed-on: https://gerrit.libreoffice.org/11434 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* extensions: sal_Bool -> boolStephan Bergmann2014-09-1213-30/+30
| | | | Change-Id: I026056e093661d3beb7f7a231d6cf0e8c72e5b50
* Mark template member fns that are supposed to override as SAL_OVERRIDEStephan Bergmann2014-09-121-7/+7
| | | | Change-Id: Ic81b4510aef3476a53c811b7c91ee1941068ce59
* Turn SfxItemState into a C++11 scoped enumerationStephan Bergmann2014-09-122-11/+11
| | | | | | | | | | | ...to gain further confidence in the claim "that none of the existing code tries to uses combinations of these enum values" (d92602c5b13d0a60439d86c5a033d124178726ca "more fixes for SfxItemState") Change-Id: I987922d945e8738e38adfde83b869adf3ff35b13 Reviewed-on: https://gerrit.libreoffice.org/11384 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* create a master document template typeCaolán McNamara2014-09-111-0/+1
| | | | | | | | | | | | | | | | | of application/vnd.oasis.opendocument.text-master-template with suffic otm https://lists.oasis-open.org/archives/office-comment/201002/msg00042.html desktop/icons/oasis-master-document-template.icns is just a copy of desktop/icons/oasis-master-document.icns because I can't draw Change-Id: I0d18c79c4c893e97505052884ee8be97d0f117a1 Reviewed-on: https://gerrit.libreoffice.org/11350 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>