diff options
author | Marc Laukien <marc@zeroc.com> | 2002-06-23 21:17:04 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-06-23 21:17:04 +0000 |
commit | 59788b8663f1f05a95b7afbbc6d2846dae11c96a (patch) | |
tree | c3ed292df270f11157decb83827d9af4144db52d /cpp/src/IcePatch/FileLocator.cpp | |
parent | file run.py was initially added on branch location. (diff) | |
download | ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.bz2 ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.xz ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.zip |
removed spaces after keywords
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: { |