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:
authorBrodie Thiesfield <brofield@gmail.com>2011-03-17 07:52:28 +0300
committerBrodie Thiesfield <brofield@gmail.com>2011-03-17 07:52:28 +0300
commiteeb30e8f452de6c71f60a407a03f7f7117efb4f3 (patch)
tree92f201e3e0d06281e36e4a4530424b5f485ddf3d /test1.cpp
parent651fb0c58958644d1140e850b767f63ebb65264f (diff)
prepare for 4.14 release
* change Load() to LoadData() to avoid confusion * add support for GetDoubleValue/SetDoubleValue
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");