diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2010-12-12 08:40:34 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2010-12-12 08:40:34 +0000 |
| commit | aadfea4113abc6863d7ab03d21b973802c41c503 (patch) | |
| tree | 3f890c0c112433fd850d59558208addf1baa85da /src/test-helpers.h | |
| parent | Pot and Dutch translation update (diff) | |
| parent | A simple layout document as to what, why and how is cppification. (diff) | |
| download | inkscape-aadfea4113abc6863d7ab03d21b973802c41c503.tar.gz inkscape-aadfea4113abc6863d7ab03d21b973802c41c503.zip | |
Merge and cleanup of GSoC C++-ification project.
(bzr r9945.1.1)
Diffstat (limited to 'src/test-helpers.h')
| -rw-r--r-- | src/test-helpers.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test-helpers.h b/src/test-helpers.h index 19dacd9c8..e1b852162 100644 --- a/src/test-helpers.h +++ b/src/test-helpers.h @@ -1,4 +1,3 @@ - #ifndef SEEN_TEST_HELPERS_H #define SEEN_TEST_HELPERS_H @@ -32,7 +31,7 @@ T* createSuiteAndDocument( void (*fun)(T*&) ) static_cast<void>(g_object_new(inkscape_get_type(), NULL)); } - SPDocument* tmp = sp_document_new( NULL, TRUE, true ); + SPDocument* tmp = SPDocument::createNewDoc( NULL, TRUE, true ); if ( tmp ) { fun( suite ); if ( suite ) @@ -41,7 +40,7 @@ T* createSuiteAndDocument( void (*fun)(T*&) ) } else { - sp_document_unref( tmp ); + tmp->doUnref(); } } |
