From 7786d15e93723eccef0f379c96f994be87375450 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 12 Mar 2012 15:45:15 +0100 Subject: Port file-flushing code to QFileDevice. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes auto-flushing in the future QSaveFile class. Change-Id: I6e84388070d5b9af9d326f5092ec9b55fd98cd05 Reviewed-by: João Abecasis --- src/corelib/io/qtextstream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/corelib/io/qtextstream.cpp b/src/corelib/io/qtextstream.cpp index cb703df8c6..0411b463b3 100644 --- a/src/corelib/io/qtextstream.cpp +++ b/src/corelib/io/qtextstream.cpp @@ -696,7 +696,7 @@ void QTextStreamPrivate::flushWriteBuffer() // flush the file #ifndef QT_NO_QOBJECT - QFile *file = qobject_cast(device); + QFileDevice *file = qobject_cast(device); bool flushed = !file || file->flush(); #else bool flushed = true; -- cgit v1.2.3