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

Commit 3d816e19 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Make a logically const pointer const."

parents 9d05a115 3098ae56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
namespace android {

// static
const char *AString::kEmptyString = "";
constexpr const char *AString::kEmptyString;

AString::AString()
    : mData((char *)kEmptyString),
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ struct AString {
    status_t writeToParcel(Parcel *parcel) const;

private:
    static const char *kEmptyString;
    constexpr static const char *kEmptyString = "";

    char *mData;
    size_t mSize;