summaryrefslogtreecommitdiff
path: root/tools/aapt/ResourceTable.cpp
diff options
context:
space:
mode:
author Tomasz Wasilczyk <twasilczyk@google.com> 2023-09-06 16:33:35 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-09-06 16:33:35 +0000
commitc01e3ba0358b8c9b442c76a6758e4a9b712ae32f (patch)
tree7fdcf845730314d2127755e0c7237c8ab0a9c72b /tools/aapt/ResourceTable.cpp
parent713e3930c42a3b1a5bb7909ed0f59d498cdae227 (diff)
parent31eb3c89a94d77eae9503bd635a4f056db3e3a31 (diff)
Merge "Migrate String8|16.setTo to assignment operator" into main
Diffstat (limited to 'tools/aapt/ResourceTable.cpp')
-rw-r--r--tools/aapt/ResourceTable.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/aapt/ResourceTable.cpp b/tools/aapt/ResourceTable.cpp
index 421cae78b08b..620e272385cb 100644
--- a/tools/aapt/ResourceTable.cpp
+++ b/tools/aapt/ResourceTable.cpp
@@ -1364,11 +1364,11 @@ status_t compileResourceFile(Bundle* bundle,
size_t length;
const char16_t* attr = block.getAttributeName(i, &length);
if (strcmp16(attr, name16.c_str()) == 0) {
- name.setTo(block.getAttributeStringValue(i, &length));
+ name = String16(block.getAttributeStringValue(i, &length));
} else if (strcmp16(attr, translatable16.c_str()) == 0) {
- translatable.setTo(block.getAttributeStringValue(i, &length));
+ translatable = String16(block.getAttributeStringValue(i, &length));
} else if (strcmp16(attr, formatted16.c_str()) == 0) {
- formatted.setTo(block.getAttributeStringValue(i, &length));
+ formatted = String16(block.getAttributeStringValue(i, &length));
}
}
@@ -1542,7 +1542,7 @@ status_t compileResourceFile(Bundle* bundle,
} else {
ssize_t sep = ident.findLast('.');
if (sep >= 0) {
- parentIdent.setTo(ident, sep);
+ parentIdent = String16(ident, sep);
}
}
@@ -2832,10 +2832,10 @@ ResourceTable::validateLocalizations(void)
String8 config;
comma = strchr(start, ',');
if (comma != NULL) {
- config.setTo(start, comma - start);
+ config = String8(start, comma - start);
start = comma + 1;
} else {
- config.setTo(start);
+ config = start;
}
if (!locale.initFromFilterString(config)) {