io_benchmark: construct std::ifstream directly

This appears to normally use the move constructor, but on Jenkins Fedora
20, it tried to use the copy ctor, which is deleted.

Constructing directly fixes this, and is the right way, anyway.
This commit is contained in:
John Beard 2017-03-03 00:03:53 +08:00 committed by jean-pierre charras
parent e7e972804a
commit 814ff7c7fc
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ void STDISTREAM_LINE_READER::setStream( std::istream& aStream )
IFSTREAM_LINE_READER::IFSTREAM_LINE_READER( const wxString& aFileName ) throw( IO_ERROR ) :
m_fStream( std::ifstream( aFileName ) )
m_fStream( aFileName )
{
if( !m_fStream.is_open() )
{