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

github.com/windirstat/simpleini.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test1.cpp')
-rw-r--r--test1.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test1.cpp b/test1.cpp
index bd97e2d..ef7e336 100644
--- a/test1.cpp
+++ b/test1.cpp
@@ -128,10 +128,10 @@ bool TestStreams()
// load the file
try {
- std::ifstream infile;
- infile.open(rgszTestFile[0], std::ifstream::in | std::ifstream::binary);
- if (ini.Load(infile) < 0) throw false;
- infile.close();
+ std::ifstream instream;
+ instream.open(rgszTestFile[0], std::ifstream::in | std::ifstream::binary);
+ if (ini.LoadData(instream) < 0) throw false;
+ instream.close();
}
catch (...) {
return oTest.Failure("Failed to load file");