aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-18 12:33:09 +0100
committerGravatar Sadie Powell2022-10-18 12:33:09 +0100
commit77a76b855369cf1284e82e0c0021a3cf438dcaee (patch)
treebb0bc8175011dc46d9768c0ba5abe4975672d825 /include/modules
parentFix building the account module on Clang. (diff)
parentFix an unintentional string copy in the geolocation API. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/geolocation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules/geolocation.h b/include/modules/geolocation.h
index eff8c4c89..e154debfb 100644
--- a/include/modules/geolocation.h
+++ b/include/modules/geolocation.h
@@ -76,8 +76,8 @@ public:
}
/** Retrieves the two character country code for this location. */
- std::string GetCode() const { return code; }
+ const std::string& GetCode() const { return code; }
/** Retrieves the country name for this location. */
- std::string GetName() const { return name; }
+ const std::string& GetName() const { return name; }
};