Bug 1353629 - PBlob refactoring - part 1 - AutoIPCStream should not have a copy CTOR, r=smaug
☠☠ backed out by b67dc5007a11 ☠ ☠
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 20 Apr 2017 15:20:38 +0200
changeset 389331 d3f738217ff507be4bfeb8d88ca31595d3b8beb0
parent 389330 1cdd50772eecfbceb7f19017919b9ddbaa2cf5ae
child 389332 a490c41305c644e165ff1e6ebf406d2d92c37f45
push idunknown
push userunknown
push dateunknown
reviewerssmaug
bugs1353629
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1353629 - PBlob refactoring - part 1 - AutoIPCStream should not have a copy CTOR, r=smaug
ipc/glue/IPCStreamUtils.h
--- a/ipc/glue/IPCStreamUtils.h
+++ b/ipc/glue/IPCStreamUtils.h
@@ -175,14 +175,19 @@ public:
   IPCStream&
   TakeValue();
 
   // Get the OptionalIPCStream value.  This will assert if
   // the value has already been taken.  This should only be called if the value
   // is being, or has already been, sent to the other side.
   OptionalIPCStream&
   TakeOptionalValue();
+
+private:
+  AutoIPCStream(const AutoIPCStream& aOther) = delete;
+  AutoIPCStream& operator=(const AutoIPCStream& aOther) = delete;
+  AutoIPCStream& operator=(const AutoIPCStream&& aOther) = delete;
 };
 
 } // namespace ipc
 } // namespace mozilla
 
 #endif // mozilla_ipc_IPCStreamUtils_h