summaryrefslogtreecommitdiffstats
path: root/src/server/events/Copy.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 00:04:37 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 01:12:58 -0400
commit1bf1ab5c898f6e6d6e878a716540d0049f5cb206 (patch)
treec57017ccfd1598e872ede9459a70b396501d7b76 /src/server/events/Copy.cpp
parent6bce9e50915d730caa3bd2b60c513fe9915e4b83 (diff)
downloadingen-1bf1ab5c898f6e6d6e878a716540d0049f5cb206.tar.gz
ingen-1bf1ab5c898f6e6d6e878a716540d0049f5cb206.tar.bz2
ingen-1bf1ab5c898f6e6d6e878a716540d0049f5cb206.zip
Use auto when declaring iterators
Diffstat (limited to 'src/server/events/Copy.cpp')
-rw-r--r--src/server/events/Copy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp
index 9ce7ead6..ebfea41d 100644
--- a/src/server/events/Copy.cpp
+++ b/src/server/events/Copy.cpp
@@ -69,7 +69,7 @@ Copy::pre_process(PreProcessContext& ctx)
const raul::Path old_path = uri_to_path(_msg.old_uri);
// Find the old node
- const Store::iterator i = _engine.store()->find(old_path);
+ const auto i = _engine.store()->find(old_path);
if (i == _engine.store()->end()) {
return Event::pre_process_done(Status::NOT_FOUND, old_path);
}
@@ -115,8 +115,8 @@ Copy::engine_to_engine(PreProcessContext& ctx)
}
// Find new parent graph
- const raul::Path parent_path = new_path.parent();
- const Store::iterator p = _engine.store()->find(parent_path);
+ const raul::Path parent_path = new_path.parent();
+ const auto p = _engine.store()->find(parent_path);
if (p == _engine.store()->end()) {
return Event::pre_process_done(Status::NOT_FOUND, parent_path);
}