Fix a problem where older IRIX compilers needed a typecast for certain opperations

This commit is contained in:
ehofman
2003-10-16 12:51:47 +00:00
parent db928ea1ae
commit 3c08eae85b
8 changed files with 58 additions and 11 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ parse_name (const string &path, int &i)
name = ".";
}
if (i < max && path[i] != '/')
throw string(string("Illegal character after ") + name);
throw string("Illegal character after " + name);
}
else if (isalpha(path[i]) || path[i] == '_') {
+3 -3
View File
@@ -117,9 +117,9 @@ checkFlag (const char * flag, bool defaultState = true)
{
if (flag == 0)
return defaultState;
else if (string(flag) == "y")
else if (flag == "y")
return true;
else if (string(flag) == "n")
else if (flag == "n")
return false;
else {
string message = "Unrecognized flag value '";
@@ -137,7 +137,7 @@ PropsVisitor::startElement (const char * name, const XMLAttributes &atts)
const char * attval;
if (_level == 0) {
if (string(name) != (string)"PropertyList") {
if (name != "PropertyList") {
string message = "Root element name is ";
message += name;
message += "; expected PropertyList";