summaryrefslogtreecommitdiff
path: root/basegfx
AgeCommit message (Collapse)AuthorFilesLines
2015-08-11loplugin: defaultparamsNoel Grandin5-9/+9
Change-Id: I29ef505ee77965df33677f8051ec39398ef0c74e
2015-07-20com::sun::star->css in basegfxNoel Grandin6-70/+70
Change-Id: I27f28e6a09e8bc9e90f0b60a7ac8519b2ab41860 Reviewed-on: https://gerrit.libreoffice.org/17166 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-14Revert "Avoid loplugin:staticmethods in non-debug build"Stephan Bergmann1-1/+0
This reverts commit d0ba487bae3a0f6d1fcb9af13397c85e70ad8e1b, obsoleted by cbce40e965acef51822b31d73da5fbc271fbcad0 "Make content of OSL_ASSERT, DBG_ASSERT, etc. visiblie in non-debug builds."
2015-07-10do not include boost/utility.hppMichael Stahl2-2/+2
It just includes a bunch of other boost headers; mostly we need boost/noncopyable.hpp so include that directly. This eliminates 831 MB(!) of boost/preprocessor/seq/fold_left.hpp completely, which is the 2nd biggest header after ustring.hxx. Change-Id: I3df55770adcb46e56f389af828e8ba80da2dc1f2
2015-07-08Avoid loplugin:staticmethods in non-debug buildStephan Bergmann1-0/+1
Change-Id: Ie943f6a998f142014c0405892264c8257dccaf6f
2015-07-08s/Coordiante/CoordinateTor Lillqvist2-61/+61
Change-Id: Iac584b09844b5877586061e9a44b1f7473bffed4
2015-07-08Fix typosAndrea Gelmini1-1/+1
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-07Fix some misspellingsTor Lillqvist2-2/+2
Change-Id: Iff2303650e1dcfc56064907a28df1c4c452eac56
2015-07-04Fix typosAndrea Gelmini3-3/+3
Change-Id: I75b4ad61785bf0ba1cb07735d938c0977356b8cc Reviewed-on: https://gerrit.libreoffice.org/16705 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-28Fix typosAndrea Gelmini2-2/+2
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-22Fix typosAndrea Gelmini2-2/+2
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-16Fix typosAndrea Gelmini1-1/+1
Change-Id: I28cfc629dc3d6ef54128615452667ccce86c1072 Reviewed-on: https://gerrit.libreoffice.org/16297 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-06-14cppcheck: redundantCondition [part1]Julien Nabet1-2/+1
Change-Id: I21c5340e7b5ec09248b08aa76f43acf883c56cd8
2015-06-11Typo: vertival -> verticalAndras Timar1-2/+2
Change-Id: I3dce3d131ce78713333d6e4bc2f3e839af5e04ec
2015-06-04Removed getNormal() from polygontools, it just calls B3DPolygon::getNormal()Zsolt Bölöny1-5/+0
Change-Id: I5a59ff8e0db1aee52d0b683c9c64e4b18b64e66b Reviewed-on: https://gerrit.libreoffice.org/16077 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-06-04uno::Sequence provides now begin and endNoel Grandin1-3/+1
use begin() and end() when calling std::copy on an uno::Sequence Inspired by commit b34b648fc3262c5d9aa295f621e8fe9c97d4c6b2 "uno::Sequence provides now begin and end" Change-Id: I08e8c3fd6144e77b95a26f85bc0daf6a9edeeb0b Reviewed-on: https://gerrit.libreoffice.org/16057 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-04convert B2DLineJoin to scoped enumNoel Grandin1-7/+7
Change-Id: I4fb8f2c9e2080e3aa542d2ccf838e6784baa8429
2015-06-04convert B2VectorContinuity to scoped enumNoel Grandin6-14/+14
Change-Id: Ifa401dd0d2d1bef8c0ae2987d2aee86100b59816
2015-06-04convert B2VectorOrientation to scoped enumNoel Grandin10-79/+79
Change-Id: Id7e444bc896ae5d52e5a0bd1b471679c4945afa4
2015-06-02Replaced boost::tuple with std::tupleZsolt Bölöny3-8/+5
Change-Id: Ia001c8e1e00df85d2be93e330811a1081179785d Reviewed-on: https://gerrit.libreoffice.org/15816 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-06-01Remove B1IRange, it's not used anywhereZsolt Bölöny2-3/+0
Change-Id: I2eeded849b9b36611407e8ecc545d7801939e4c9 Reviewed-on: https://gerrit.libreoffice.org/15815 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-01Remove B1IBox, it's not used anywhereZsolt Bölöny1-60/+0
Change-Id: Ifff5fc008552f80fcbb705013c1f578f5f825b24 Reviewed-on: https://gerrit.libreoffice.org/15814 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-28new clang plugin: loopvartoosmallNoel Grandin5-12/+12
Idea from bubli - look for loops where the index variable is of such size that it cannot cover the range revealed by examining the length part of the condition. So far, I have only run the plugin up till the VCL module. Also the plugin deliberately excludes anything more complicated than a straightforward incrementing for loop. Change-Id: Ifced18b01c03ea537c64168465ce0b8287a42015
2015-05-27Remove B3IPoint, it's not used anywhereZsolt Bölöny2-70/+0
Change-Id: I7031c126179bbceebc40dcbdab5a0570db5bc29f Reviewed-on: https://gerrit.libreoffice.org/15813 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-27B3IVector is not used anywhereZsolt Bölöny2-42/+0
Change-Id: Ic439b33c974500f1b351b41a0e391ffec71007b3 Reviewed-on: https://gerrit.libreoffice.org/15808 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-27Remove B3IRange, it's not used anywhereZsolt Bölöny1-1/+0
Change-Id: I19a6835eaab2efba530d30f871f1b4509b683801 Reviewed-on: https://gerrit.libreoffice.org/15812 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-26Remove B3I64Tuple, it's not used by anythingZsolt Bölöny2-30/+0
Change-Id: Ie1b05375a8e8d634e6ef6b2bf6edde65b32574bd Reviewed-on: https://gerrit.libreoffice.org/15811 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-24comments: fix mis-use of eventual in EnglishThorsten Behrens1-2/+2
The adjective was used as the German meaning, which translates to maybe or possibly. Change-Id: Iaf5b38f628b23796829a1c4bd3919d4e13b874f0
2015-05-23Typo: Trapeziod->TrapezoidJulien Nabet1-2/+2
Change-Id: Iab575622819e245b1459cba72dc34a9c387d00b6
2015-05-21Use the better precision equality check in b2trapezoid.cxxZsolt Bölöny1-21/+21
Change-Id: Ie048543ad19c12dc47f6638af7dc029a38da964e Reviewed-on: https://gerrit.libreoffice.org/15805 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-05-19That was totally pointlessZsolt Bölöny1-3/+1
Change-Id: I6046461b2e26a8506249c4a2fdd783bbd2ec223f Reviewed-on: https://gerrit.libreoffice.org/15810 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-05-18cppunit: noExplicitConstructorCaolán McNamara1-1/+1
Change-Id: Iaf1387ea236bf3a5db9b2165d5b827dbdcf95207
2015-05-07simplify code by replacing std::find_if with std::any_of/std::none_ofTakeshi Abe1-2/+2
Change-Id: Ife6ab3544f73b1de60f5241c68466045161a4d88 Reviewed-on: https://gerrit.libreoffice.org/15615 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-05Drop misused lcl_ prefixTor Lillqvist3-137/+143
If used at all, lcl_ is supposed to be used for static functions truly local to one source files. The functions here occur in several source files (well, two, the one where they are defined and one other) so they are not "local" in that sense. (But they could be local in the one file that uses them...) Also, they are already in a basegfx::internal namespace. While at it, drop the :: prefix eyesore from basegfx::internal, and align parameter lists consistently. Change-Id: I68b91075e0b1779ac0fa884d8f9e956f1ab7b308
2015-04-27More loplugin:simplifyboolStephan Bergmann1-4/+4
Change-Id: Ic0e8d409e33dcc494a6111eba9ba405424ecd53f
2015-04-21fix crash on export of ooo30155-1.sxw to odtCaolán McNamara1-1/+1
Change-Id: I1dd087ea6803f29756e1b78385a4a98f7378e616
2015-03-27loplugin:staticfunctionNoel Grandin5-7/+9
Change-Id: I982ba552579019e4902ae59fddf14a6b34ba5954
2015-03-27convert CUTFLAG_ constants to enum classNoel Grandin3-31/+31
Change-Id: I98dc5488954a4d46f7e0158790a4c3dabebfc1b3
2015-03-04V813: Decreased performanceCaolán McNamara1-4/+4
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-02-17tdf#39440 - cppcheck cleanlinessRadu Ioan1-1/+0
Fixed some cppcheck defects Change-Id: I25fd6aba9d76df98d20b9a1bb4c9d3c1bf6f84bb Reviewed-on: https://gerrit.libreoffice.org/14487 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-02-05Updated all precompiled headers.Ashod Nakashian1-0/+1
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-18remove unused fileMarkus Mohrhard3-67/+2
Change-Id: I8cc33007e99da38869daa48ff898593abc52c4ac
2015-01-12Removed lcl_putNumberChar() from basegfx.Zsolt Bölöny3-9/+3
It just calls OUStringBuffer.append() and doesn't do anything special. Change-Id: Ie59a797a8d0d24cfab826516e2b5c4e58f90dd01 Reviewed-on: https://gerrit.libreoffice.org/13850 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-08asan: global-buffer-overflow on fdo55736-1.docxCaolán McNamara1-1/+4
Change-Id: If69a57aa9ff011cc670f868cb87b3a1c4d904435
2015-01-07fdo#39440 reduce scope of local variablesŁukasz Hryniuk1-10/+10
Beside scope changes, it fixes lack of initialization in a few places. Change-Id: Ia09fdb9845d8ac17256330a5ec5168401c84f0f2 Reviewed-on: https://gerrit.libreoffice.org/13755 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-08reduce scope of local variablesMichael Weghorn2-5/+3
This eliminates some of the warnings from Cppcheck report of 2014-11-29. Change-Id: Id5bf885de12a6de262d2cca9fa71627ac67f50d9 Reviewed-on: https://gerrit.libreoffice.org/13330 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl9-0/+16
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-10basegfx: Solve crossovers even if there is only one polygon in the polypolygonLouis-Francis Ratté-Boulianne1-1/+1
Change-Id: If4fcb8a2c6ac40a4d694522ce4ed020bcb4466b8