[solang] Silenced a few compiler warnings



commit 084f7c8f2275fd27017122254d0ad7cc515d7756
Author: Debarshi Ray <rishi gnu org>
Date:   Wed Jan 13 20:27:46 2010 +0200

    Silenced a few compiler warnings

 src/common/histogram-viewer.cpp          |    4 ++--
 src/common/thumbbuf-maker.cpp            |    2 +-
 src/editor/rotate-operation.cpp          |    2 +-
 src/renderer/cell-renderer-thumbnail.cpp |    4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/common/histogram-viewer.cpp b/src/common/histogram-viewer.cpp
index a08f064..b92d05a 100644
--- a/src/common/histogram-viewer.cpp
+++ b/src/common/histogram-viewer.cpp
@@ -156,8 +156,8 @@ HistogramViewer::update()
 void
 HistogramViewer::on_size_request( Gtk::Requisition *requisition )
 {
-    gint64 oldWidth = get_width();
-    gint64 oldHeight = get_height();
+//    gint64 oldWidth = get_width();
+//    gint64 oldHeight = get_height();
     Gtk::VBox::on_size_request( requisition );
 #if 0
     gint64 width = width_ + requisition->width - oldWidth;
diff --git a/src/common/thumbbuf-maker.cpp b/src/common/thumbbuf-maker.cpp
index 1f68caa..0aea832 100644
--- a/src/common/thumbbuf-maker.cpp
+++ b/src/common/thumbbuf-maker.cpp
@@ -79,7 +79,7 @@ ThumbbufMaker::operator()(const PhotoPtr & photo) throw(Gdk::PixbufError,
                                 pixbuf->gobj()), false);
     }
 
-    const gint height = pixbuf->get_height();
+    const guint height = static_cast<guint>(pixbuf->get_height());
 
     if (height_ < height)
     {
diff --git a/src/editor/rotate-operation.cpp b/src/editor/rotate-operation.cpp
index 8c55750..af60c7f 100644
--- a/src/editor/rotate-operation.cpp
+++ b/src/editor/rotate-operation.cpp
@@ -36,9 +36,9 @@ RotateOperation::RotateOperation(gdouble origin_x,
                                  gdouble degrees) throw() :
     Operation(),
     hardEdges_(hard_edges),
+    degrees_(degrees),
     originX_(origin_x),
     originY_(origin_y),
-    degrees_(degrees),
     lanczosWidth_(lanczos_width),
     filter_(filter),
     signalReady_()
diff --git a/src/renderer/cell-renderer-thumbnail.cpp b/src/renderer/cell-renderer-thumbnail.cpp
index bea44df..641ff29 100644
--- a/src/renderer/cell-renderer-thumbnail.cpp
+++ b/src/renderer/cell-renderer-thumbnail.cpp
@@ -36,8 +36,8 @@ namespace Solang
 CellRendererThumbnail::CellRendererThumbnail() throw() :
     Gtk::CellRendererPixbuf(),
     extraHeight_(0),
-    imageLoading_(0),
-    photo_()
+    photo_(),
+    imageLoading_(0)
 {
     property_xalign().set_value(0.5);
     property_yalign().set_value(0.5);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]