Commit 68807138 authored by Ben Boeckel's avatar Ben Boeckel Committed by Brad King

CollapseFullPath: prefer .empty() to .length() == 0

parent 55d1d6ab
......@@ -3266,7 +3266,7 @@ std::string SystemTools::CollapseFullPath(const std::string& in_path,
// If the input path is relative, start with a base path.
if (path_components[0].length() == 0) {
if (path_components[0].empty()) {
std::vector<std::string> base_components;
// Use the given base path.
SystemTools::SplitPath(in_base, base_components);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment