diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-07-20 07:26:15 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-07-20 07:26:15 +0000 |
| commit | fcd25c00c332334cf431bc1f3a6102182ba86a50 (patch) | |
| tree | 930589f15decb9d46faf07c4ddb8bc3d4df0fd1b /src/ui/widget | |
| parent | Added set_int_pref stub to svg/test-stubs.cpp, unit tests build again on (diff) | |
| download | inkscape-fcd25c00c332334cf431bc1f3a6102182ba86a50.tar.gz inkscape-fcd25c00c332334cf431bc1f3a6102182ba86a50.zip | |
Warning cleanup
(bzr r6367)
Diffstat (limited to 'src/ui/widget')
| -rw-r--r-- | src/ui/widget/combo-enums.h | 2 | ||||
| -rw-r--r-- | src/ui/widget/icon-widget.cpp | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/ui/widget/combo-enums.h b/src/ui/widget/combo-enums.h index 11640f3ca..c418ea28b 100644 --- a/src/ui/widget/combo-enums.h +++ b/src/ui/widget/combo-enums.h @@ -37,7 +37,7 @@ public: pack_start(_columns.label); // Initialize list - for(int i = 0; i < _converter._length; ++i) { + for(int i = 0; i < static_cast<int>(_converter._length); ++i) { Gtk::TreeModel::Row row = *_model->append(); const Util::EnumData<E>* data = &_converter.data(i); row[_columns.data] = data; diff --git a/src/ui/widget/icon-widget.cpp b/src/ui/widget/icon-widget.cpp index 7e812236f..64415f421 100644 --- a/src/ui/widget/icon-widget.cpp +++ b/src/ui/widget/icon-widget.cpp @@ -28,14 +28,14 @@ namespace Widget { * * An icon widget is a ... */ - -IconWidget::IconWidget() + +IconWidget::IconWidget() { _pb = NULL; _size = 0; } -IconWidget::IconWidget(int unsigned size, int unsigned scale, gchar const *name) +IconWidget::IconWidget(int unsigned size, int unsigned scale, gchar const *name) { _size = std::max((int unsigned)128, std::min(size, (int unsigned)1)); @@ -48,19 +48,19 @@ IconWidget::IconWidget(int unsigned size, int unsigned scale, gchar const *name) _pb = NULL; } else { /* TODO - _pb = gdk_pixbuf_new_from_data(pixels, GDK_COLORSPACE_RGB, - TRUE, 8, _size, _size, _size * 4, + _pb = gdk_pixbuf_new_from_data(pixels, GDK_COLORSPACE_RGB, + TRUE, 8, _size, _size, _size * 4, (GdkPixbufDestroyNotify)g_free, NULL); */ } } -IconWidget::IconWidget(int unsigned size, guchar const *px) +IconWidget::IconWidget(int unsigned size, guchar const */*px*/) { _size = std::max((int unsigned)128, std::min(size, (int unsigned)1)); /* - _pb = gdk_pixbuf_new_from_data((guchar *)px, GDK_COLORSPACE_RGB, + _pb = gdk_pixbuf_new_from_data((guchar *)px, GDK_COLORSPACE_RGB, TRUE, 8, _size, _size, _size * 4, NULL, NULL); */ } @@ -132,19 +132,19 @@ guchar* IconWidget::image_load(gchar const *name, int unsigned size, int unsigne return px; } -guchar* IconWidget::image_load_pixmap(gchar const *name, int unsigned size, int unsigned scale) +guchar* IconWidget::image_load_pixmap(gchar const */*name*/, int unsigned /*size*/, int unsigned /*scale*/) { // TODO return NULL; } -guchar* IconWidget::image_load_svg(gchar const *name, int unsigned size, int unsigned scale) +guchar* IconWidget::image_load_svg(gchar const */*name*/, int unsigned /*size*/, int unsigned /*scale*/) { // TODO return NULL; } -guchar* IconWidget::image_load_gtk(gchar const *name, int unsigned size, int unsigned scale) +guchar* IconWidget::image_load_gtk(gchar const */*name*/, int unsigned /*size*/, int unsigned /*scale*/) { // TODO return NULL; @@ -154,7 +154,7 @@ guchar* IconWidget::image_load_gtk(gchar const *name, int unsigned size, int uns } // namespace UI } // namespace Inkscape -/* +/* Local Variables: mode:c++ c-file-style:"stroustrup" |
