Add override to LogStreamBuf::overflow()
Prevents warnings such as:
```
glog/logging.h:1122:20: error: ‘virtual
std::basic_streambuf<char>::int_type
google::base_logging::LogStreamBuf::overflow(std::basic_streambuf<char>::int_type)’
can be marked override [-Werror=suggest-override]
virtual int_type overflow(int_type ch) {
^~~~~~~~
```
Signed-off-by: Santiago Gil <santiago.gil@codethink.co.uk>
This commit is contained in:
parent
0a2e5931bd
commit
7258189847
@ -1128,7 +1128,7 @@ class GOOGLE_GLOG_DLL_DECL LogStreamBuf : public std::streambuf {
|
||||
}
|
||||
|
||||
// This effectively ignores overflow.
|
||||
virtual int_type overflow(int_type ch) {
|
||||
int_type overflow(int_type ch) {
|
||||
return ch;
|
||||
}
|
||||
|
||||
|
||||
@ -1129,7 +1129,7 @@ class GOOGLE_GLOG_DLL_DECL LogStreamBuf : public std::streambuf {
|
||||
}
|
||||
|
||||
// This effectively ignores overflow.
|
||||
virtual int_type overflow(int_type ch) {
|
||||
int_type overflow(int_type ch) {
|
||||
return ch;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user