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

@ -20,7 +20,7 @@ namespace oceanbase {
namespace common {
class ObTruncatedString {
public:
public:
ObTruncatedString(const ObString& str, const int32_t limit)
{
const int32_t len = (limit < str.length()) ? (limit < 0 ? 0 : limit) : str.length();
@ -62,7 +62,7 @@ class ObTruncatedString {
return pos;
}
private:
private:
ObString str_;
DISALLOW_COPY_AND_ASSIGN(ObTruncatedString);