summaryrefslogtreecommitdiffstats
path: root/src/lib/util/unittests/testdata.cc
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-12-20 20:06:42 +0100
committerRazvan Becheriu <razvan@isc.org>2024-01-22 16:33:26 +0100
commit54dd674d0da13aac0cf2ca484842740477276e26 (patch)
tree884e70409a29a318cf9b038855204a8edbd042b0 /src/lib/util/unittests/testdata.cc
parent[#3119] Fixed some coverity reported defects (diff)
downloadkea-54dd674d0da13aac0cf2ca484842740477276e26.tar.xz
kea-54dd674d0da13aac0cf2ca484842740477276e26.zip
[#3119] use auto const& whenever possible
Diffstat (limited to 'src/lib/util/unittests/testdata.cc')
-rw-r--r--src/lib/util/unittests/testdata.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/unittests/testdata.cc b/src/lib/util/unittests/testdata.cc
index e3ecc916db..111cc37204 100644
--- a/src/lib/util/unittests/testdata.cc
+++ b/src/lib/util/unittests/testdata.cc
@@ -34,8 +34,8 @@ addTestDataPath(const string& path) {
void
openTestData(const char* const datafile, ifstream& ifs) {
- vector<string>::const_iterator it = getDataPaths().begin();
- for (; it != getDataPaths().end(); ++it) {
+ for (vector<string>::const_iterator it = getDataPaths().begin();
+ it != getDataPaths().end(); ++it) {
string data_path = *it;
if (data_path.empty() || *data_path.rbegin() != '/') {
data_path.push_back('/');