]> git.saurik.com Git - apt.git/blobdiff - test/test_udevcdrom.cc
cppcheck complains about some possible speed improvements which could be
[apt.git] / test / test_udevcdrom.cc
index e65c7a29749415692f5ab1752bd729e9899b94c5..577e2d013c35d363e72493eef6b248b613e29fb2 100644 (file)
@@ -10,7 +10,7 @@ int main()
 
    vector<CdromDevice> l;
    l = c.Scan();
-   assert(l.size() > 0);
+   assert(l.empty() == false);
    for (i=0;i<l.size();i++)
       std::cerr << l[i].DeviceName << " " 
                << l[i].Mounted << " "