<div dir="ltr">Hello Julien,<br>but it is used, it is an array<br> <b>sal_uInt16 p1 = pPtr[0], p2 = pPtr[1];<br> 
while(pPtr[2] && (pPtr[2] - p2 == 1))</b><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 27, 2012 at 4:43 PM, julien2412 <span dir="ltr"><<a href="mailto:serval2412@yahoo.fr" target="_blank">serval2412@yahoo.fr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Cppcheck reported this:<br>
[sd/source/ui/func/fupage.cxx:243]: (style) Variable 'pPtr' is assigned a<br>
value that is never used<br>
<br>
Here are some lines:<br>
    236     const sal_uInt16* pPtr = aNewAttr.GetRanges();<br>
    237     sal_uInt16 p1 = pPtr[0], p2 = pPtr[1];<br>
    238     while(pPtr[2] && (pPtr[2] - p2 == 1))<br>
    239     {<br>
    240         p2 = pPtr[3];<br>
    241         pPtr += 2;<br>
    242     }<br>
    243     pPtr += 2;<br>
see<br>
<a href="http://opengrok.libreoffice.org/xref/core/sd/source/ui/func/fupage.cxx#238" target="_blank">http://opengrok.libreoffice.org/xref/core/sd/source/ui/func/fupage.cxx#238</a><br>
pPtr isn't used.<br>
<br>
So either it can just be removed or something is wrong here.<br>
<br>
Any idea?<br>
<br>
Julien<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://nabble.documentfoundation.org/Cppcheck-reports-an-assignment-which-isn-t-used-in-sd-source-ui-func-fupage-cxx-tp4026217.html" target="_blank">http://nabble.documentfoundation.org/Cppcheck-reports-an-assignment-which-isn-t-used-in-sd-source-ui-func-fupage-cxx-tp4026217.html</a><br>


Sent from the Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</blockquote></div><br></div>