diff options
Diffstat (limited to 'cpp/src/IcePatch/FileLocator.cpp')
-rw-r--r-- | cpp/src/IcePatch/FileLocator.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/IcePatch/FileLocator.cpp b/cpp/src/IcePatch/FileLocator.cpp index bcf0a46cab7..140bb522fff 100644 --- a/cpp/src/IcePatch/FileLocator.cpp +++ b/cpp/src/IcePatch/FileLocator.cpp @@ -30,27 +30,27 @@ IcePatch::FileLocator::locate(const ObjectAdapterPtr& adapter, const Current& cu // string path = identityToPath(current.identity); - if (path.empty()) // Empty paths are not permissible. + if(path.empty()) // Empty paths are not permissible. { return 0; } - if (path[0] == '/') // Path must not start with '/'. + if(path[0] == '/') // Path must not start with '/'. { return 0; } - if (path.find("..") != string::npos) // Path must not contain '..'. + if(path.find("..") != string::npos) // Path must not contain '..'. { return 0; } - if (path.find(':') == 1) // Path cannot contain ':' as second character. + if(path.find(':') == 1) // Path cannot contain ':' as second character. { return 0; } - if (ignoreSuffix(path)) // Some suffixes are reserved. + if(ignoreSuffix(path)) // Some suffixes are reserved. { return 0; } @@ -67,7 +67,7 @@ IcePatch::FileLocator::locate(const ObjectAdapterPtr& adapter, const Current& cu return 0; } - switch (info.type) + switch(info.type) { case FileTypeDirectory: { |