diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-30 21:38:31 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-30 21:38:31 +0300 |
commit | 558f89e05a50c59b6369a980c246ec5e6ee834ea (patch) | |
tree | eac4e9b4de7e0c0b214bcf28d6a276d76be424fa | |
parent | 6ea3d907eb7099afd8798705d4a9a620c82566bc (diff) |
Make use of ifdstream::read_text()
-rw-r--r-- | build2/cc/windows-manifest.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/build2/cc/windows-manifest.cxx b/build2/cc/windows-manifest.cxx index d840f67..4393fbf 100644 --- a/build2/cc/windows-manifest.cxx +++ b/build2/cc/windows-manifest.cxx @@ -105,10 +105,7 @@ namespace build2 try { ifdstream ifs (mf); - string s; - getline (ifs, s, '\0'); - - if (s == m) + if (ifs.read_text () == m) return make_pair (move (mf), false); } catch (const io_error&) |