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/icon.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/icon.cpp')
| -rw-r--r-- | src/widgets/icon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/icon.cpp b/src/widgets/icon.cpp index c02f4bceb..c7ddc2352 100644 --- a/src/widgets/icon.cpp +++ b/src/widgets/icon.cpp @@ -881,7 +881,7 @@ GtkWidget *IconImpl::newFull( Inkscape::IconSize lsize, gchar const *name ) if ( !widget ) { //g_message("Creating an SPIcon instance for %s:%d", name, (int)lsize); - SPIcon *icon = (SPIcon *)g_object_new(SP_TYPE_ICON, NULL); + SPIcon *icon = SP_ICON(g_object_new(SP_TYPE_ICON, NULL)); icon->lsize = lsize; icon->name = g_strdup(name); icon->psize = getPhysSize(lsize); |
