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

Commit 3098ae56 authored by George Burgess IV's avatar George Burgess IV
Browse files

Make a logically const pointer const.

Looks like we only ever point kEmptyString at one thing.

Bug: None
Test: Builds
Change-Id: I365d6e3727ceecdb92f23b4aaddf9121d20dc1f7
parent 334e5dff
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;