]> granicus.if.org Git - imagemagick/commitdiff
Fixed compiler warnings.
authordirk <dirk@git.imagemagick.org>
Wed, 24 Sep 2014 05:04:01 +0000 (05:04 +0000)
committerdirk <dirk@git.imagemagick.org>
Wed, 24 Sep 2014 05:04:01 +0000 (05:04 +0000)
Magick++/lib/Color.cpp
Magick++/lib/Magick++/Statistic.h
Magick++/lib/Pixels.cpp
Magick++/lib/Statistic.cpp

index 9df2b11193d2586f5c38d6f2c5dec11e5550772a..e46af3f96c8c2d85a15f0db5bfa2ada8736b42c6 100644 (file)
@@ -324,7 +324,10 @@ Magick::Quantum Magick::Color::quantumRed(void) const
 }
 
 Magick::Color::Color(PixelInfo* rep_,PixelType pixelType_)
-  : _pixel(rep_),_pixelOwn(false),_isValid(true),_pixelType(pixelType_)
+  : _pixel(rep_),
+    _isValid(true),
+    _pixelOwn(false),
+    _pixelType(pixelType_)
 {
 }
 
index dad76dffbeaa68cf813d8aea2daaf7471a0abc27..5a18121f1a3b564e86584ba35c8b7f0d9c626517 100644 (file)
@@ -203,9 +203,9 @@ namespace Magick
     double _skewness;
     double _standardDeviation;
     double _sum;
-    double _sumSquared;
     double _sumCubed;
     double _sumFourthPower;
+    double _sumSquared;
     double _variance;
   };
 
index ccca4dc7bb52e7707abc490623d22b6552251dd7..2bef4d420b969f711342e992e90cd09f8e3370a0 100644 (file)
@@ -153,8 +153,8 @@ void Magick::PixelData::init(Magick::Image &image_,const ::ssize_t x_,
   _length=0;
   _size=0;
   if ((x_ < 0) || (width_ == 0) || (y_ < 0) || (height_ == 0) ||
-      (x_ > image_.columns()) || ((width_ + x_) > (::ssize_t)image_.columns())
-      || (y_ > image_.rows()) || ((height_ + y_) > (::ssize_t)image_.rows())
+      (x_ > image_.columns()) || ((width_ + x_) > image_.columns())
+      || (y_ > image_.rows()) || ((height_ + y_) > image_.rows())
       || (map_.length() == 0))
     return;
 
index 1de723c1ac1241891d287d645756c2f9adfa800a..f19f6c851ba753dc87e123e592e15bb065ea9182 100644 (file)
@@ -15,8 +15,8 @@
 using namespace std;
 
 Magick::ChannelMoments::ChannelMoments(void)
-  : _huInvariants(8),
-    _channel(SyncPixelChannel),
+  : _channel(SyncPixelChannel),
+    _huInvariants(8),
     _centroidX(0.0),
     _centroidY(0.0),
     _ellipseAxisX(0.0),
@@ -28,8 +28,8 @@ Magick::ChannelMoments::ChannelMoments(void)
 }
 
 Magick::ChannelMoments::ChannelMoments(const ChannelMoments &channelMoments_)
-  : _huInvariants(channelMoments_._huInvariants),
-    _channel(channelMoments_._channel),
+  : _channel(channelMoments_._channel),
+    _huInvariants(channelMoments_._huInvariants),
     _centroidX(channelMoments_._centroidX),
     _centroidY(channelMoments_._centroidY),
     _ellipseAxisX(channelMoments_._ellipseAxisX),
@@ -99,8 +99,8 @@ bool Magick::ChannelMoments::isValid() const
 
 Magick::ChannelMoments::ChannelMoments(const PixelChannel channel_,
   const MagickCore::ChannelMoments *channelMoments_)
-  : _huInvariants(),
-    _channel(channel_),
+  : _channel(channel_),
+    _huInvariants(),
     _centroidX(channelMoments_->centroid.x),
     _centroidY(channelMoments_->centroid.y),
     _ellipseAxisX(channelMoments_->ellipse_axis.x),