reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -1655,7 +1655,7 @@ enum ObModifyQuorumType {
};
class ObModifyQuorumTypeChecker {
public:
public:
static bool is_valid_type(const ObModifyQuorumType modify_quorum_type)
{
return modify_quorum_type >= WITH_MODIFY_QUORUM && modify_quorum_type < MAX_MODIFY_QUORUM_TYPE;
@ -1705,7 +1705,7 @@ enum ObReplicaType {
};
class ObReplicaTypeCheck {
public:
public:
static bool is_replica_type_valid(const int32_t replica_type)
{
return REPLICA_TYPE_FULL == replica_type || REPLICA_TYPE_LOGONLY == replica_type ||
@ -1780,7 +1780,7 @@ class ObReplicaTypeCheck {
};
class ObMemstorePercentCheck {
public:
public:
static bool is_memstore_percent_valid(const int64_t memstore_percent)
{
return 0 == memstore_percent || 100 == memstore_percent;
@ -1937,14 +1937,14 @@ struct ObNumberDesc {
#define DEFINE_ALLOCATOR_WRAPPER \
class IAllocator { \
public: \
public: \
virtual ~IAllocator(){}; \
virtual void* alloc(const int64_t size) = 0; \
virtual void* alloc(const int64_t size, const lib::ObMemAttr& attr) = 0; \
}; \
template <class T> \
class TAllocator : public IAllocator { \
public: \
public: \
explicit TAllocator(T& allocator) : allocator_(allocator){}; \
void* alloc(const int64_t size) \
{ \
@ -1956,7 +1956,7 @@ struct ObNumberDesc {
return alloc(size); \
}; \
\
private: \
private: \
T& allocator_; \
};