From 406b15c9c134f3e07de2af8a7e7355a993732552 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 16 Feb 2019 21:47:34 +0100 Subject: [PATCH] lib/xmltree/gzstream.h: fix possible Wshadow warnings --- lib/xmltree/gzstream.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/xmltree/gzstream.h b/lib/xmltree/gzstream.h index aaecb0587..079f7186c 100644 --- a/lib/xmltree/gzstream.h +++ b/lib/xmltree/gzstream.h @@ -169,8 +169,8 @@ public: ~gzstreambase() { buf.close(); } - void open( const char* name, int open_mode) { - if ( ! buf.open( name, open_mode)) + void open( const char* name, int _open_mode) { + if ( ! buf.open( name, _open_mode)) clear( rdstate() | std::ios::badbit); } @@ -192,11 +192,11 @@ public: class igzstream : public gzstreambase, public std::istream { public: igzstream() : std::istream( &buf) {} - igzstream( const char* name, int open_mode = std::ios::in) - : gzstreambase( name, open_mode), std::istream( &buf) {} + igzstream( const char* name, int _open_mode = std::ios::in) + : gzstreambase( name, _open_mode), std::istream( &buf) {} gzstreambuf* rdbuf() { return gzstreambase::rdbuf(); } - void open( const char* name, int open_mode = std::ios::in) { - gzstreambase::open( name, open_mode); + void open( const char* name, int _open_mode = std::ios::in) { + gzstreambase::open( name, _open_mode); } }; @@ -206,8 +206,8 @@ public: ogzstream( const char* name, int mode = std::ios::out) : gzstreambase( name, mode), std::ostream( &buf) {} gzstreambuf* rdbuf() { return gzstreambase::rdbuf(); } - void open( const char* name, int open_mode = std::ios::out) { - gzstreambase::open( name, open_mode); + void open( const char* name, int _open_mode = std::ios::out) { + gzstreambase::open( name, _open_mode); } };