summaryrefslogtreecommitdiffstats
path: root/basegfx
Commit message (Collapse)AuthorAgeFilesLines
* crashtesting: crash on loading moz414782-1.svgCaolán McNamara2016-02-091-1/+1
| | | | Change-Id: I1324b902c0790350bc8c44e7d63ce45915e3b33f
* Fix typosAndrea Gelmini2016-02-055-7/+7
| | | | | | | Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3 Reviewed-on: https://gerrit.libreoffice.org/21797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
* boost::tuple -> std::tupleCaolán McNamara2016-01-311-10/+7
| | | | | | | Change-Id: Ia08c184b792ff73d3ed49d6a5d54dec1a35943e9 Reviewed-on: https://gerrit.libreoffice.org/21955 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* loplugin:fpcomparison in basegfxNoel Grandin2016-01-227-26/+26
| | | | | | | | | fix comparing of floating point values Change-Id: I54db66968cb999514747171eed82082612e0cac8 Reviewed-on: https://gerrit.libreoffice.org/21708 Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de> Tested-by: Jenkins <ci@libreoffice.org>
* loplugin: unused return valuesNoel Grandin2016-01-212-37/+0
| | | | | | | Change-Id: I4eb1f0c9245c04058fd5e47046f043f8840a79c7 Reviewed-on: https://gerrit.libreoffice.org/21628 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Bin unneeded variableTor Lillqvist2016-01-191-3/+1
| | | | | | | | As far as I see, the only use of aNormalizedEdgeVector is as a parameter to areParallel(), and there is no need for that to be normalized, is there? Change-Id: I31ca09391894ab441e5b88dbdd636cf4b91ac5c2
* Fix typosAndrea Gelmini2016-01-056-7/+7
| | | | | | | Change-Id: I3fba2c76c83381eb398c80947ef4849bccf7ab27 Reviewed-on: https://gerrit.libreoffice.org/21078 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
* More loplugin:nullptr automatic rewrite (within templates)Stephan Bergmann2015-12-101-1/+1
| | | | Change-Id: I9bc06cfb5eeb38fd7ae7fb25f876ea9f96e4a65a
* loplugin:unusedfields in basegfxNoel Grandin2015-11-201-7/+0
| | | | | | | Change-Id: Ibf7455fd20522ad52031089d2700533efc56c395 Reviewed-on: https://gerrit.libreoffice.org/20077 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Fast PCH generator and optimized PCH filesAshod Nakashian2015-11-151-40/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* use initialiser for Sequence<OUString>Noel Grandin2015-11-151-2/+1
| | | | | | | | | | | | using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* tdf#88352 correct triangulator numerical problemArmin Le Grand2015-11-131-2/+5
| | | | | | | | | | | | | | | | | The basegfx Triangulator is used in slideshow with canvas to triangulate the mask geometres. This uses tools::isPointInTriangle which uses basegfx::tools::arePointsOnSameSideOfLine. This uses the cross product to solve and for tests against zero the fTools::equalZero call. The triangulator then uses the more precise rtl::math::approxEqual to test if one of the points of the triangle is equal to the test point. In rare cases this can lead to a position where a point is seen as inside the triangle wrongly because it is not detected as equal to one of the triangle points. To solve, use increased accuracy. Change-Id: I73e12b711f14d4c48e829d5db1cadefa0917c19b Reviewed-on: https://gerrit.libreoffice.org/19925 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
* new loplugin: memoryvarNoel Grandin2015-11-111-3/+2
| | | | | | | | | | detect when we can convert a new/delete sequence on a local variable to use std::unique_ptr Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc Reviewed-on: https://gerrit.libreoffice.org/19884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-1016-74/+74
| | | | Change-Id: Ib64fc63905cf44a0d32393d52ee587d0aa2d9dfa
* basegfx tree cleanupMario J. Rugiero2015-10-305-58/+30
| | | | | | | | | | | - Eliminated an unnecessary boost/bind.hxx include. - Replaced simple old-style for loops that iterated over a container by ranged based for loops. - Replaced for_each by ranged based for loops wherever valid. Change-Id: Ib5c8291cf6d417047b350560f0428723efeccd1c Reviewed-on: https://gerrit.libreoffice.org/19679 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:unusedmethodsNoel Grandin2015-10-275-112/+0
| | | | | | | Change-Id: I73180266c0af98dbd8d29bd3b11850996b94def9 Reviewed-on: https://gerrit.libreoffice.org/19195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
* WaE: loplugin:defaultparamsTor Lillqvist2015-10-261-2/+1
| | | | Change-Id: Ibb93059d4adab6b672cb9122b2dc8fe8af5bbbd6
* Replace boost::bind by lambdas in basegfx tree.Mario J. Rugiero2015-10-263-38/+14
| | | | | | | Change-Id: I8f72bec11b5dfd71cc60a18b980629c176d43f49 Reviewed-on: https://gerrit.libreoffice.org/19595 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* coverity#1326120 try and silence Constant expression resultCaolán McNamara2015-10-222-4/+4
| | | | Change-Id: Iafd034dd51135ad99f56279ceee1c770f91436b0
* loplugin:defaultparamsStephan Bergmann2015-10-201-2/+1
| | | | Change-Id: I44f3c4c2b6adf766f569f90367dcc294ec734616
* Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-126-22/+22
| | | | Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
* Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-121-1/+1
| | | | Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
* clang-analyzer-deadcode.DeadStoresStephan Bergmann2015-10-052-5/+0
| | | | Change-Id: Id2d7c2aa0ba1783710a141bd910af785ecf81f8a
* Fix typosAndrea Gelmini2015-09-304-5/+5
| | | | | | | Change-Id: Ie0e941d48457d758525353d6c5cf858652f86fd3 Reviewed-on: https://gerrit.libreoffice.org/18938 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* loplugin:removeunusedmethods, remove unused stuffNoel Grandin2015-09-291-22/+0
| | | | Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
* boost->stdCaolán McNamara2015-09-182-7/+6
| | | | | | | | Change-Id: Ie490bf2c6921f393bdeed96b1a8815996b701bf0 Reviewed-on: https://gerrit.libreoffice.org/18670 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* loplugin: defaultparamsNoel Grandin2015-08-115-9/+9
| | | | Change-Id: I29ef505ee77965df33677f8051ec39398ef0c74e
* com::sun::star->css in basegfxNoel Grandin2015-07-206-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>
* Revert "Avoid loplugin:staticmethods in non-debug build"Stephan Bergmann2015-07-141-1/+0
| | | | | | This reverts commit d0ba487bae3a0f6d1fcb9af13397c85e70ad8e1b, obsoleted by cbce40e965acef51822b31d73da5fbc271fbcad0 "Make content of OSL_ASSERT, DBG_ASSERT, etc. visiblie in non-debug builds."
* do not include boost/utility.hppMichael Stahl2015-07-102-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
* Avoid loplugin:staticmethods in non-debug buildStephan Bergmann2015-07-081-0/+1
| | | | Change-Id: Ie943f6a998f142014c0405892264c8257dccaf6f
* s/Coordiante/CoordinateTor Lillqvist2015-07-082-61/+61
| | | | Change-Id: Iac584b09844b5877586061e9a44b1f7473bffed4
* Fix typosAndrea Gelmini2015-07-081-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>
* Fix some misspellingsTor Lillqvist2015-07-072-2/+2
| | | | Change-Id: Iff2303650e1dcfc56064907a28df1c4c452eac56
* Fix typosAndrea Gelmini2015-07-043-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>
* Fix typosAndrea Gelmini2015-06-302-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>
* Fix typosAndrea Gelmini2015-06-282-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>
* Fix typosAndrea Gelmini2015-06-222-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>
* Fix typosAndrea Gelmini2015-06-211-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>
* Fix typosAndrea Gelmini2015-06-161-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>
* 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>