From d60a95efaf2924a5f1c936e6ad18e8efa1437f88 Mon Sep 17 00:00:00 2001 From: hysios hu Date: Fri, 21 Sep 2012 17:33:46 +0800 Subject: [PATCH] add display filename in load_spec --- ext/jasmine-webkit-specrunner/Runner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/jasmine-webkit-specrunner/Runner.cpp b/ext/jasmine-webkit-specrunner/Runner.cpp index 66943a5..e1663a7 100644 --- a/ext/jasmine-webkit-specrunner/Runner.cpp +++ b/ext/jasmine-webkit-specrunner/Runner.cpp @@ -66,7 +66,8 @@ void Runner::loadSpec() QVectorIterator iterator(reportFiles); while (iterator.hasNext()) { - QFile *outputFile = new QFile(iterator.next()); + QString fileName = iterator.next(); + QFile *outputFile = new QFile(fileName); outputFile->open(QIODevice::WriteOnly); outputFiles.enqueue(outputFile); }