summaryrefslogtreecommitdiff
path: root/site/test.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-09 14:12:35 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-09 14:12:35 +0000
commite286c969d999e5afce8c7b708ac746a79588394c (patch)
tree224333e4cb8de7ea2f7e611fa7ee035b7ae40379 /site/test.cpp
parentClang format (diff)
downloadmirrorsearch-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/test.cpp')
-rw-r--r--site/test.cpp5
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 {};
}