Disallow assign by deleting correct assign signature

Bug: chromium:881453
Change-Id: I80e74d0ed37d98b3472a31a42c3468f1bdbbb950
Reviewed-on: https://webrtc-review.googlesource.com/99061
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24651}
This commit is contained in:
Danil Chapovalov 2018-09-10 09:47:35 +02:00 committed by Commit Bot
parent 8cec4fb6c2
commit 52b4961ae1

View File

@ -12,7 +12,8 @@
#define RTC_BASE_CONSTRUCTORMAGIC_H_
// Put this in the declarations for a class to be unassignable.
#define RTC_DISALLOW_ASSIGN(TypeName) void operator=(const TypeName&) = delete
#define RTC_DISALLOW_ASSIGN(TypeName) \
TypeName& operator=(const TypeName&) = delete
// A macro to disallow the copy constructor and operator= functions. This should
// be used in the declarations for a class.