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:
parent
e7e972804a
commit
814ff7c7fc
|
@ -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() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue