commit | 3d816e19238194a836634c60cc3bd250a29afb39 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri May 18 17:58:56 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri May 18 17:58:56 2018 +0000 |
tree | 0863f2822d5036b1034b75bccf35f2b7be44edd5 | |
parent | 9d05a1150cc26d1e2c3297012f712cbe8fe25241 [diff] | |
parent | 3098ae5665976c97fe20136183cb9465053e66ff [diff] |
Merge "Make a logically const pointer const."
diff --git a/media/libstagefright/foundation/AString.cpp b/media/libstagefright/foundation/AString.cpp index 04fac19..c6ef75f 100644 --- a/media/libstagefright/foundation/AString.cpp +++ b/media/libstagefright/foundation/AString.cpp
@@ -31,7 +31,7 @@ namespace android { // static -const char *AString::kEmptyString = ""; +constexpr const char *AString::kEmptyString; AString::AString() : mData((char *)kEmptyString),
diff --git a/media/libstagefright/foundation/include/media/stagefright/foundation/AString.h b/media/libstagefright/foundation/include/media/stagefright/foundation/AString.h index ff086b3..0f6299c 100644 --- a/media/libstagefright/foundation/include/media/stagefright/foundation/AString.h +++ b/media/libstagefright/foundation/include/media/stagefright/foundation/AString.h
@@ -93,7 +93,7 @@ status_t writeToParcel(Parcel *parcel) const; private: - static const char *kEmptyString; + constexpr static const char *kEmptyString = ""; char *mData; size_t mSize;