$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r67716 - sandbox/gil/boost/gil/extension/io2
From: dsaritz_at_[hidden]
Date: 2011-01-06 06:29:10
Author: psiha
Date: 2011-01-06 06:28:59 EST (Thu, 06 Jan 2011)
New Revision: 67716
URL: http://svn.boost.org/trac/boost/changeset/67716
Log:
Minor cleanup.
Text files modified: 
   sandbox/gil/boost/gil/extension/io2/libjpeg_image.hpp |     2                                         
   sandbox/gil/boost/gil/extension/io2/libtiff_image.hpp |    66 +++++++++++++++++++-------------------- 
   2 files changed, 33 insertions(+), 35 deletions(-)
Modified: sandbox/gil/boost/gil/extension/io2/libjpeg_image.hpp
==============================================================================
--- sandbox/gil/boost/gil/extension/io2/libjpeg_image.hpp	(original)
+++ sandbox/gil/boost/gil/extension/io2/libjpeg_image.hpp	2011-01-06 06:28:59 EST (Thu, 06 Jan 2011)
@@ -23,7 +23,7 @@
 #include "detail/shared.hpp"
 
 #include <boost/array.hpp>
-#include <boost/smart_ptr/scoped_ptr.hpp>
+#include <boost/smart_ptr/scoped_array.hpp>
 
 #define JPEG_INTERNALS
 #include "jpeglib.h"
Modified: sandbox/gil/boost/gil/extension/io2/libtiff_image.hpp
==============================================================================
--- sandbox/gil/boost/gil/extension/io2/libtiff_image.hpp	(original)
+++ sandbox/gil/boost/gil/extension/io2/libtiff_image.hpp	2011-01-06 06:28:59 EST (Thu, 06 Jan 2011)
@@ -51,8 +51,6 @@
 {
 //------------------------------------------------------------------------------
 
-unsigned short const unknown( static_cast<unsigned short>( -1 ) );
-
 #define LIBTIFF_SPP(         param ) ( ( param ) << ( 0 ) )
 #define LIBTIFF_BPS(         param ) ( ( param ) << ( 0 + 3 ) )
 #define LIBTIFF_FMT(         param ) ( ( param ) << ( 0 + 3 + 5 ) )
@@ -60,14 +58,14 @@
 #define LIBTIFF_PHOTOMETRIC( param ) ( ( param ) << ( 0 + 3 + 5 + 3 + 2 ) )
 #define LIBTIFF_INKSET(      param ) ( ( param ) << ( 0 + 3 + 5 + 3 + 2 + 3 ) )
 
-#define LIBTIFF_FORMAT( spp, bps, sample_format, planar_config, photometric_interpretation, inkset )    \
-(                                                                                                       \
-        LIBTIFF_SPP(         spp                        ) |                                             \
-        LIBTIFF_BPS(         bps                        ) |                                             \
-        LIBTIFF_FMT(         sample_format              ) |                                             \
-        LIBTIFF_PLANAR(      planar_config              ) |                                             \
-        LIBTIFF_PHOTOMETRIC( photometric_interpretation ) |                                             \
-        LIBTIFF_INKSET(      inkset                     )                                               \
+#define LIBTIFF_FORMAT( spp, bps, sample_format, planar_config, photometric_interpretation, inkset ) \
+(                                                                                                    \
+        LIBTIFF_SPP(         spp                        ) |                                          \
+        LIBTIFF_BPS(         bps                        ) |                                          \
+        LIBTIFF_FMT(         sample_format              ) |                                          \
+        LIBTIFF_PLANAR(      planar_config              ) |                                          \
+        LIBTIFF_PHOTOMETRIC( photometric_interpretation ) |                                          \
+        LIBTIFF_INKSET(      inkset                     )                                            \
 )
 
 
@@ -340,20 +338,20 @@
     explicit libtiff_base( FILE & file )
         :
         p_tiff_
-    (
-        ::TIFFClientOpen
         (
-            "", "",
-                &file,
-                &detail::FILE_read_proc,
-                &detail::FILE_write_proc,
-                &detail::FILE_seek_proc,
-                &detail::FILE_close_proc_nop,
-                &detail::FILE_size_proc,
-                &detail::FILE_map_proc,
-                &detail::FILE_unmap_proc
+            ::TIFFClientOpen
+            (
+                "", "",
+                    &file,
+                    &detail::FILE_read_proc,
+                    &detail::FILE_write_proc,
+                    &detail::FILE_seek_proc,
+                    &detail::FILE_close_proc_nop,
+                    &detail::FILE_size_proc,
+                    &detail::FILE_map_proc,
+                    &detail::FILE_unmap_proc
+            )
         )
-    )
     {
         construction_check();
     }
@@ -361,20 +359,20 @@
     explicit libtiff_base( memory_chunk_t & in_memory_image )
         :
         p_tiff_
-    (
-        ::TIFFClientOpen
         (
-            "", "M",
-                &in_memory_image,
-                &detail::memory_read_proc,
-                &detail::memory_write_proc,
-                &detail::memory_seek_proc,
-                &detail::memory_close_proc,
-                &detail::memory_size_proc,
-                &detail::memory_map_proc,
-                &detail::memory_unmap_proc
+            ::TIFFClientOpen
+            (
+                "", "M",
+                    &in_memory_image,
+                    &detail::memory_read_proc,
+                    &detail::memory_write_proc,
+                    &detail::memory_seek_proc,
+                    &detail::memory_close_proc,
+                    &detail::memory_size_proc,
+                    &detail::memory_map_proc,
+                    &detail::memory_unmap_proc
+            )
         )
-    )
     {
         construction_check();
     }