summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r--cpp/src/IcePatch2/Util.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp
index 5b53c99c9c3..e6422df2a87 100644
--- a/cpp/src/IcePatch2/Util.cpp
+++ b/cpp/src/IcePatch2/Util.cpp
@@ -279,7 +279,7 @@ IcePatch2::simplify(const string& path)
}
if(result == "/." ||
- result.size() == 4 && isalpha(result[0]) && result[1] == ':' && result[2] == '/' && result[3] == '.')
+ (result.size() == 4 && isalpha(result[0]) && result[1] == ':' && result[2] == '/' && result[3] == '.'))
{
return result.substr(0, result.size() - 1);
}
@@ -289,7 +289,7 @@ IcePatch2::simplify(const string& path)
result.erase(result.size() - 2, 2);
}
- if(result == "/" || result.size() == 3 && isalpha(result[0]) && result[1] == ':' && result[2] == '/')
+ if(result == "/" || (result.size() == 3 && isalpha(result[0]) && result[1] == ':' && result[2] == '/'))
{
return result;
}
@@ -346,7 +346,7 @@ IcePatch2::getSuffix(const string& pa)
string::size_type dotPos = path.rfind('.');
string::size_type slashPos = path.rfind('/');
- if(dotPos == string::npos || slashPos != string::npos && slashPos > dotPos)
+ if(dotPos == string::npos || (slashPos != string::npos && slashPos > dotPos))
{
return string();
}
@@ -362,7 +362,7 @@ IcePatch2::getWithoutSuffix(const string& pa)
string::size_type dotPos = path.rfind('.');
string::size_type slashPos = path.rfind('/');
- if(dotPos == string::npos || slashPos != string::npos && slashPos > dotPos)
+ if(dotPos == string::npos || (slashPos != string::npos && slashPos > dotPos))
{
return path;
}