]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/glslcompiler.cpp
Use C++11 features with containers
[libs/gl.git] / tests / glsl / glslcompiler.cpp
index 35bbc8bcfb82449e1261d8d1ce542df069b86833..dbac0f516a02d7334feb37fb0dc03d97bd734947 100644 (file)
@@ -80,8 +80,8 @@ using namespace Msp;
 
 void GlslCompilerHelper::load_all_test_cases(const FS::Path &tests_dir)
 {
-       list<string> test_files = FS::list_filtered(tests_dir, "\\.glsl$");
-       test_files.sort();
+       vector<string> test_files = FS::list_filtered(tests_dir, "\\.glsl$");
+       sort(test_files);
        for(const auto &fn: test_files)
                load_test_case((tests_dir/fn).str());
 }