diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-04-01 16:42:20 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-04-01 16:42:42 +0200 |
commit | 220ebf61dd58802256a852f083acbb6f91d945aa (patch) | |
tree | 63d095c15160860cb2d3e8173b252cdc7aedbb44 /test | |
parent | cc97675ca1f7e4f3241188bb550fe72ce1949488 (diff) | |
download | qtlocation-mapboxgl-220ebf61dd58802256a852f083acbb6f91d945aa.tar.gz |
replace iterator variable types with auto
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/fixture_log_observer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixtures/fixture_log_observer.cpp b/test/fixtures/fixture_log_observer.cpp index 08a6415643..f66d185439 100644 --- a/test/fixtures/fixture_log_observer.cpp +++ b/test/fixtures/fixture_log_observer.cpp @@ -28,7 +28,7 @@ bool FixtureLogObserver::onRecord(EventSeverity severity, Event event, int64_t c size_t FixtureLogObserver::count(const LogMessage &message) const { size_t message_count = 0; - for (const LogMessage &msg : messages) { + for (const auto& msg : messages) { if (msg == message) { message_count++; msg.checked = true; @@ -39,7 +39,7 @@ size_t FixtureLogObserver::count(const LogMessage &message) const { std::vector<FixtureLogObserver::LogMessage> FixtureLogObserver::unchecked() const { std::vector<LogMessage> unchecked_messages; - for (const LogMessage &msg : messages) { + for (const auto& msg : messages) { if (!msg.checked) { unchecked_messages.push_back(msg); msg.checked = true; @@ -50,7 +50,7 @@ std::vector<FixtureLogObserver::LogMessage> FixtureLogObserver::unchecked() cons ::std::ostream &operator<<(::std::ostream &os, const std::vector<FixtureLogObserver::LogMessage> &messages) { - for (const FixtureLogObserver::LogMessage &message : messages) { + for (const auto& message : messages) { os << "- " << message; } return os; |