QML 3rdparty: revert unnecessary change.
authorErik Verbruggen <erik.verbruggen@digia.com>
Wed, 17 Dec 2014 12:25:22 +0000 (13:25 +0100)
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>
Mon, 12 Jan 2015 09:56:42 +0000 (10:56 +0100)
It is the change to DataLog.h, which in turn forces the other changes in
order to match types.

Change-Id: Ie17e7efbd6a4d380a3b7383b0fd0243c6f68d0d5
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/3rdparty/masm/stubs/WTFStubs.cpp
src/3rdparty/masm/stubs/WTFStubs.h
src/3rdparty/masm/wtf/DataLog.h
src/qml/jit/qv4isel_masm.cpp

index 7e6ba9b..2650f1d 100644 (file)
@@ -60,9 +60,9 @@ uint32_t cryptographicallyRandomNumber()
     return 0;
 }
 
-static PrintStream* s_dataFile;
+static FilePrintStream* s_dataFile;
 
-void setDataFile(PrintStream *ps)
+void setDataFile(FilePrintStream *ps)
 {
     delete s_dataFile;
     s_dataFile = ps;
@@ -74,7 +74,7 @@ void setDataFile(FILE* f)
     s_dataFile = new FilePrintStream(f, FilePrintStream::Borrow);
 }
 
-PrintStream& dataFile()
+FilePrintStream& dataFile()
 {
     if (!s_dataFile)
         s_dataFile = new FilePrintStream(stderr, FilePrintStream::Borrow);
index 397aed5..2b32365 100644 (file)
@@ -36,7 +36,7 @@
 namespace WTF {
 
 void setDataFile(FILE* f);
-void setDataFile(class PrintStream *);
+void setDataFile(class FilePrintStream *);
 
 }
 
index 2b3df09..0bd8efe 100644 (file)
@@ -34,7 +34,7 @@
 
 namespace WTF {
 
-WTF_EXPORT_PRIVATE PrintStream &dataFile();
+WTF_EXPORT_PRIVATE FilePrintStream& dataFile();
 
 WTF_EXPORT_PRIVATE void dataLogFV(const char* format, va_list) WTF_ATTRIBUTE_PRINTF(1, 0);
 WTF_EXPORT_PRIVATE void dataLogF(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2);
index 3894cea..64b65c6 100644 (file)
@@ -69,13 +69,14 @@ inline bool isPregOrConst(IR::Expr *e)
     return e->asConst() != 0;
 }
 
-class QIODevicePrintStream: public PrintStream
+class QIODevicePrintStream: public FilePrintStream
 {
     Q_DISABLE_COPY(QIODevicePrintStream)
 
 public:
     explicit QIODevicePrintStream(QIODevice *dest)
-        : dest(dest)
+        : FilePrintStream(0)
+        , dest(dest)
         , buf(4096, '0')
     {
         Q_ASSERT(dest);