diff options
author | Simon Warta <[email protected]> | 2015-06-23 11:16:05 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-23 11:16:05 +0200 |
commit | 7c993192825982826069c8b28f0a94d7b9f2fa65 (patch) | |
tree | 2f99740713c7c37e7c5432cf4c95500713a36e3e /src/cmd/base64.cpp | |
parent | 167f65f9f20746d1a92456505e94c11c8b8552fd (diff) | |
parent | 5ca7fb9b6744ccad16feda0d4a14132cbce6cd30 (diff) |
Merge pull request #130 from webmaster128/fstream
ifstream/ostream take std::string
Diffstat (limited to 'src/cmd/base64.cpp')
-rw-r--r-- | src/cmd/base64.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/base64.cpp b/src/cmd/base64.cpp index e0798dcee..84a30e8ea 100644 --- a/src/cmd/base64.cpp +++ b/src/cmd/base64.cpp @@ -59,7 +59,7 @@ int base64(int argc, char* argv[]) { std::istream* stream; if(files[j] == "-") stream = &std::cin; - else stream = new std::ifstream(files[j].c_str()); + else stream = new std::ifstream(files[j]); if(!*stream) { |