summaryrefslogtreecommitdiff
path: root/tools/hiddenapi/hiddenapi.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/hiddenapi/hiddenapi.cc')
-rw-r--r--tools/hiddenapi/hiddenapi.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hiddenapi/hiddenapi.cc b/tools/hiddenapi/hiddenapi.cc
index 7f4c546df5..7c93a8b283 100644
--- a/tools/hiddenapi/hiddenapi.cc
+++ b/tools/hiddenapi/hiddenapi.cc
@@ -1060,7 +1060,7 @@ class HiddenApi final {
// Write into public/private API files.
std::ofstream file_public(out_public_path_.c_str());
std::ofstream file_private(out_private_path_.c_str());
- for (const std::pair<std::string, bool> entry : boot_members) {
+ for (const std::pair<const std::string, bool>& entry : boot_members) {
if (entry.second) {
file_public << entry.first << std::endl;
} else {