Mercurial > hg > piper-cpp
diff vamp-capnp/VampnProto.h @ 275:292ec9b50280
Tidy
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 17 Oct 2018 15:43:00 +0100 |
parents | 02de5df3a884 |
children | 26027c3a99a0 |
line wrap: on
line diff
--- a/vamp-capnp/VampnProto.h Wed Oct 17 15:22:29 2018 +0100 +++ b/vamp-capnp/VampnProto.h Wed Oct 17 15:43:00 2018 +0100 @@ -643,7 +643,8 @@ const piper::LoadResponse::Reader &r, const PluginHandleMapper &pmapper) { - resp.plugin = pmapper.handleToPlugin(r.getHandle()); + auto h = r.getHandle(); + resp.plugin = pmapper.handleToPlugin(h); readExtractorStaticData(resp.staticData, r.getStaticData()); readConfiguration(resp.defaultConfiguration, r.getDefaultConfiguration()); @@ -700,7 +701,8 @@ const piper::ConfigurationResponse::Reader &r, const PluginHandleMapper &pmapper) { - cr.plugin = pmapper.handleToPlugin(r.getHandle()); + auto h = r.getHandle(); + cr.plugin = pmapper.handleToPlugin(h); cr.outputs.clear(); cr.staticOutputInfo.clear(); auto oo = r.getOutputs(); @@ -1085,8 +1087,8 @@ if (getRequestResponseType(r) != RRType::Finish) { throw std::logic_error("not a finish request"); } - req.plugin = pmapper.handleToPlugin - (r.getRequest().getFinish().getHandle()); + auto h = r.getRequest().getFinish().getHandle(); + req.plugin = pmapper.handleToPlugin(h); } static void