X-Git-Url: https://git.tokkee.org/?p=inkscape.git;a=blobdiff_plain;f=src%2Ftest-helpers.h;fp=src%2Ftest-helpers.h;h=e1b8521621b6fc9c14bf55de0e0c47d653a80c2c;hp=19dacd9c8cf56b9fa6e3652b84a1564677f20e46;hb=9dc68827cbd515262ecb8d5ae8547d9e82c72e00;hpb=8c6aa1264d2d7b0f1d6e31a97937572068aeaaae 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(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(); } }