mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 14:09:26 +00:00
Some toString cleanups
This commit is contained in:
parent
32186db1b0
commit
b0545d1f12
5 changed files with 8 additions and 10 deletions
|
@ -75,7 +75,7 @@ std::string toString( std::wstring const& value ) {
|
|||
s.reserve( value.size() );
|
||||
for(size_t i = 0; i < value.size(); ++i )
|
||||
s += value[i] <= 0xff ? static_cast<char>( value[i] ) : '?';
|
||||
return toString( s );
|
||||
return Catch::toString( s );
|
||||
}
|
||||
|
||||
std::string toString( const char* const value ) {
|
||||
|
@ -112,7 +112,7 @@ std::string toString( unsigned long value ) {
|
|||
}
|
||||
|
||||
std::string toString( unsigned int value ) {
|
||||
return toString( static_cast<unsigned long>( value ) );
|
||||
return Catch::toString( static_cast<unsigned long>( value ) );
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue