diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-11-11 12:46:25 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-11-11 12:46:25 +0000 |
| commit | 5da5121b9afaa8b2d1f0308dffc7d1e1b225b142 (patch) | |
| tree | 82da3ca8957d85afe43c12cccfdded7a0e769116 /src/widgets/button.cpp | |
| parent | cppcheck: Convert more C-style pointer casts to GObject or C++ (diff) | |
| download | inkscape-5da5121b9afaa8b2d1f0308dffc7d1e1b225b142.tar.gz inkscape-5da5121b9afaa8b2d1f0308dffc7d1e1b225b142.zip | |
Replace remaining C-style pointer casts for src/widgets
(bzr r11868)
Diffstat (limited to 'src/widgets/button.cpp')
| -rw-r--r-- | src/widgets/button.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/button.cpp b/src/widgets/button.cpp index 45356601b..1ac083276 100644 --- a/src/widgets/button.cpp +++ b/src/widgets/button.cpp @@ -218,9 +218,7 @@ sp_button_perform_action (SPButton *button, gpointer /*data*/) GtkWidget * sp_button_new( Inkscape::IconSize size, SPButtonType type, SPAction *action, SPAction *doubleclick_action ) { - SPButton *button; - - button = (SPButton *)g_object_new (SP_TYPE_BUTTON, NULL); + SPButton *button = SP_BUTTON(g_object_new(SP_TYPE_BUTTON, NULL)); button->type = type; button->lsize = CLAMP( size, Inkscape::ICON_SIZE_MENU, Inkscape::ICON_SIZE_DECORATION ); |
