Merge pull request #5184 from chipitsine/master

cleanup minor issues found by cppcheck, coverity
This commit is contained in:
akallabeth 2019-01-08 09:13:52 +01:00 committed by GitHub
commit 56a01469fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 13 deletions

View File

@ -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);

View File

@ -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)