mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update include files for bracket style
This commit is contained in:
@ -124,22 +124,26 @@ class CefRefCount {
|
||||
/// Macro that provides a reference counting implementation for classes
|
||||
/// extending CefBase.
|
||||
///
|
||||
#define IMPLEMENT_REFCOUNTING(ClassName) \
|
||||
public: \
|
||||
void AddRef() const override { ref_count_.AddRef(); } \
|
||||
bool Release() const override { \
|
||||
if (ref_count_.Release()) { \
|
||||
delete static_cast<const ClassName*>(this); \
|
||||
return true; \
|
||||
} \
|
||||
return false; \
|
||||
} \
|
||||
bool HasOneRef() const override { return ref_count_.HasOneRef(); } \
|
||||
bool HasAtLeastOneRef() const override { \
|
||||
return ref_count_.HasAtLeastOneRef(); \
|
||||
} \
|
||||
\
|
||||
private: \
|
||||
#define IMPLEMENT_REFCOUNTING(ClassName) \
|
||||
public: \
|
||||
void AddRef() const override { \
|
||||
ref_count_.AddRef(); \
|
||||
} \
|
||||
bool Release() const override { \
|
||||
if (ref_count_.Release()) { \
|
||||
delete static_cast<const ClassName*>(this); \
|
||||
return true; \
|
||||
} \
|
||||
return false; \
|
||||
} \
|
||||
bool HasOneRef() const override { \
|
||||
return ref_count_.HasOneRef(); \
|
||||
} \
|
||||
bool HasAtLeastOneRef() const override { \
|
||||
return ref_count_.HasAtLeastOneRef(); \
|
||||
} \
|
||||
\
|
||||
private: \
|
||||
CefRefCount ref_count_
|
||||
|
||||
#endif // CEF_INCLUDE_CEF_BASE_H_
|
||||
|
Reference in New Issue
Block a user