Fix an issue in IOBufQueue::move
authorTudor Bosman <tudorb@fb.com>
Sat, 14 Jul 2012 05:56:13 +0000 (22:56 -0700)
committerJordan DeLong <jdelong@fb.com>
Thu, 2 Aug 2012 08:54:20 +0000 (01:54 -0700)
Summary: That's all.

Test Plan: .

Reviewed By: philipp@fb.com

FB internal diff: D520116

folly/experimental/io/IOBufQueue.h

index 8883417f0373d22dbbff2608368e7eb11333c214..2dfc7e794ad3f81534958b2c38362ace4422363e 100644 (file)
@@ -182,7 +182,7 @@ class IOBufQueue {
   /**
    * Transfer ownership of the queue's entire IOBuf chain to the caller.
    */
-  std::unique_ptr<folly::IOBuf>&& move() {
+  std::unique_ptr<folly::IOBuf> move() {
     chainLength_ = 0;
     return std::move(head_);
   }