diff --git a/src/test-helpers.h b/src/test-helpers.h
index 8dba0c942e23a81d16dfe7350733bbc2bd420602..e1b8521621b6fc9c14bf55de0e0c47d653a80c2c 100644 (file)
--- a/src/test-helpers.h
+++ b/src/test-helpers.h
-
#ifndef SEEN_TEST_HELPERS_H
#define SEEN_TEST_HELPERS_H
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 )
}
else
{
- sp_document_unref( tmp );
+ tmp->doUnref();
}
}
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :