summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-08-05 17:38:46 -0700
committerYifan Hong <elsk@google.com>2020-08-05 20:00:09 -0700
commit2a06ae82997f8125d9f262a1ec6cf0a3e22ef307 (patch)
treef67d654c420f43bcd043eb5448d78f12d8d99273 /libsparse/sparse.cpp
parent7c95de759197cb153e8be26c57b2b33f95f1869e (diff)
Fix AnimationParser remove_prefix test
The test fails because TEST_STRING, a char[], is silently converted to a std::string, passed to remove_prefix, then the string is destroyed, but a pointer to the string is returned. Fix it by changing the signature of remove_prefix to use std::string_view to be more robust in handling raw char*. Test: run it Change-Id: I553c066907f09cf330c8b7a4659db5a1fee82cac
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions