diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-11-11 11:20:05 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-11-11 11:20:05 +0000 |
| commit | f8a5b66bb57495c83274218dc98530a071b10f27 (patch) | |
| tree | 0daca6f3d143d95739dd6fb423a7e262f13275b7 /src/common-context.cpp | |
| parent | Build. Fixing win32 build with cairo > 1.11.4 (replacing uint with unsigned i... (diff) | |
| download | inkscape-f8a5b66bb57495c83274218dc98530a071b10f27.tar.gz inkscape-f8a5b66bb57495c83274218dc98530a071b10f27.zip | |
cppcheck: Convert more C-style pointer casts to GObject or C++
(bzr r11867)
Diffstat (limited to 'src/common-context.cpp')
| -rw-r--r-- | src/common-context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common-context.cpp b/src/common-context.cpp index 9ced41a26..9d5dbb048 100644 --- a/src/common-context.cpp +++ b/src/common-context.cpp @@ -56,9 +56,9 @@ GType sp_common_context_get_type(void) static void sp_common_context_class_init(SPCommonContextClass *klass) { GObjectClass *object_class = (GObjectClass *) klass; - SPEventContextClass *event_context_class = (SPEventContextClass *) klass; + SPEventContextClass *event_context_class = SP_EVENT_CONTEXT_CLASS(klass); - common_parent_class = (SPEventContextClass*)g_type_class_peek_parent(klass); + common_parent_class = SP_EVENT_CONTEXT_CLASS(g_type_class_peek_parent(klass)); object_class->dispose = sp_common_context_dispose; |
