diff --git a/include/fxos/util/Queue.h b/include/fxos/util/Queue.h index b5f7da7..7ac5bb7 100644 --- a/include/fxos/util/Queue.h +++ b/include/fxos/util/Queue.h @@ -27,9 +27,10 @@ struct Queue { return pending.empty(); } - T &pop() + T pop() { - T &object = pending.front(); + // TODO: Move object out of container maybe (unclear if possible) + T object = pending.front(); pending.pop(); return object; }