Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b19c86cd authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Automerger Merge Worker
Browse files

Merge "Lock down String8.isEmpty() usage" into main am: 358a982b

parents f5a280a0 358a982b
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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