Add missing OVERRIDE specifier to avoid compile errors with clang 3.6 (issue #1688)

This commit is contained in:
Marshall Greenblatt
2015-08-17 18:44:17 -04:00
parent aef9fd486a
commit 614e2a5b7e
3 changed files with 24 additions and 21 deletions

View File

@ -113,17 +113,17 @@ class CefRefCount {
///
#define IMPLEMENT_REFCOUNTING(ClassName) \
public: \
void AddRef() const { \
void AddRef() const OVERRIDE { \
ref_count_.AddRef(); \
} \
bool Release() const { \
bool Release() const OVERRIDE { \
if (ref_count_.Release()) { \
delete static_cast<const ClassName*>(this); \
return true; \
} \
return false; \
} \
bool HasOneRef() const { \
bool HasOneRef() const OVERRIDE { \
return ref_count_.HasOneRef(); \
} \
private: \