Commit e371f1d7 by Geoff Lang

Update the DISALLOW_COPY_AND_ASSIGN macro to use c++ operator deletion.

Also remove the TSymbol copy constructor which is not used. BUG=angle:836 Change-Id: I4f35f554c90d01dc2132d244a1974d9a8dc89bbd Reviewed-on: https://chromium-review.googlesource.com/231231Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent cc4cd292
...@@ -21,9 +21,11 @@ ...@@ -21,9 +21,11 @@
// A macro to disallow the copy constructor and operator= functions // A macro to disallow the copy constructor and operator= functions
// This must be used in the private: declarations for a class // This must be used in the private: declarations for a class
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \ #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \ TypeName(const TypeName&) = delete; \
void operator=(const TypeName&) TypeName(TypeName&&) = delete; \
void operator=(const TypeName&) = delete; \
void operator=(TypeName&&) = delete;
template <typename T, size_t N> template <typename T, size_t N>
inline size_t ArraySize(T(&)[N]) inline size_t ArraySize(T(&)[N])
......
...@@ -92,12 +92,6 @@ void TSymbolTableLevel::relateToExtension(const char *name, const TString &ext) ...@@ -92,12 +92,6 @@ void TSymbolTableLevel::relateToExtension(const char *name, const TString &ext)
} }
} }
TSymbol::TSymbol(const TSymbol &copyOf)
{
name = NewPoolTString(copyOf.name->c_str());
uniqueId = copyOf.uniqueId;
}
TSymbol *TSymbolTable::find(const TString &name, int shaderVersion, TSymbol *TSymbolTable::find(const TString &name, int shaderVersion,
bool *builtIn, bool *sameScope) const bool *builtIn, bool *sameScope) const
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment