diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2012-01-08 09:00:38 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2012-01-08 09:00:38 +0000 |
| commit | 1c8127076573a338f2f66aa4fbb56588b62a1182 (patch) | |
| tree | 68b5f1d8aae7a741865e3e1c620c5d8b18df824e /src/widgets/sp-attribute-widget.cpp | |
| parent | Fix pointer initialization (diff) | |
| download | inkscape-1c8127076573a338f2f66aa4fbb56588b62a1182.tar.gz inkscape-1c8127076573a338f2f66aa4fbb56588b62a1182.zip | |
Warning and uninitialized variable cleanup.
(bzr r10860)
Diffstat (limited to 'src/widgets/sp-attribute-widget.cpp')
| -rw-r--r-- | src/widgets/sp-attribute-widget.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/widgets/sp-attribute-widget.cpp b/src/widgets/sp-attribute-widget.cpp index 986295aef..41ff675ac 100644 --- a/src/widgets/sp-attribute-widget.cpp +++ b/src/widgets/sp-attribute-widget.cpp @@ -239,14 +239,9 @@ void SPAttributeTable::change_object(SPObject *object) // Set up object modified_connection = object->connectModified(sigc::bind<2>(sigc::ptr_fun(&sp_attribute_table_object_modified), this)); release_connection = object->connectRelease (sigc::bind<1>(sigc::ptr_fun(&sp_attribute_table_object_release), this)); - Gtk::Entry *ee; - Gtk::Widget *w; - const gchar *val; for (guint i = 0; i < (_attributes.size()); i++) { - ee = (Gtk::Entry *)_entries[i]; - w = (Gtk::Widget *) ee; - val = object->getRepr()->attribute(_attributes[i].c_str()); - ee->set_text (val ? val : (const gchar *) ""); + const gchar *val = object->getRepr()->attribute(_attributes[i].c_str()); + _entries[i]->set_text(val ? val : ""); } } |
