From 1bf1ab5c898f6e6d6e878a716540d0049f5cb206 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 00:04:37 -0400 Subject: Use auto when declaring iterators --- tests/ingen_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp index 87e02e9f..f6d3f966 100644 --- a/tests/ingen_test.cpp +++ b/tests/ingen_test.cpp @@ -166,7 +166,8 @@ run(int argc, char** argv) std::string subject_str = fmt("msg%1%", n_events); Sord::URI subject(*world->rdf_world(), subject_str, reinterpret_cast(cmds_file_uri.buf)); - Sord::Iter iter = cmds->find(subject, nil, nil); + + auto iter = cmds->find(subject, nil, nil); if (iter.end()) { break; } -- cgit v1.2.1