X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=test_util.cpp;h=be34583805df68a2da1cedc5e8212eb380bf8cdf;hp=eaa5fc6809dc0f131dd0342b86efe8a44e4a40ce;hb=85f9719bf3519b1f1942738d11601584f5d38725;hpb=a80b859d6c8bb9ed1e7aa547d4a9972f1a041347 diff --git a/test_util.cpp b/test_util.cpp index eaa5fc6..be34583 100644 --- a/test_util.cpp +++ b/test_util.cpp @@ -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]); } } }