diff options
author | Jacek Antonelli | 2008-08-15 23:45:35 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:35 -0500 |
commit | 7a29b2d1cd471767b58ea30f53900cd2c5a9637c (patch) | |
tree | a2f7b5eb90ec41f903f2558e57d47f5ebd913a8f /linden/indra/llcommon | |
parent | Second Life viewer sources 1.19.1.0 (diff) | |
download | meta-impy-7a29b2d1cd471767b58ea30f53900cd2c5a9637c.zip meta-impy-7a29b2d1cd471767b58ea30f53900cd2c5a9637c.tar.gz meta-impy-7a29b2d1cd471767b58ea30f53900cd2c5a9637c.tar.bz2 meta-impy-7a29b2d1cd471767b58ea30f53900cd2c5a9637c.tar.xz |
Second Life viewer sources 1.19.1.1
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/llfile.cpp | 8 | ||||
-rw-r--r-- | linden/indra/llcommon/llfile.h | 6 | ||||
-rw-r--r-- | linden/indra/llcommon/llversionviewer.h | 2 |
3 files changed, 11 insertions, 5 deletions
diff --git a/linden/indra/llcommon/llfile.cpp b/linden/indra/llcommon/llfile.cpp index 6ccf6ac..d551f28 100644 --- a/linden/indra/llcommon/llfile.cpp +++ b/linden/indra/llcommon/llfile.cpp | |||
@@ -266,6 +266,7 @@ void llofstream::open(const char* _Filename, /* Flawfinder: ignore */ | |||
266 | } | 266 | } |
267 | llassert(_Filebuffer==NULL); | 267 | llassert(_Filebuffer==NULL); |
268 | _Filebuffer = new _Myfb(filep); | 268 | _Filebuffer = new _Myfb(filep); |
269 | _ShouldClose = true; | ||
269 | _Myios::init(_Filebuffer); | 270 | _Myios::init(_Filebuffer); |
270 | } | 271 | } |
271 | 272 | ||
@@ -279,14 +280,17 @@ void llofstream::close() | |||
279 | llofstream::llofstream(const char *_Filename, | 280 | llofstream::llofstream(const char *_Filename, |
280 | std::ios_base::openmode _Mode, | 281 | std::ios_base::openmode _Mode, |
281 | int _Prot) | 282 | int _Prot) |
282 | : std::basic_ostream<char,std::char_traits < char > >(NULL,true),_Filebuffer(NULL) | 283 | : std::basic_ostream<char,std::char_traits < char > >(NULL,true),_Filebuffer(NULL),_ShouldClose(false) |
283 | { // construct with named file and specified mode | 284 | { // construct with named file and specified mode |
284 | open(_Filename, _Mode , _Prot); /* Flawfinder: ignore */ | 285 | open(_Filename, _Mode , _Prot); /* Flawfinder: ignore */ |
285 | } | 286 | } |
286 | 287 | ||
287 | llofstream::~llofstream() | 288 | llofstream::~llofstream() |
288 | { // destroy the object | 289 | { // destroy the object |
289 | close(); | 290 | if (_ShouldClose) |
291 | { | ||
292 | close(); | ||
293 | } | ||
290 | delete _Filebuffer; | 294 | delete _Filebuffer; |
291 | } | 295 | } |
292 | 296 | ||
diff --git a/linden/indra/llcommon/llfile.h b/linden/indra/llcommon/llfile.h index 2650775..d449ec9 100644 --- a/linden/indra/llcommon/llfile.h +++ b/linden/indra/llcommon/llfile.h | |||
@@ -127,7 +127,7 @@ public: | |||
127 | typedef std::basic_ios<char,std::char_traits < char > > _Myios; | 127 | typedef std::basic_ios<char,std::char_traits < char > > _Myios; |
128 | 128 | ||
129 | llofstream() | 129 | llofstream() |
130 | : std::basic_ostream<char,std::char_traits < char > >(NULL,true),_Filebuffer(NULL) | 130 | : std::basic_ostream<char,std::char_traits < char > >(NULL,true),_Filebuffer(NULL),_ShouldClose(false) |
131 | { // construct unopened | 131 | { // construct unopened |
132 | } | 132 | } |
133 | 133 | ||
@@ -138,7 +138,8 @@ public: | |||
138 | 138 | ||
139 | explicit llofstream(_Filet *_File) | 139 | explicit llofstream(_Filet *_File) |
140 | : std::basic_ostream<char,std::char_traits < char > >(NULL,true), | 140 | : std::basic_ostream<char,std::char_traits < char > >(NULL,true), |
141 | _Filebuffer(new _Myfb(_File))//_File) | 141 | _Filebuffer(new _Myfb(_File)),//_File) |
142 | _ShouldClose(false) | ||
142 | { // construct with specified C stream | 143 | { // construct with specified C stream |
143 | } | 144 | } |
144 | 145 | ||
@@ -157,6 +158,7 @@ public: | |||
157 | 158 | ||
158 | private: | 159 | private: |
159 | _Myfb *_Filebuffer; // the file buffer | 160 | _Myfb *_Filebuffer; // the file buffer |
161 | bool _ShouldClose; | ||
160 | }; | 162 | }; |
161 | 163 | ||
162 | 164 | ||
diff --git a/linden/indra/llcommon/llversionviewer.h b/linden/indra/llcommon/llversionviewer.h index c1e6778..998ea9e 100644 --- a/linden/indra/llcommon/llversionviewer.h +++ b/linden/indra/llcommon/llversionviewer.h | |||
@@ -35,7 +35,7 @@ | |||
35 | const S32 LL_VERSION_MAJOR = 1; | 35 | const S32 LL_VERSION_MAJOR = 1; |
36 | const S32 LL_VERSION_MINOR = 19; | 36 | const S32 LL_VERSION_MINOR = 19; |
37 | const S32 LL_VERSION_PATCH = 1; | 37 | const S32 LL_VERSION_PATCH = 1; |
38 | const S32 LL_VERSION_BUILD = 0; | 38 | const S32 LL_VERSION_BUILD = 1; |
39 | 39 | ||
40 | const char * const LL_CHANNEL = "Second Life Release"; | 40 | const char * const LL_CHANNEL = "Second Life Release"; |
41 | 41 | ||