diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
| commit | 169dff19d4da8d76e69b8e896aa25b0013639c03 (patch) | |
| tree | a0c070fa95188b5cde708ac285e6a2db9df4a83f /testfiles/src/dir-util-test.cpp | |
| parent | Avoid creating a new document before opening an old document. (diff) | |
| download | inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip | |
modernize loops
Diffstat (limited to 'testfiles/src/dir-util-test.cpp')
| -rw-r--r-- | testfiles/src/dir-util-test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testfiles/src/dir-util-test.cpp b/testfiles/src/dir-util-test.cpp index 25081771a..bac5e3cc2 100644 --- a/testfiles/src/dir-util-test.cpp +++ b/testfiles/src/dir-util-test.cpp @@ -37,14 +37,14 @@ TEST(DirUtilTest, Base) #endif }; - for ( size_t i = 0; i < G_N_ELEMENTS(cases); i++ ) + for (auto & i : cases) { - if ( cases[i][0] && cases[i][1] ) { // std::string can't use null. - std::string result = sp_relative_path_from_path( cases[i][0], cases[i][1] ); + if ( i[0] && i[1] ) { // std::string can't use null. + std::string result = sp_relative_path_from_path( i[0], i[1] ); ASSERT_FALSE( result.empty() ); if ( !result.empty() ) { - ASSERT_EQ( std::string(cases[i][2]), result ); + ASSERT_EQ( std::string(i[2]), result ); } } } |
