replace ArrayRange by tcb::span (reproduction of std::span)

This commit is contained in:
Garux
2021-10-24 08:32:10 +03:00
parent 4726542134
commit d812cbd4d4
30 changed files with 544 additions and 158 deletions

View File

@@ -212,11 +212,11 @@ std::size_t Sys_Print( int level, const char* buf, std::size_t length ){
GtkTextBufferOutputStream textBuffer( buffer, &iter, tag );
if ( !globalCharacterSet().isUTF8() ) {
BufferedTextOutputStream<GtkTextBufferOutputStream> buffered( textBuffer );
buffered << StringRange( buf, buf + length );
buffered << StringRange( buf, length );
}
else
{
textBuffer << StringRange( buf, buf + length );
textBuffer << StringRange( buf, length );
}
}