summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/tools/stream.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index 0bc3766807fa..4b7765dc09d0 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -397,7 +397,7 @@ public:
bool eof() const { return m_isEof; }
/// stream is broken
- bool bad() const { return GetError() != 0; }
+ bool bad() const { return GetError() != ERRCODE_NONE; }
/** Get state