mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
C++11: N1984 auto
This commit is contained in:
parent
4be49a2d72
commit
2834e14eb5
3 changed files with 7 additions and 7 deletions
|
@ -392,8 +392,8 @@ void UnitTest::is (
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
void UnitTest::diag (const std::string& text)
|
||||
{
|
||||
std::string::size_type start = text.find_first_not_of (" \t\n\r\f");
|
||||
std::string::size_type end = text.find_last_not_of (" \t\n\r\f");
|
||||
auto start = text.find_first_not_of (" \t\n\r\f");
|
||||
auto end = text.find_last_not_of (" \t\n\r\f");
|
||||
std::cout << "# " << text.substr (start, end - start + 1) << "\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue