[RESOLVED] Re: Cppcheck reports an assignment which isn't used in sd/source/ui/func/fupage.cxx

Julien Nabet serval2412 at yahoo.fr
Fri Dec 28 06:07:23 PST 2012


On 28/12/2012 14:43, Markus Mohrhard wrote:
> 2012/12/28 Julien Nabet<serval2412 at yahoo.fr>:
>> On 28/12/2012 12:37, Ioan Radu wrote:
>>
>> Hello Julien,
>> but it is used, it is an array
>> sal_uInt16 p1 = pPtr[0], p2 = pPtr[1];
>>    while(pPtr[2]&&  (pPtr[2] - p2 == 1))
>>
>> Hi Loan,
>>
>> Yes but what about after line 243? What's the use of line 243 if "pPtr"
>> isn't used afterwards?
>>
> The assignment in line 243 is unnecessary. Allothers are still relevant.
Thank you Markus, I removed it. (see 
http://cgit.freedesktop.org/libreoffice/core/commit/?id=ffe1a2a92236a9b918b5c31d03d04332f2c63876).

Julien


More information about the LibreOffice mailing list