astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2014-07-30 17:53:41 +02:00
parent 1144384242
commit 3d8ac3d0a1
1 changed files with 5 additions and 4 deletions

View File

@ -114,7 +114,8 @@ static void printstr(const std::vector<std::string> &filedata, int i1, int i2)
}
#endif
static char getEndChar(const std::string &line) {
static char getEndChar(const std::string &line)
{
std::size_t pos = line.find_last_not_of(" \t");
return (pos == std::string::npos) ? '\0' : line[pos];
}