diff options
author | Mark Lentczner <markl@lindenlab.com> | 2007-02-06 00:57:33 +0000 |
---|---|---|
committer | Mark Lentczner <markl@lindenlab.com> | 2007-02-06 00:57:33 +0000 |
commit | d0d4670f4941dcf7430fb1269c6613140ecf3ff7 (patch) | |
tree | e3d6b59c19cac6bc172ec5fb0131ffc8f4923b75 /indra/llcommon/llfile.h | |
parent | 77f04c74eb1603bf2fadc30127d05378bfc7a48a (diff) |
merge in of error-refactor-3
concludes (fixes) SL-31187
pair programmed and reviewed by markl and karen
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; }; |