Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64140 - sandbox/gil/boost/gil/extension/io2
From: dsaritz_at_[hidden]
Date: 2010-07-18 13:18:21


Author: psiha
Date: 2010-07-18 13:18:20 EDT (Sun, 18 Jul 2010)
New Revision: 64140
URL: http://svn.boost.org/trac/boost/changeset/64140

Log:
Minor stylistic changes.
Text files modified:
   sandbox/gil/boost/gil/extension/io2/libjpeg_private_base.hpp | 18 +++++++++---------
   1 files changed, 9 insertions(+), 9 deletions(-)

Modified: sandbox/gil/boost/gil/extension/io2/libjpeg_private_base.hpp
==============================================================================
--- sandbox/gil/boost/gil/extension/io2/libjpeg_private_base.hpp (original)
+++ sandbox/gil/boost/gil/extension/io2/libjpeg_private_base.hpp 2010-07-18 13:18:20 EDT (Sun, 18 Jul 2010)
@@ -133,9 +133,9 @@
     jmp_buf & error_handler_target() const { return longjmp_target_; }
 
     jpeg_common_struct & common () { return *gil_reinterpret_cast<j_common_ptr>( &libjpeg_object.compressor_ ); }
- jpeg_common_struct const & common () const { return const_cast<libjpeg_base &>( *this ).common(); }
+ jpeg_common_struct const & common () const { return const_cast<libjpeg_base &>( *this ).common (); }
     jpeg_compress_struct & compressor () { return libjpeg_object.compressor_ ; }
- jpeg_compress_struct const & compressor () const { return const_cast<libjpeg_base &>( *this ).compressor(); }
+ jpeg_compress_struct const & compressor () const { return const_cast<libjpeg_base &>( *this ).compressor (); }
     jpeg_decompress_struct & decompressor() { return libjpeg_object.decompressor_; }
     jpeg_decompress_struct const & decompressor() const { return const_cast<libjpeg_base &>( *this ).decompressor(); }
 
@@ -246,9 +246,6 @@
         #ifdef _DEBUG
         switch ( current_format )
         {
- default:
- BOOST_ASSERT( !"Unknown format code." );
-
             case JCS_RGB :
             case JCS_YCbCr :
             case JCS_CMYK :
@@ -256,6 +253,9 @@
             case JCS_GRAYSCALE:
             case JCS_UNKNOWN :
                 break;
+
+ default:
+ BOOST_ASSERT( !"Unknown format code." );
         }
         #endif
 
@@ -289,10 +289,6 @@
     {
         switch ( format )
         {
- default:
- BOOST_ASSERT( !"Invalid or unknown format specified." ); __assume( false );
- return 0;
-
             case JCS_RGB:
             case JCS_YCbCr:
                 return 3;
@@ -301,6 +297,10 @@
                 return 4;
             case JCS_GRAYSCALE:
                 return 1;
+
+ default:
+ BOOST_ASSERT( !"Invalid or unknown format specified." ); __assume( false );
+ return 0;
         }
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk