commit | ade063198edba319a9c499edfaa490b4694e4aa6 | [log] [tgz] |
---|---|---|
author | Tomasz Wasilczyk <twasilczyk@google.com> | Thu Aug 10 23:54:44 2023 +0000 |
committer | Tomasz Wasilczyk <twasilczyk@google.com> | Fri Aug 18 16:50:01 2023 +0000 |
tree | 8699a021d0b8f578041896d4a2df0047684d954b | |
parent | 6caa7cbbec81b2304fea3a98950d202002e98ac1 [diff] [blame] |
Use String8/16 c_str [tools] Bug: 295394788 Test: make checkbuild Change-Id: I82d6899d8c15a10b15399c39177290012bb5f13b
diff --git a/cmds/idmap2/libidmap2/XmlParser.cpp b/cmds/idmap2/libidmap2/XmlParser.cpp index 70822c8..f71e6b9 100644 --- a/cmds/idmap2/libidmap2/XmlParser.cpp +++ b/cmds/idmap2/libidmap2/XmlParser.cpp
@@ -111,7 +111,7 @@ switch (value.dataType) { case Res_value::TYPE_STRING: { if (auto str = parser.getStrings().string8ObjectAt(value.data); str.ok()) { - return std::string(str->string()); + return std::string(str->c_str()); } break; }