From 558f89e05a50c59b6369a980c246ec5e6ee834ea Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 30 May 2017 21:38:31 +0300 Subject: Make use of ifdstream::read_text() --- build2/cc/windows-manifest.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'build2') 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&) -- cgit v1.1