parent
b6f62af7d1
commit
1e59ccee41
25 changed files with 97 additions and 93 deletions
|
@ -30,11 +30,11 @@ namespace Catch {
|
|||
}
|
||||
|
||||
~StreamBufImpl() noexcept {
|
||||
sync();
|
||||
StreamBufImpl::sync();
|
||||
}
|
||||
|
||||
private:
|
||||
int overflow( int c ) {
|
||||
int overflow( int c ) override {
|
||||
sync();
|
||||
|
||||
if( c != EOF ) {
|
||||
|
@ -46,7 +46,7 @@ namespace Catch {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int sync() {
|
||||
int sync() override {
|
||||
if( pbase() != pptr() ) {
|
||||
m_writer( std::string( pbase(), static_cast<std::string::size_type>( pptr() - pbase() ) ) );
|
||||
setp( pbase(), epptr() );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue