Merge "Lock down String8.isEmpty() usage" into main
This commit is contained in:
commit
358a982b71
1 changed files with 8 additions and 1 deletions
|
@ -70,7 +70,6 @@ public:
|
|||
inline size_t size() const;
|
||||
inline size_t bytes() const;
|
||||
inline bool empty() const;
|
||||
inline bool isEmpty() const;
|
||||
|
||||
size_t length() const;
|
||||
|
||||
|
@ -149,6 +148,14 @@ private:
|
|||
status_t real_append(const char* other, size_t numChars);
|
||||
|
||||
const char* mString;
|
||||
|
||||
// These symbols are for potential backward compatibility with prebuilts. To be removed.
|
||||
#ifdef ENABLE_STRING8_OBSOLETE_METHODS
|
||||
public:
|
||||
#else
|
||||
private:
|
||||
#endif
|
||||
inline bool isEmpty() const;
|
||||
};
|
||||
|
||||
// String8 can be trivially moved using memcpy() because moving does not
|
||||
|
|
Loading…
Reference in a new issue