summaryrefslogtreecommitdiffstats
path: root/basegfx
Commit message (Collapse)AuthorAgeFilesLines
* cppcheck: redundantCondition [part1]Julien Nabet2015-06-141-2/+1
| | | | Change-Id: I21c5340e7b5ec09248b08aa76f43acf883c56cd8
* Typo: vertival -> verticalAndras Timar2015-06-111-2/+2
| | | | Change-Id: I3dce3d131ce78713333d6e4bc2f3e839af5e04ec
* Removed getNormal() from polygontools, it just calls B3DPolygon::getNormal()Zsolt Bölöny2015-06-041-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>
* uno::Sequence provides now begin and endNoel Grandin2015-06-041-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>
* convert B2DLineJoin to scoped enumNoel Grandin2015-06-041-7/+7
| | | | Change-Id: I4fb8f2c9e2080e3aa542d2ccf838e6784baa8429
* convert B2VectorContinuity to scoped enumNoel Grandin2015-06-046-14/+14
| | | | Change-Id: Ifa401dd0d2d1bef8c0ae2987d2aee86100b59816
* convert B2VectorOrientation to scoped enumNoel Grandin2015-06-0410-79/+79
| | | | Change-Id: Id7e444bc896ae5d52e5a0bd1b471679c4945afa4
* Replaced boost::tuple with std::tupleZsolt Bölöny2015-06-023-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>
* Remove B1IRange, it's not used anywhereZsolt Bölöny2015-06-012-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>
* Remove B1IBox, it's not used anywhereZsolt Bölöny2015-06-011-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>
* new clang plugin: loopvartoosmallNoel Grandin2015-05-285-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
* Remove B3IPoint, it's not used anywhereZsolt Bölöny2015-05-272-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>
* B3IVector is not used anywhereZsolt Bölöny2015-05-272-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>
* Remove B3IRange, it's not used anywhereZsolt Bölöny2015-05-271-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>
* Remove B3I64Tuple, it's not used by anythingZsolt Bölöny2015-05-262-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>
* comments: fix mis-use of eventual in EnglishThorsten Behrens2015-05-241-2/+2
| | | | | | | The adjective was used as the German meaning, which translates to maybe or possibly. Change-Id: Iaf5b38f628b23796829a1c4bd3919d4e13b874f0
* Typo: Trapeziod->TrapezoidJulien Nabet2015-05-231-2/+2
| | | | Change-Id: Iab575622819e245b1459cba72dc34a9c387d00b6
* Use the better precision equality check in b2trapezoid.cxxZsolt Bölöny2015-05-211-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>
* That was totally pointlessZsolt Bölöny2015-05-191-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>
* cppunit: noExplicitConstructorCaolán McNamara2015-05-181-1/+1
| | | | Change-Id: Iaf1387ea236bf3a5db9b2165d5b827dbdcf95207
* simplify code by replacing std::find_if with std::any_of/std::none_ofTakeshi Abe2015-05-071-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>
* Drop misused lcl_ prefixTor Lillqvist2015-05-053-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
* More loplugin:simplifyboolStephan Bergmann2015-04-271-4/+4
| | | | Change-Id: Ic0e8d409e33dcc494a6111eba9ba405424ecd53f
* fix crash on export of ooo30155-1.sxw to odtCaolán McNamara2015-04-211-1/+1
| | | | Change-Id: I1dd087ea6803f29756e1b78385a4a98f7378e616
* loplugin:staticfunctionNoel Grandin2015-03-275-7/+9
| | | | Change-Id: I982ba552579019e4902ae59fddf14a6b34ba5954
* convert CUTFLAG_ constants to enum classNoel Grandin2015-03-273-31/+31
| | | | Change-Id: I98dc5488954a4d46f7e0158790a4c3dabebfc1b3
* V813: Decreased performanceCaolán McNamara2015-03-041-4/+4
| | | | Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
* tdf#39440 - cppcheck cleanlinessRadu Ioan2015-02-171-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>
* Updated all precompiled headers.Ashod Nakashian2015-02-051-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>
* remove unused fileMarkus Mohrhard2015-01-183-67/+2
| | | | Change-Id: I8cc33007e99da38869daa48ff898593abc52c4ac
* Removed lcl_putNumberChar() from basegfx.Zsolt Bölöny2015-01-123-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>
* asan: global-buffer-overflow on fdo55736-1.docxCaolán McNamara2015-01-081-1/+4
| | | | Change-Id: If69a57aa9ff011cc670f868cb87b3a1c4d904435
* fdo#39440 reduce scope of local variablesŁukasz Hryniuk2015-01-071-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>
* reduce scope of local variablesMichael Weghorn2014-12-082-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>
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-179-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
* basegfx: Solve crossovers even if there is only one polygon in the polypolygonLouis-Francis Ratté-Boulianne2014-11-101-1/+1
| | | | Change-Id: If4fcb8a2c6ac40a4d694522ce4ed020bcb4466b8
* markup with event type not checker typeCaolán McNamara2014-11-051-0/+2
| | | | Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
* Fix --disable-sal-log buildsStephan Bergmann2014-10-281-6/+0
| | | | Change-Id: Ie0250745c9bd39e6e81f5f9eb96e661de2e4e2ef
* coverity#1242792 Unused valueCaolán McNamara2014-10-281-1/+8
| | | | Change-Id: Iec4c69e7fea727cc507506b9570f1f6d0c20a70f
* Resolves: #i125447# corrected some string to number conversion...Armin Le Grand2014-10-082-13/+29
| | | | | | | | | | | | tools to correct svg:d imports (cherry picked from commit f077f99da3cb2903fa903dcf30e6cfd714fd009c) Conflicts: basegfx/source/inc/stringconversiontools.hxx basegfx/source/tools/stringconversiontools.cxx Change-Id: I7de1558682990f83e66fdded3d9d30e21e4f97fe
* disambiguate uniform_int_distributionCaolán McNamara2014-10-071-1/+1
| | | | Change-Id: Ifa0c1b1983d1cc7f22d55b15dee88b7f709dbcf8
* use comphelper::rng::uniform_*_distribution everywhereCaolán McNamara2014-10-062-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | and automatically seed from time on first use coverity#1242393 Don't call rand coverity#1242404 Don't call rand coverity#1242410 Don't call rand and additionally allow 0xFF as a value coverity#1242409 Don't call rand coverity#1242399 Don't call rand coverity#1242372 Don't call rand coverity#1242377 Don't call rand coverity#1242378 Don't call rand coverity#1242379 Don't call rand coverity#1242382 Don't call rand coverity#1242383 Don't call rand coverity#1242402 Don't call rand coverity#1242397 Don't call rand coverity#1242390 Don't call rand coverity#1242389 Don't call rand coverity#1242388 Don't call rand coverity#1242386 Don't call rand coverity#1242384 Don't call rand coverity#1242394 Don't call rand Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
* coverity#1242792 Unused valueCaolán McNamara2014-10-031-2/+3
| | | | Change-Id: I66000e2e3ae8d28f5f04bb6404c73feb2a1e8905
* fdo#82577: Handle PolyPolygonNoel Grandin2014-09-305-6/+6
| | | | | | | Put the TOOLS PolyPolygon class in the tools namespace. Avoids clash with the Windows PolyPolygon typedef. Change-Id: I811ecbb3d55ba4ce66e4555a8586f60fcd57fb66
* loplugin: cstylecastNoel Grandin2014-09-222-3/+3
| | | | Change-Id: I8b1f0f6c100b4cf6d45c9e0c0f1e0a38ec081218
* basegfx: sal_False/True -> false/trueStephan Bergmann2014-09-151-1/+1
| | | | Change-Id: I56eb340317d8b7991caad58dd0e4045d6e69fca9
* Fixed some CppunitTest namesStephan Bergmann2014-08-281-5/+5
| | | | Change-Id: I57b039c7114c03944e8eaba9ca1bb81da563640a
* Related: #i125349# refined to exclude possible recursive callsArmin Le Grand2014-08-071-65/+71
| | | | | | (cherry picked from commit a02eb39b84d130e5923f72edb2abb3b21adf6fff) Change-Id: Id068928f77a6efed44da9b83ecbf547302826591
* Related: #i125349# moved clip enhancements to base clipping functionalityArmin Le Grand2014-08-071-0/+67
| | | | | | (cherry picked from commit 7c5e9b9b3c5c899d63bf171ee1c9050db860337e) Change-Id: I570e92c78196895bef329eb308eeb68ffc5e23d3
* coverity#983561 Arguments in wrong orderCaolán McNamara2014-08-071-5/+5
| | | | | | | | and coverity#983562 Arguments in wrong order Change-Id: Ia9e95c8c5dbbf0a12ac06162e4fc3ff5e568f035