summaryrefslogtreecommitdiffstats
path: root/generate_cpp.cpp
diff options
context:
space:
mode:
authorCasey Dahlin <sadmac@google.com>2015-09-30 12:51:08 -0700
committerCasey Dahlin <sadmac@google.com>2015-09-30 12:52:35 -0700
commitd127b50f07eed0cf78dfc956697031edea41043c (patch)
treecfde027caeb7669fc0580a9cb4b0d0b9009126cb /generate_cpp.cpp
parentb6d3c8dfd8d30be18dbf18f601099e1e91c4ed37 (diff)
downloadandroid_system_tools_aidl-d127b50f07eed0cf78dfc956697031edea41043c.tar.gz
android_system_tools_aidl-d127b50f07eed0cf78dfc956697031edea41043c.tar.bz2
android_system_tools_aidl-d127b50f07eed0cf78dfc956697031edea41043c.zip
Don't store AidlArgument name buffer_type
We now simply extract the string and store it sanely and destructably. Test: unit tests Bug: 24410295 Change-Id: I5a2588df688e019d66651a58ea5e5594de8a7e47 Signed-off-by: Casey Dahlin <sadmac@google.com>
Diffstat (limited to 'generate_cpp.cpp')
-rw-r--r--generate_cpp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate_cpp.cpp b/generate_cpp.cpp
index 059c31e..bbfa44b 100644
--- a/generate_cpp.cpp
+++ b/generate_cpp.cpp
@@ -71,7 +71,7 @@ unique_ptr<Declaration> BuildMethodDecl(const method_type* method,
vector<string> args;
for (const unique_ptr<AidlArgument>& arg : *method->args) {
args.push_back(GetCPPVarDec(
- types, &arg->type, arg->name.Literal(),
+ types, &arg->type, arg->GetName(),
AidlArgument::OUT_DIR & arg->GetDirection()));
}