Merge pull request #5184 from chipitsine/master
cleanup minor issues found by cppcheck, coverity
This commit is contained in:
commit
56a01469fe
@ -2558,9 +2558,6 @@ BOOL wf_cliprdr_uninit(wfContext* wfc, CliprdrClientContext* cliprdr)
|
||||
|
||||
cliprdr->custom = NULL;
|
||||
|
||||
if (!clipboard)
|
||||
return FALSE;
|
||||
|
||||
if (clipboard->hwnd)
|
||||
PostMessage(clipboard->hwnd, WM_QUIT, 0, 0);
|
||||
|
||||
|
@ -5044,16 +5044,8 @@ static void filterScanline(unsigned char* out, const unsigned char* scanline, co
|
||||
for(i = 0; i < length; i++) out[i] = scanline[i];
|
||||
break;
|
||||
case 1: /*Sub*/
|
||||
if(prevline)
|
||||
{
|
||||
for(i = 0; i < bytewidth; i++) out[i] = scanline[i];
|
||||
for(i = bytewidth; i < length; i++) out[i] = scanline[i] - scanline[i - bytewidth];
|
||||
}
|
||||
else
|
||||
{
|
||||
for(i = 0; i < bytewidth; i++) out[i] = scanline[i];
|
||||
for(i = bytewidth; i < length; i++) out[i] = scanline[i] - scanline[i - bytewidth];
|
||||
}
|
||||
for(i = 0; i < bytewidth; i++) out[i] = scanline[i];
|
||||
for(i = bytewidth; i < length; i++) out[i] = scanline[i] - scanline[i - bytewidth];
|
||||
break;
|
||||
case 2: /*Up*/
|
||||
if(prevline)
|
||||
|
Loading…
Reference in New Issue
Block a user