summaryrefslogtreecommitdiffstats
path: root/searchsummary/src/tests/juniper
diff options
context:
space:
mode:
Diffstat (limited to 'searchsummary/src/tests/juniper')
-rw-r--r--searchsummary/src/tests/juniper/testenv.cpp4
-rw-r--r--searchsummary/src/tests/juniper/testenv.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/searchsummary/src/tests/juniper/testenv.cpp b/searchsummary/src/tests/juniper/testenv.cpp
index 769c24b829c..cc6a6458376 100644
--- a/searchsummary/src/tests/juniper/testenv.cpp
+++ b/searchsummary/src/tests/juniper/testenv.cpp
@@ -106,9 +106,9 @@ PropertyMap::set(const char *name, const char *value)
const char *
-PropertyMap::GetProperty(const char* name, const char* def)
+PropertyMap::GetProperty(const char* name, const char* def) const
{
- std::map<std::string, std::string>::iterator res = _map.find(std::string(name));
+ auto res = _map.find(std::string(name));
if (res != _map.end()) {
return res->second.c_str();
}
diff --git a/searchsummary/src/tests/juniper/testenv.h b/searchsummary/src/tests/juniper/testenv.h
index a43f4a11bec..f723fb96602 100644
--- a/searchsummary/src/tests/juniper/testenv.h
+++ b/searchsummary/src/tests/juniper/testenv.h
@@ -57,7 +57,7 @@ public:
PropertyMap();
~PropertyMap();
PropertyMap &set(const char *name, const char *value);
- const char* GetProperty(const char* name, const char* def = NULL) override;
+ const char* GetProperty(const char* name, const char* def = nullptr) const override;
};