diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-12 21:04:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-12 21:04:51 +0000 |
commit | d4c37690295db5515f19a8b1cd221b4222f16eeb (patch) | |
tree | bd098d252fcedd637febbddfa1dbf88eef68dc88 /plugins/AdvaImg | |
parent | 5fea557d4846a9260c8b76f4157f3e722f7ddd2e (diff) |
warning fixes
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AdvaImg')
-rw-r--r-- | plugins/AdvaImg/src/FreeImage/PluginGIF.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
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()); } |