summaryrefslogtreecommitdiff
path: root/editeng
AgeCommit message (Collapse)AuthorFilesLines
2015-07-24loplugin:unusedmethodsNoel Grandin4-22/+2
Change-Id: If5090c330e12d6e537766bf4a9be0a2360381a7a Reviewed-on: https://gerrit.libreoffice.org/17312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-24convert WALLPAPER constants to scoped enumNoel Grandin1-25/+25
Change-Id: I3b4b4e8a94904e22823a263bd5446a2e1aa47661
2015-07-21loplugin:unusedmethods sdNoel Grandin1-13/+0
Change-Id: I9b5399ace50db3259df2e619f28ae547a38e6c6d Reviewed-on: https://gerrit.libreoffice.org/17254 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-20Removed commentAndrea Gelmini1-1/+0
No evindence of intn.hxx in all git history Change-Id: I435f3082e0bb13b1e3129b49c7eaea80d75ea452 Reviewed-on: https://gerrit.libreoffice.org/17186 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-07-20editeng: replace boost::ptr_vector with std::vector<std::unique_ptr>>Michael Stahl2-54/+58
Change-Id: I29923bc78100d4b196d285dd78f664f7bcf3df19
2015-07-20editeng: replace boost::ptr_map with std::map<std::unique_ptr>>Michael Stahl1-18/+15
Change-Id: Ia6fce8eceb364d83cbbf5abcf734be262614e792
2015-07-20editeng: replace boost::ptr_map with std::map<std::unique_ptr>>Michael Stahl2-17/+17
Change-Id: Id59fb4ee59872e60094bde85746416c83f058b00
2015-07-20loplugin:unusedmethods svlNoel Grandin1-7/+0
Change-Id: If86cc43fda4d138cf7f678d81fa2b35f68f3c03b Reviewed-on: https://gerrit.libreoffice.org/17162 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-19sal_uInt16 to sal_Int32/size_tMatteo Casalin2-6/+6
Change-Id: Icb8765339412bedf1e424a766bc99274ab96ceab
2015-07-17editeng: pointless codeMichael Stahl1-6/+0
Change-Id: Ice4f34ce60b0f4af97a985f4203a705523c0626b
2015-07-17editeng: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl1-66/+66
Change-Id: I343071cc29c2041bc98456954b0aa32fff324d82
2015-07-16loplugin:unusedmethods editengNoel Grandin15-204/+27
Change-Id: I15b2be5a9cd6e72447b674a65eabe9f89cb6ff12 Reviewed-on: https://gerrit.libreoffice.org/17115 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-13Make content of OSL_ASSERT, DBG_ASSERT, etc. visiblie in non-debug buildsStephan Bergmann2-4/+3
...to avoid lots of loplugin:staticmethods warnings. Also enables DBG_ASSERT etc. also for --enable-debug builds in addition to --enable-dbgutil builds. Change-Id: Ib89ecd9ab8ce7abb2c64790ace248b31f9d2b64d
2015-07-13Fix IndentingPagesHdl type (and GetIndentingPagesHdl is unused)Stephan Bergmann1-2/+2
Change-Id: Ide5398040678a81e032e91e582b39d516e8c08a8
2015-07-13editeng: make Link<> usage typedNoel Grandin1-10/+3
Change-Id: Iec36c7e4f4fbc2ee2ee25d4d0c8488340ba7d8c4 Reviewed-on: https://gerrit.libreoffice.org/16968 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-13editeng, convert to typed Link<>Noel Grandin2-11/+0
and remove SvxBrushItem::SetDoneLink since the field it sets is unused.wq Change-Id: Ide95a295fa8004f1ddab5e560f01d36d36658a72 Reviewed-on: https://gerrit.libreoffice.org/16943 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-08Fix typosAndrea Gelmini2-2/+2
Change-Id: I70b03c152f63e48341dc5629a99b0eeab7b497c0 Reviewed-on: https://gerrit.libreoffice.org/16834 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-07-06improve the returnbyref lopluginNoel Grandin8-346/+326
Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb Reviewed-on: https://gerrit.libreoffice.org/16731 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-03Fix typosAndrea Gelmini8-8/+8
Change-Id: Ideb5688a8c9e7cf10038f2e9d00991e8653b1875 Reviewed-on: https://gerrit.libreoffice.org/16706 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-06-30Fix typosAndrea Gelmini2-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>
2015-06-30remove some unnecessary typedefs to pointerNoel Grandin2-5/+3
that were really not helping make the code any clearer. Found with a search git grep -P 'typedef\s+\w+\s*\*\s*\w+\;' and manual inspection Change-Id: I6a5c031e9e060ad3623a7586ec8a8cc4fe6252e9
2015-06-29remove custom RTTI from SvxAutoCorrectNoel Grandin1-2/+0
unused Change-Id: I2f4504fdbe88fa83abe6da8a1f733f9ae1c2742d
2015-06-28coverity#1308551 Uncaught exceptionCaolán McNamara1-1/+1
Change-Id: I61fb5e047b64873b3f5e07582dd1155340d7a1b5
2015-06-28Fix typosAndrea Gelmini1-1/+1
Change-Id: I80995af6459af9f647e66d1c85da2eedad2647b9 Reviewed-on: https://gerrit.libreoffice.org/16523 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-06-28Fix typosAndrea Gelmini1-1/+1
Change-Id: Ifd126a535f18db79a18aaec61b76cdf26ab33dff Reviewed-on: https://gerrit.libreoffice.org/16522 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2015-06-28coverity#1308483 Uncaught exceptionCaolán McNamara1-1/+1
Change-Id: I7d778173ecff7c343b289eb371b53b825f6cc301
2015-06-26loplugin:stringconstant: handle OUString+=OUString(literal)Stephan Bergmann2-2/+2
Change-Id: I19f7a0a3cc6641a21ed6004adecdac7956e5132f
2015-06-25loplugin:stringconstant: Flag more inefficienciesStephan Bergmann1-1/+1
Change-Id: Ie217f99961c6f2c224d1c01beaf0146a4ea3e0c2
2015-06-24Simplify uses of comphelper::string::equals with constant argumentStephan Bergmann1-5/+2
Change-Id: I7b12dd04f6811f71b776ee9168703434217b59c8
2015-06-22Fix typosAndrea Gelmini2-4/+4
Change-Id: I60ed5eb658d50cbc7dc572facb5463b7527b4d9b Reviewed-on: https://gerrit.libreoffice.org/16408 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-06-21Fix typosAndrea Gelmini1-1/+1
Change-Id: I2297bf392a405f02be2450f4624f1c9fc0b512ce Reviewed-on: https://gerrit.libreoffice.org/16373 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-19Simplify uses of OUString::replaceAll with literal argumentsStephan Bergmann1-1/+1
Change-Id: I769cc6e11909c7f4c6394fdc4dec8a12b9a67af8
2015-06-19All uses of LINE_SEP are fine with a char literalStephan Bergmann1-1/+1
Change-Id: I057c2d346be6a6775f01a3a32edd4fc8224271a5
2015-06-18drop unused sequenceasvector.hxx (see sequence.hxx)Caolán McNamara1-1/+0
Change-Id: Ib6d91f1ee427d5f94eed75e478f0809346f38e05
2015-06-18Fix typosAndrea Gelmini1-1/+1
Change-Id: Ibfa971952cd330ddf430e7e951c5c235d2ae6bd8 Reviewed-on: https://gerrit.libreoffice.org/16314 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-06-18seems to be what was meantLionel Elie Mamane1-1/+1
Change-Id: Ia7b784d820249c3d75915761dac34a2aaa190c0b Reviewed-on: https://gerrit.libreoffice.org/16358 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe6-12/+12
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>
2015-06-16Fix typosAndrea Gelmini1-1/+1
Change-Id: Id8c7cf460cba5af89891c470e1aaa61b227d356e Reviewed-on: https://gerrit.libreoffice.org/16310 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-06-16Fix typosAndrea Gelmini1-1/+1
Change-Id: I528752dfabeb31d14c350f79819b521537ab9b56 Reviewed-on: https://gerrit.libreoffice.org/16300 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-06-15remove unnecessary check for null when calling deleteNoel Grandin2-6/+3
Idea originally from caolan. Found using the following command: find . -name *.cxx | xargs /opt/local/bin/grep -zlP '(?m)if\s*\(\s*\w+\s*\)\s*delete\s+\w+\;' Change-Id: I3338f4e22193a6dfd6219c8c75835224a3392763
2015-06-15cppcheck:redundantConditionNoel Grandin2-3/+5
Change-Id: Ib8b6342d1da526df6104125ded546b3f053c448b
2015-06-14cppcheck: redundantCondition [part1]Julien Nabet1-1/+1
Change-Id: I21c5340e7b5ec09248b08aa76f43acf883c56cd8
2015-06-11minor clean upStephan Bergmann1-0/+1
Change-Id: Ib4fb12e187eb4bad7da04425328d1f5cdf851654
2015-06-10Remove unnecessary Bool2AnyStephan Bergmann3-13/+13
(It feels better to use explicitly bool-typed css::uno::makeAny<bool>(x) rather than implicitly typed css::uno::makeAny(x) or css::uno::Any(x), in case x is not already of type bool.) Change-Id: I282b3764bb207aeae9f13cc981e68e8ef2b8ab93
2015-06-10Bool2Any wants to get bool instead of sal_uInt8Katarina Behrens1-1/+1
which is what GetTransparency() returns. Iow, do what SvxBrushItem does :) Change-Id: Ief65ab75d8c0955c1ec264611a70dcc693412170
2015-06-10tdf#88055: Don't export transparent background colour as whiteKatarina Behrens1-0/+45
The fix is twofold: 1. retrieve transparency from colour in SvxBackgroundColorItem (add QueryValue, PutValue methods, use additional memberID to retrieve alpha channel as a bool property) 2. add CharBackTransparent bool property to Draw [text] shapes, xmloff needs it to be able to output 'transparent' string instead of '#XXYYZZ' colour code in ODF format Change-Id: Id830bd18fd6da5d9a46e2a94aa254d5d2a6b7ebb Reviewed-on: https://gerrit.libreoffice.org/16182 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-06-09cppcheck: unreadVariableCaolán McNamara1-3/+3
Change-Id: Ia16c1ba6052e8cf86762be095930b7e748f4493d
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann12-23/+23
Change-Id: I0d15a14209768ef0292d9abdf00e8fa571cf90da
2015-06-08tdf#90804 remove SfxFieldUnit enumAndras Timar1-2/+2
b78d881520f2eb658180e2c90ffee3d30a80f0ae removed unused values from SfxFieldUnit enum. This broke the mapping between SfxFieldUnit and FieldUnit. In fact SfxFieldUnit was redundant. Change-Id: I13c7e7d708c6eeab0de192f4cd110b0a23989a31 Reviewed-on: https://gerrit.libreoffice.org/16150 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-06-06Typo: emty->emptyJulien Nabet2-3/+3
Change-Id: I495ae28194da449ab1b31b2b5ec0d9e08fbcc291