]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- avoid deprecated functions
authorArvin Schnell <aschnell@suse.de>
Wed, 9 Oct 2013 08:00:23 +0000 (10:00 +0200)
committerArvin Schnell <aschnell@suse.de>
Wed, 9 Oct 2013 08:00:23 +0000 (10:00 +0200)
testsuite-real/common.cc

index 2717cc23c5e7d5c751b16db00502a87036ca619b..885eae3300a81bbf7c2bc6d27e525f91f6fc5f5e 100644 (file)
@@ -48,16 +48,14 @@ cleanup()
 void
 first_snapshot()
 {
-    first = sh->createPreSnapshot(CONFIG);
-    first->setCleanup("number");
+    first = sh->createPreSnapshot(0, CONFIG, "number", map<string, string>());
 }
 
 
 void
 second_snapshot()
 {
-    second = sh->createPostSnapshot(CONFIG, first);
-    second->setCleanup("number");
+    second = sh->createPostSnapshot(first, 0, CONFIG, "number", map<string, string>());
 }