From 814ff7c7fcdb85397b07ddb9d221176f57a828dd Mon Sep 17 00:00:00 2001 From: John Beard Date: Fri, 3 Mar 2017 00:03:53 +0800 Subject: [PATCH] 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. --- tools/io_benchmark/stdstream_line_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/io_benchmark/stdstream_line_reader.cpp b/tools/io_benchmark/stdstream_line_reader.cpp index 8a0954a8e0..ce0042f773 100644 --- a/tools/io_benchmark/stdstream_line_reader.cpp +++ b/tools/io_benchmark/stdstream_line_reader.cpp @@ -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() ) {