astyle formatting

This commit is contained in:
Daniel Marjamäki 2009-12-27 17:46:24 +01:00
parent 1c0f3ee179
commit 24c5f4d53c
2 changed files with 27 additions and 27 deletions

View File

@ -33,8 +33,8 @@
long MathLib::toLongNumber(const std::string &str)
{
if (strncmp(str.c_str(), "0x" , 2) == 0
||strncmp(str.c_str(), "+0x", 3) == 0
||strncmp(str.c_str(), "-0x", 3) == 0)
|| strncmp(str.c_str(), "+0x", 3) == 0
|| strncmp(str.c_str(), "-0x", 3) == 0)
{
return std::strtoul(str.c_str(), '\0', 16);
}
@ -67,7 +67,7 @@ std::string MathLib::toString(T d)
std::ostringstream result;
result << d;
std::string strResult(result.str());
if(strResult == "-0"
if (strResult == "-0"
|| strResult == "+0"
|| strResult == "-0."
|| strResult == "+0.")