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

2012-12-28 Thread Julien Nabet
On 28/12/2012 14:43, Markus Mohrhard wrote: 2012/12/28 Julien Nabet: 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

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

2012-12-28 Thread Markus Mohrhard
2012/12/28 Julien Nabet : > 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 us

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

2012-12-28 Thread Julien Nabet
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? Julien _

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

2012-12-28 Thread Ioan Radu
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))* On Thu, Dec 27, 2012 at 4:43 PM, julien2412 wrote: > Hello, > > Cppcheck reported this: > [sd/source/ui/func/fupage.cxx:243]: (style) Variable 'pPtr' is assigned a > val