Cppcheck reports an assignment which isn't used in sd/source/ui/func/fupage.cxx
julien2412
serval2412 at yahoo.fr
Thu Dec 27 06:43:54 PST 2012
Hello,
Cppcheck reported this:
[sd/source/ui/func/fupage.cxx:243]: (style) Variable 'pPtr' is assigned a
value that is never used
Here are some lines:
236 const sal_uInt16* pPtr = aNewAttr.GetRanges();
237 sal_uInt16 p1 = pPtr[0], p2 = pPtr[1];
238 while(pPtr[2] && (pPtr[2] - p2 == 1))
239 {
240 p2 = pPtr[3];
241 pPtr += 2;
242 }
243 pPtr += 2;
see
http://opengrok.libreoffice.org/xref/core/sd/source/ui/func/fupage.cxx#238
pPtr isn't used.
So either it can just be removed or something is wrong here.
Any idea?
Julien
--
View this message in context: http://nabble.documentfoundation.org/Cppcheck-reports-an-assignment-which-isn-t-used-in-sd-source-ui-func-fupage-cxx-tp4026217.html
Sent from the Dev mailing list archive at Nabble.com.
More information about the LibreOffice
mailing list