db: cleanup atomic req use
authorTomi Valkeinen <tomi.valkeinen@iki.fi>
Sat, 3 Oct 2015 18:26:25 +0000 (21:26 +0300)
committerTomi Valkeinen <tomi.valkeinen@iki.fi>
Sat, 3 Oct 2015 18:26:31 +0000 (21:26 +0300)
tests/db.cpp

index 12db4346a18e548a2175abc4f3cc0af72b065b13..3515b106aa8f4e7011eeb47ad1111bdf5a3ba8b6 100644 (file)
@@ -64,14 +64,14 @@ public:
                if (card.has_atomic()) {
                        int r;
 
-                       AtomicReq ctx(card);
+                       AtomicReq req(card);
 
-                       ctx.add(m_crtc, card.get_prop("FB_ID"), fb->id());
+                       req.add(m_crtc, "FB_ID", fb->id());
 
-                       r = ctx.test();
+                       r = req.test();
                        ASSERT(r == 0);
 
-                       r = ctx.commit(this);
+                       r = req.commit(this);
                        ASSERT(r == 0);
                } else {
                        int r = crtc->page_flip(*fb, this);