]> git.sesse.net Git - mlt/commitdiff
Cleanup 64 bit int property tests.
authorDan Dennedy <dan@dennedy.org>
Sun, 12 May 2013 17:12:01 +0000 (10:12 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 12 May 2013 17:12:01 +0000 (10:12 -0700)
src/tests/test_properties/test_properties.cpp

index 34aa080870a6090e6bf122a5fc49d9a58136ead3..9264b488f2b978169ce9bccfbc4aebf1639c3f0c 100644 (file)
@@ -80,9 +80,9 @@ private Q_SLOTS:
     void SetAndGetInt64()
     {
         Properties p;
-        qint64 i = 1LL << 32;
-        p.set("key", (int64_t)i);
-        QCOMPARE((qint64)p.get_int64("key"), i);
+        int64_t i = 1LL << 32;
+        p.set("key", i);
+        QCOMPARE(p.get_int64("key"), i);
     }
 
     void SetAndGetData()
@@ -111,11 +111,11 @@ private Q_SLOTS:
     {
         Properties p;
         const char *s = "-1";
-        qint64 i = -1;
-        p.set("key", (int64_t)i);
+        int64_t i = -1;
+        p.set("key", i);
         QCOMPARE(p.get("key"), s);
         p.set("key", s);
-        QCOMPARE((qint64)p.get_int64("key"), i);
+        QCOMPARE(p.get_int64("key"), i);
     }
 
     void DoubleFromString()