Addressed Resharper-C++ warnings

See #958
This commit is contained in:
Martin Hořeňovský 2017-07-25 17:16:28 +02:00
parent b6f62af7d1
commit 1e59ccee41
25 changed files with 97 additions and 93 deletions

View file

@ -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() );