From 70229a278979419cdce61809eb2d4993a30e96db Mon Sep 17 00:00:00 2001 From: Roker Date: Thu, 18 Oct 2018 18:07:11 +0200 Subject: [PATCH] rename "ret" into "r" --- locked_queue.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locked_queue.hh b/locked_queue.hh index 6f7af2b..a161c32 100644 --- a/locked_queue.hh +++ b/locked_queue.hh @@ -55,7 +55,7 @@ namespace utility { Lock L(_mtx); _cv.wait(L, [&]{ return !_q.empty(); } ); - T ret{std::move(_q.back())}; + T r{std::move(_q.back())}; _q.pop_back(); return r; } @@ -66,7 +66,7 @@ namespace utility { Lock L(_mtx); _cv.wait(L, [&]{ return !_q.empty(); } ); - T ret{std::move(_q.front())}; + T r{std::move(_q.front())}; _q.pop_front(); return r; }