diff options
author | zmiao <miao.zhao@mapbox.com> | 2019-10-15 11:55:41 +0300 |
---|---|---|
committer | zmiao <miao.zhao@mapbox.com> | 2019-10-15 11:55:41 +0300 |
commit | 7a802b1c4f8af0f8bbb62c57c9d04c5583c63968 (patch) | |
tree | bf4745bdff4b5c0f6ac728ed0dd7336a1a28ac90 | |
parent | eed8759c17298b9e9cce197465d26cd909bd3a63 (diff) | |
download | qtlocation-mapboxgl-7a802b1c4f8af0f8bbb62c57c9d04c5583c63968.tar.gz |
[test-runner] Fix format
-rw-r--r-- | platform/default/src/mbgl/gfx/headless_frontend.cpp | 2 | ||||
-rw-r--r-- | render-test/parser.cpp | 8 | ||||
-rw-r--r-- | render-test/render_test.cpp | 1 |
3 files changed, 4 insertions, 7 deletions
diff --git a/platform/default/src/mbgl/gfx/headless_frontend.cpp b/platform/default/src/mbgl/gfx/headless_frontend.cpp index 95da7b42be..287567adbd 100644 --- a/platform/default/src/mbgl/gfx/headless_frontend.cpp +++ b/platform/default/src/mbgl/gfx/headless_frontend.cpp @@ -147,7 +147,7 @@ PremultipliedImage HeadlessFrontend::render(Map& map) { if (error) { std::rethrow_exception(error); } - + return result; } diff --git a/render-test/parser.cpp b/render-test/parser.cpp index 303916b16b..b39098cf4b 100644 --- a/render-test/parser.cpp +++ b/render-test/parser.cpp @@ -367,10 +367,8 @@ ArgumentsTuple parseArguments(int argc, char** argv) { { 's', "shuffle" }); args::ValueFlag<uint32_t> seedValue(argumentParser, "seed", "Shuffle seed (default: random)", { "seed" }); - args::ValueFlag<std::string> testRootPathValue(argumentParser, "rootPath", "Test root rootPath", - { 'p', "rootPath" }); - args::ValueFlag<std::regex> testFilterValue(argumentParser, "filter", "Test filter regex", - { 'f', "filter" }); + args::ValueFlag<std::string> testRootPathValue(argumentParser, "rootPath", "Test root rootPath", {'p', "rootPath"}); + args::ValueFlag<std::regex> testFilterValue(argumentParser, "filter", "Test filter regex", {'f', "filter"}); args::PositionalList<std::string> testNameValues(argumentParser, "URL", "Test name(s)"); try { @@ -786,7 +784,7 @@ std::string createResultPage(const TestStatistics& stats, const std::vector<Test } std::string localizeURL(const std::string& url, const std::string& rootPath) { - static const std::regex regex { "local://" }; + static const std::regex regex{"local://"}; if (auto vendorPath = getVendorPath(url, regex, rootPath)) { return *vendorPath; } else { diff --git a/render-test/render_test.cpp b/render-test/render_test.cpp index 90431fb4f5..8cb0d38900 100644 --- a/render-test/render_test.cpp +++ b/render-test/render_test.cpp @@ -3,7 +3,6 @@ #include <mbgl/render_test.hpp> #include <mbgl/util/io.hpp> #include <mbgl/util/run_loop.hpp> -#include <mbgl/render_test.hpp> #include "metadata.hpp" #include "parser.hpp" |