diff options
| author | 2022-10-18 12:33:09 +0100 | |
|---|---|---|
| committer | 2022-10-18 12:33:09 +0100 | |
| commit | 77a76b855369cf1284e82e0c0021a3cf438dcaee (patch) | |
| tree | bb0bc8175011dc46d9768c0ba5abe4975672d825 /include/modules | |
| parent | Fix building the account module on Clang. (diff) | |
| parent | Fix 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.h | 4 |
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; } }; |
