summaryrefslogtreecommitdiffstats
path: root/type_namespace.h
diff options
context:
space:
mode:
Diffstat (limited to 'type_namespace.h')
-rw-r--r--type_namespace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/type_namespace.h b/type_namespace.h
index caea1fa..7defd24 100644
--- a/type_namespace.h
+++ b/type_namespace.h
@@ -272,7 +272,7 @@ bool LanguageTypeNamespace<T>::MaybeAddContainerType(
const AidlType& aidl_type) {
using android::base::Join;
- std::string type_name = aidl_type.GetName();
+ const std::string& type_name = aidl_type.GetName();
if (!IsContainerType(type_name)) {
return true;
}