From: Tudor Bosman Date: Sat, 14 Jul 2012 05:56:13 +0000 (-0700) Subject: Fix an issue in IOBufQueue::move X-Git-Tag: v0.22.0~1236 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=57bb532f321f5a5a8a5b9fd0c0803302c03df3c7;p=folly.git Fix an issue in IOBufQueue::move Summary: That's all. Test Plan: . Reviewed By: philipp@fb.com FB internal diff: D520116 --- diff --git a/folly/experimental/io/IOBufQueue.h b/folly/experimental/io/IOBufQueue.h index 8883417f..2dfc7e79 100644 --- a/folly/experimental/io/IOBufQueue.h +++ b/folly/experimental/io/IOBufQueue.h @@ -182,7 +182,7 @@ class IOBufQueue { /** * Transfer ownership of the queue's entire IOBuf chain to the caller. */ - std::unique_ptr&& move() { + std::unique_ptr move() { chainLength_ = 0; return std::move(head_); }