* indentations + whitespace cleanup

This commit is contained in:
Caner Candan 2011-05-05 16:54:00 +02:00
commit 56c6edab04
285 changed files with 6068 additions and 6223 deletions

View file

@ -123,24 +123,24 @@ void eoState::load(std::istream& is)
while (getline(is, str))
{
if (is.eof())
throw runtime_error("No section in load file");
if (is_section(str, name))
break;
if (is.eof())
throw runtime_error("No section in load file");
if (is_section(str, name))
break;
removeComment(str, getCommentString());
fullstring += str + "\n";
}
istringstream the_stream(fullstring);
istringstream the_stream(fullstring);
object->readFrom(the_stream);
}
}
else // if (is_section(str, name)) - what if file empty
{
getline(is, str); // try next line!
// if (is.eof())
// throw runtime_error("No section in load file");
}
else // if (is_section(str, name)) - what if file empty
{
getline(is, str); // try next line!
// if (is.eof())
// throw runtime_error("No section in load file");
}
}
}
@ -172,7 +172,7 @@ string eoState::createObjectName(eoObject* obj)
{
if (obj == 0)
{
ostringstream os;
ostringstream os;
os << objectMap.size();
return os.str();
}
@ -184,7 +184,7 @@ string eoState::createObjectName(eoObject* obj)
unsigned count = 1;
while (it != objectMap.end())
{
ostringstream os;
ostringstream os;
os << obj->className().c_str() << count++;
name = os.str();
it = objectMap.find(name);
@ -192,4 +192,3 @@ string eoState::createObjectName(eoObject* obj)
return name;
}