Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_list.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-08-19 17:44:22 +0200
committerMartin Hořeňovský2020-08-20 20:42:21 +0200
commit1a97af45f168b24769301906cad9dcfe235d78e5 (patch)
tree9ba8714754f38df9e7d446b959d753a385215bc3 /src/catch2/internal/catch_list.cpp
parent2e480b6e560ad8412337b49b6327c7ac303bfb01 (diff)
downloadcatch3-1a97af45f168b24769301906cad9dcfe235d78e5.tar.gz
Cleanup some stuff found by MSVC's /analyze
* Added some missing `noexcept`s on custom destructors. * Fixed `std::move` being called on a const-reference. * Initialized `ScopedMessage::m_moved` in class definition, instead of doing so in constructors explicitly. * Turned some `enum`s into `enum class`es. * Initialized `StreamingReporterBase::currentTestCaseInfo` in class definition. * Some cleanups in SelfTest code.
Diffstat (limited to 'src/catch2/internal/catch_list.cpp')
-rw-r--r--src/catch2/internal/catch_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_list.cpp b/src/catch2/internal/catch_list.cpp
index 378a30e0..478ace0c 100644
--- a/src/catch2/internal/catch_list.cpp
+++ b/src/catch2/internal/catch_list.cpp
@@ -41,7 +41,7 @@ namespace Catch {
}
std::vector<TagInfo> infos; infos.reserve(tagCounts.size());
- for (auto const& tagc : tagCounts) {
+ for (auto& tagc : tagCounts) {
infos.push_back(std::move(tagc.second));
}