diff options
Diffstat (limited to 'indra/llcommon/llfile.h')
-rw-r--r-- | indra/llcommon/llfile.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llcommon/llfile.h b/indra/llcommon/llfile.h index 67de0f43fc..2899f51a60 100644 --- a/indra/llcommon/llfile.h +++ b/indra/llcommon/llfile.h @@ -68,7 +68,7 @@ public: typedef std::basic_ios<char,std::char_traits< char > > _Myios; llifstream() - : std::basic_istream<char,std::char_traits< char > >(NULL,true),_Filebuffer(NULL) + : std::basic_istream<char,std::char_traits< char > >(NULL,true),_Filebuffer(NULL),_ShouldClose(false) { // construct unopened } @@ -78,7 +78,8 @@ public: explicit llifstream(_Filet *_File) : std::basic_istream<char,std::char_traits< char > >(NULL,true), - _Filebuffer(new _Myfb(_File)) + _Filebuffer(new _Myfb(_File)), + _ShouldClose(false) { // construct with specified C stream } virtual ~llifstream(); @@ -95,6 +96,7 @@ public: private: _Myfb* _Filebuffer; // the file buffer + bool _ShouldClose; }; |