aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/filters/data_snk.cpp5
-rw-r--r--src/lib/filters/data_src.cpp5
-rw-r--r--src/lib/misc/srp6/srp6_files.cpp2
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