diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-09 14:12:35 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-09 14:12:35 +0000 |
commit | e286c969d999e5afce8c7b708ac746a79588394c (patch) | |
tree | 224333e4cb8de7ea2f7e611fa7ee035b7ae40379 /site | |
parent | Clang format (diff) | |
download | mirrorsearch-0.2.1.3.tar.bz2 mirrorsearch-0.2.1.3.tar.xz mirrorsearch-0.2.1.3.zip |
Work around possible false positive in clang-tidymirrorsearch-0.2.1.3
Diffstat (limited to 'site')
-rw-r--r-- | site/test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/site/test.cpp b/site/test.cpp index bcff64b..eba1572 100644 --- a/site/test.cpp +++ b/site/test.cpp @@ -23,8 +23,9 @@ public: { BOOST_TEST_INFO(fn); if (fn == "good.txt") { - return {std::make_shared<SearchHit>(1, 1, "file:///some/file/path"), - std::make_shared<SearchHit>(1, 1, "file:///some/other/path")}; + auto a = std::make_shared<SearchHit>(1, 1, "file:///some/file/path"), + b = std::make_shared<SearchHit>(1, 1, "file:///some/other/path"); + return {std::move(a), std::move(b)}; } return {}; } |