]> git.sesse.net Git - movit/blobdiff - test_util.cpp
Move to 'using namespace std;' in all .cpp files.
[movit] / test_util.cpp
index eaa5fc6809dc0f131dd0342b86efe8a44e4a40ce..be34583805df68a2da1cedc5e8212eb380bf8cdf 100644 (file)
@@ -11,6 +11,8 @@
 #include "test_util.h"
 #include "util.h"
 
+using namespace std;
+
 class Input;
 
 namespace {
@@ -32,7 +34,7 @@ void vertical_flip(T *data, unsigned width, unsigned height)
        for (unsigned y = 0; y < height / 2; ++y) {
                unsigned flip_y = height - y - 1;
                for (unsigned x = 0; x < width; ++x) {
-                       std::swap(data[y * width + x], data[flip_y * width + x]);
+                       swap(data[y * width + x], data[flip_y * width + x]);
                }
        }
 }