From d4c37690295db5515f19a8b1cd221b4222f16eeb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 12 Aug 2015 21:04:51 +0000 Subject: warning fixes code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AdvaImg/src/FreeImage/PluginGIF.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/AdvaImg') diff --git a/plugins/AdvaImg/src/FreeImage/PluginGIF.cpp b/plugins/AdvaImg/src/FreeImage/PluginGIF.cpp index 0153959ab8..ba67bc960b 100644 --- a/plugins/AdvaImg/src/FreeImage/PluginGIF.cpp +++ b/plugins/AdvaImg/src/FreeImage/PluginGIF.cpp @@ -42,7 +42,6 @@ // Constant/Typedef declarations // ========================================================== - struct GIFinfo { BOOL read; //only really used when reading @@ -1015,19 +1014,19 @@ Load(FreeImageIO *io, fi_handle handle, int page, int flags, void *data) { } FreeImage_SetMetadataEx(FIMD_ANIMATION, dib, "Loop", ANIMTAG_LOOP, FIDT_LONG, 1, 4, &loop); - //Comment Extension - for( idx = 0; idx < info->comment_extension_offsets.size(); idx++ ) { + // Comment Extension + for (idx = 0; idx < info->comment_extension_offsets.size(); idx++) { io->seek_proc(handle, (long)info->comment_extension_offsets[idx], SEEK_SET); std::string comment; char buf[255]; io->read_proc(&b, 1, 1, handle); - while( b ) { + while (b) { io->read_proc(buf, b, 1, handle); comment.append(buf, b); io->read_proc(&b, 1, 1, handle); } comment.append(1, '\0'); - sprintf(buf, "Comment%d", idx); + sprintf(buf, "Comment%d", (int)idx); DWORD comment_size = (DWORD)comment.size(); FreeImage_SetMetadataEx(FIMD_COMMENTS, dib, buf, 1, FIDT_ASCII, comment_size, comment_size, comment.c_str()); } -- cgit v1.2.3