diff options
| author | Vincent Richard <[email protected]> | 2013-12-10 07:52:51 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2013-12-10 07:52:51 +0000 |
| commit | 7e265b05f440ed81b80f2de496c9d13221a69fe0 (patch) | |
| tree | d4dad210715ea9d60b2136bd416647d4bc02166a /tests/testRunner.cpp | |
| parent | Enforce strict aliasing rule and avoid alignment issues. (diff) | |
| download | vmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.tar.gz vmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.zip | |
Simplified types for better readability. Use appropriate types (size_t, byte_t...). Minor warning fixes.
Diffstat (limited to 'tests/testRunner.cpp')
| -rw-r--r-- | tests/testRunner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testRunner.cpp b/tests/testRunner.cpp index 48a09d17..84f217a0 100644 --- a/tests/testRunner.cpp +++ b/tests/testRunner.cpp @@ -196,7 +196,7 @@ const std::string getNormalizedPath(const std::string& path) { std::string res = path; - for (std::string::size_type i = 0, n = res.length() ; i < n ; ++i) + for (std::size_t i = 0, n = res.length() ; i < n ; ++i) { if (res[i] == '\\') res[i] = '/'; @@ -208,7 +208,7 @@ const std::string getNormalizedPath(const std::string& path) const std::string getFileNameFromPath(const std::string& path) { - const std::string::size_type pos = path.find_last_of('/'); + const std::size_t pos = path.find_last_of('/'); if (pos == std::string::npos) return ""; |
