From 78c0815c4118fe24ab78cce2dc48a6232dcd824a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Jun 2012 20:55:18 +0000 Subject: - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FreeImage/Source/Metadata/XTIFF.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/FreeImage/Source/Metadata/XTIFF.cpp') diff --git a/plugins/FreeImage/Source/Metadata/XTIFF.cpp b/plugins/FreeImage/Source/Metadata/XTIFF.cpp index c6ec5ba858..bc63cf38b2 100644 --- a/plugins/FreeImage/Source/Metadata/XTIFF.cpp +++ b/plugins/FreeImage/Source/Metadata/XTIFF.cpp @@ -123,7 +123,7 @@ tiff_read_geotiff_profile(TIFF *tif, FIBITMAP *dib) { if(TIFFGetField(tif, fieldInfo->field_tag, ¶ms)) { // create a tag FITAG *tag = FreeImage_CreateTag(); - if(!tag) + if (!tag) return; WORD tag_id = (WORD)fieldInfo->field_tag; @@ -147,7 +147,7 @@ tiff_read_geotiff_profile(TIFF *tif, FIBITMAP *dib) { if(TIFFGetField(tif, fieldInfo->field_tag, &tag_count, &data)) { // create a tag FITAG *tag = FreeImage_CreateTag(); - if(!tag) + if (!tag) return; WORD tag_id = (WORD)fieldInfo->field_tag; @@ -315,7 +315,7 @@ tiff_read_exif_tag(TIFF *tif, TagLib::MDMODEL md_model, FIBITMAP *dib, TagLib& t // build FreeImage tag from Tiff Tag data we collected FITAG *fitag = FreeImage_CreateTag(); - if(!fitag) { + if (!fitag) { if(mem_alloc) { _TIFFfree(raw_data); } @@ -514,18 +514,18 @@ tiff_read_exif_tags(TIFF *tif, TagLib::MDMODEL md_model, FIBITMAP *dib) { // test if tag value is set // (lifted directly form LibTiff _TIFFWriteDirectory) - if( fld->field_bit == FIELD_CUSTOM ) { + if ( fld->field_bit == FIELD_CUSTOM ) { int ci, is_set = FALSE; - for( ci = 0; ci < td->td_customValueCount; ci++ ) { + for ( ci = 0; ci < td->td_customValueCount; ci++ ) { is_set |= (td->td_customValues[ci].info == fld); } - if( !is_set ) { + if ( !is_set ) { continue; } - } else if(!TIFFFieldSet(tif, fld->field_bit)) { + } else if (!TIFFFieldSet(tif, fld->field_bit)) { continue; } @@ -639,7 +639,7 @@ tiff_write_exif_tags(TIFF *tif, TagLib::MDMODEL md_model, FIBITMAP *dib) { // check for identical formats // (enum value are the sames between FREE_IMAGE_MDTYPE and TIFFDataType types) - if((int)tif_tag_type != (int)tag_type) { + if ((int)tif_tag_type != (int)tag_type) { // skip tag or _TIFFmemcpy will fail continue; } -- cgit v1.2.3