diff options
author | Arun Raghavan <arun@asymptotic.io> | 2020-10-12 18:08:02 -0400 |
---|---|---|
committer | Arun Raghavan <arun@asymptotic.io> | 2020-10-23 13:30:23 -0400 |
commit | bcec8b0b211ef3e7d5ca865f618b198029d67715 (patch) | |
tree | 78bf6de3df102f5e1a2d68586c580700e6e36f5f /webrtc/base/constructormagic.h | |
parent | b1b02581d3120733f3de7975654a930bbd8c5210 (diff) | |
download | webrtc-audio-processing-bcec8b0b211ef3e7d5ca865f618b198029d67715.tar.gz |
Update to current webrtc library
This is from the upstream library commit id
3326535126e435f1ba647885ce43a8f0f3d317eb, corresponding to Chromium
88.0.4290.1.
Diffstat (limited to 'webrtc/base/constructormagic.h')
-rw-r--r-- | webrtc/base/constructormagic.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/webrtc/base/constructormagic.h b/webrtc/base/constructormagic.h deleted file mode 100644 index 6ef7826..0000000 --- a/webrtc/base/constructormagic.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2004 The WebRTC Project Authors. All rights reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source - * tree. An additional intellectual property rights grant can be found - * in the file PATENTS. All contributing project authors may - * be found in the AUTHORS file in the root of the source tree. - */ - -#ifndef WEBRTC_BASE_CONSTRUCTORMAGIC_H_ -#define WEBRTC_BASE_CONSTRUCTORMAGIC_H_ - -// Put this in the declarations for a class to be unassignable. -#define RTC_DISALLOW_ASSIGN(TypeName) \ - void operator=(const TypeName&) = delete - -// A macro to disallow the copy constructor and operator= functions. This should -// be used in the declarations for a class. -#define RTC_DISALLOW_COPY_AND_ASSIGN(TypeName) \ - TypeName(const TypeName&) = delete; \ - RTC_DISALLOW_ASSIGN(TypeName) - -// A macro to disallow all the implicit constructors, namely the default -// constructor, copy constructor and operator= functions. -// -// This should be used in the declarations for a class that wants to prevent -// anyone from instantiating it. This is especially useful for classes -// containing only static methods. -#define RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \ - TypeName() = delete; \ - RTC_DISALLOW_COPY_AND_ASSIGN(TypeName) - -#endif // WEBRTC_BASE_CONSTRUCTORMAGIC_H_ |