Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MediaArea/ZenLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorPavel Pimenov <pavel.pimenov@gmail.com>2019-02-02 16:03:44 +0300
committerPavel Pimenov <pavel.pimenov@gmail.com>2019-02-02 16:03:44 +0300
commit7745f46737d82a8c7d2e578de710b7444597c622 (patch)
treeb8c9dc31bbb9d36902e2a445a73c512bc17e8fba /Source
parent32a5fbfd3480eb1e40b0ccfc8b52587ebfb0358d (diff)
# Fix #81 (part 1)
https://github.com/MediaArea/ZenLib/issues/81
Diffstat (limited to 'Source')
-rw-r--r--Source/ZenLib/File.cpp2
-rw-r--r--Source/ZenLib/Format/Html/Html_Request.h2
-rw-r--r--Source/ZenLib/Format/Http/Http_Request.h2
3 files changed, 5 insertions, 1 deletions
diff --git a/Source/ZenLib/File.cpp b/Source/ZenLib/File.cpp
index 0e2ba60..24bed6f 100644
--- a/Source/ZenLib/File.cpp
+++ b/Source/ZenLib/File.cpp
@@ -269,7 +269,7 @@ bool File::Open (const tstring &File_Name_, access_t Access)
else
mode=ios_base::binary|ios_base::out|ios_base::app;
break;
- default : ;
+ default : mode = ios_base::binary | ios_base::in; break;
}
#ifdef UNICODE
File_Handle=new fstream(File_Name.To_Local().c_str(), mode);
diff --git a/Source/ZenLib/Format/Html/Html_Request.h b/Source/ZenLib/Format/Html/Html_Request.h
index f94b948..b926f99 100644
--- a/Source/ZenLib/Format/Html/Html_Request.h
+++ b/Source/ZenLib/Format/Html/Html_Request.h
@@ -45,6 +45,8 @@ public:
//The data
ZenLib::Format::Html::Handler *Html;
bool IsCopy;
+private:
+ Request &operator =(const Request &a);
};
} //Namespace
diff --git a/Source/ZenLib/Format/Http/Http_Request.h b/Source/ZenLib/Format/Http/Http_Request.h
index 73d9933..09e781c 100644
--- a/Source/ZenLib/Format/Http/Http_Request.h
+++ b/Source/ZenLib/Format/Http/Http_Request.h
@@ -52,6 +52,8 @@ public:
//Helpers
bool Http_Begin(std::istream &In, std::ostream &Out);
void Http_End (std::ostream &Out);
+private:
+ Request &operator =(const Request &a);
};
} //Namespace