Question cppcheck reports on svx/source/svdraw/svdoedge.cxx (Bezier curve)
julien2412
serval2412 at yahoo.fr
Wed Dec 19 15:00:49 PST 2012
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.
More information about the LibreOffice
mailing list