summaryrefslogtreecommitdiffstats
path: root/src/widgets/sp-xmlview-content.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-11-11 12:46:25 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-11-11 12:46:25 +0000
commit5da5121b9afaa8b2d1f0308dffc7d1e1b225b142 (patch)
tree82da3ca8957d85afe43c12cccfdded7a0e769116 /src/widgets/sp-xmlview-content.cpp
parentcppcheck: Convert more C-style pointer casts to GObject or C++ (diff)
downloadinkscape-5da5121b9afaa8b2d1f0308dffc7d1e1b225b142.tar.gz
inkscape-5da5121b9afaa8b2d1f0308dffc7d1e1b225b142.zip
Replace remaining C-style pointer casts for src/widgets
(bzr r11868)
Diffstat (limited to 'src/widgets/sp-xmlview-content.cpp')
-rw-r--r--src/widgets/sp-xmlview-content.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/widgets/sp-xmlview-content.cpp b/src/widgets/sp-xmlview-content.cpp
index bf740baa0..d31e031c2 100644
--- a/src/widgets/sp-xmlview-content.cpp
+++ b/src/widgets/sp-xmlview-content.cpp
@@ -46,14 +46,10 @@ static Inkscape::XML::NodeEventVector repr_events = {
NULL /* order_changed */
};
-GtkWidget *
-sp_xmlview_content_new (Inkscape::XML::Node * repr)
+GtkWidget *sp_xmlview_content_new(Inkscape::XML::Node * repr)
{
- GtkTextBuffer *tb;
- SPXMLViewContent *text;
-
- tb = gtk_text_buffer_new (NULL);
- text = (SPXMLViewContent*)g_object_new (SP_TYPE_XMLVIEW_CONTENT, NULL);
+ GtkTextBuffer *tb = gtk_text_buffer_new(NULL);
+ SPXMLViewContent *text = SP_XMLVIEW_CONTENT(g_object_new(SP_TYPE_XMLVIEW_CONTENT, NULL));
gtk_text_view_set_buffer (GTK_TEXT_VIEW (text), tb);
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (text), GTK_WRAP_CHAR);