Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hello,

Cppcheck detected this into svx/source/svdraw/svdoedge.cxx
[svdoedge.cxx:1450]: (style) Variable 'pPt1' is assigned a value that is
never used.
[svdoedge.cxx:1453]: (style) Variable 'pPt4' is assigned a value that is
never used

Here are the lines:
   1450             pPt1=&aXP1[0];
   1451             pPt2=&aXP1[1];
   1452             pPt3=&aXP1[nPntAnz-2];
   1453             pPt4=&aXP1[nPntAnz-1];
   1454             pPt2->X()-=dx1/3;
   1455             pPt2->Y()-=dy1/3;
   1456             pPt3->X()-=dx2/3;
   1457             pPt3->Y()-=dy2/3;
and Opengrok:
http://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdoedge.cxx#1436

Either pPt1 and pPt4 assignations may really be removed or a change must be
done here.

Any idea?

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/Question-cppcheck-reports-on-svx-source-svdraw-svdoedge-cxx-Bezier-curve-tp4025235.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.