diff options
author | Simon Warta <[email protected]> | 2015-06-23 10:34:21 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-23 10:34:21 +0200 |
commit | 5ca7fb9b6744ccad16feda0d4a14132cbce6cd30 (patch) | |
tree | cd1d6da4856c57948b5c46e5b173dc7b1381e2ea /src/lib | |
parent | 43e3c4555c9f2535f18741f3e252b3c93cbbaeca (diff) |
ifstream/ostream take std::string
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/filters/data_snk.cpp | 5 | ||||
-rw-r--r-- | src/lib/filters/data_src.cpp | 5 | ||||
-rw-r--r-- | src/lib/misc/srp6/srp6_files.cpp | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/filters/data_snk.cpp b/src/lib/filters/data_snk.cpp index 66d22ca5b..f56c2d869 100644 --- a/src/lib/filters/data_snk.cpp +++ b/src/lib/filters/data_snk.cpp @@ -40,9 +40,8 @@ DataSink_Stream::DataSink_Stream(std::ostream& out, DataSink_Stream::DataSink_Stream(const std::string& path, bool use_binary) : identifier(path), - sink_p(new std::ofstream( - path.c_str(), - use_binary ? std::ios::binary : std::ios::out)), + sink_p(new std::ofstream(path, + use_binary ? std::ios::binary : std::ios::out)), sink(*sink_p) { if(!sink.good()) diff --git a/src/lib/filters/data_src.cpp b/src/lib/filters/data_src.cpp index 969431dfc..7551b0037 100644 --- a/src/lib/filters/data_src.cpp +++ b/src/lib/filters/data_src.cpp @@ -155,9 +155,8 @@ std::string DataSource_Stream::id() const DataSource_Stream::DataSource_Stream(const std::string& path, bool use_binary) : identifier(path), - source_p(new std::ifstream( - path.c_str(), - use_binary ? std::ios::binary : std::ios::in)), + source_p(new std::ifstream(path, + use_binary ? std::ios::binary : std::ios::in)), source(*source_p), total_read(0) { diff --git a/src/lib/misc/srp6/srp6_files.cpp b/src/lib/misc/srp6/srp6_files.cpp index 50f51fa75..c028767ad 100644 --- a/src/lib/misc/srp6/srp6_files.cpp +++ b/src/lib/misc/srp6/srp6_files.cpp @@ -14,7 +14,7 @@ namespace Botan { SRP6_Authenticator_File::SRP6_Authenticator_File(const std::string& filename) { - std::ifstream in(filename.c_str()); + std::ifstream in(filename); if(!in) return; // no entries |