Fix various trivial formatting issues.

Change-Id: Ifa2a2dd2aa26dab178ec1334376db42fc3ebb355
Reviewed-on: http://codereview.qt.nokia.com/4029
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2011-09-01 14:24:53 +10:00 committed by Qt by Nokia
parent d90da5d991
commit 9c51bd4fc8
19 changed files with 96 additions and 101 deletions

View File

@ -119,7 +119,6 @@ QBenchmarkTestMethodData *QBenchmarkTestMethodData::current;
QBenchmarkTestMethodData::QBenchmarkTestMethodData() QBenchmarkTestMethodData::QBenchmarkTestMethodData()
:resultAccepted(false), runOnce(false), iterationCount(-1) :resultAccepted(false), runOnce(false), iterationCount(-1)
{ {
} }
QBenchmarkTestMethodData::~QBenchmarkTestMethodData() QBenchmarkTestMethodData::~QBenchmarkTestMethodData()
@ -134,7 +133,6 @@ void QBenchmarkTestMethodData::beginDataRun()
void QBenchmarkTestMethodData::endDataRun() void QBenchmarkTestMethodData::endDataRun()
{ {
} }
int QBenchmarkTestMethodData::adjustIterationCount(int suggestion) int QBenchmarkTestMethodData::adjustIterationCount(int suggestion)

View File

@ -87,10 +87,7 @@ QTestCoreElement<ElementType>::~QTestCoreElement()
template <class ElementType> template <class ElementType>
void QTestCoreElement<ElementType>::addAttribute(const QTest::AttributeIndex attributeIndex, const char *value) void QTestCoreElement<ElementType>::addAttribute(const QTest::AttributeIndex attributeIndex, const char *value)
{ {
if(attributeIndex == -1) if (attributeIndex == -1 || attribute(attributeIndex))
return;
if (attribute(attributeIndex))
return; return;
QTestElementAttribute *testAttribute = new QTestElementAttribute; QTestElementAttribute *testAttribute = new QTestElementAttribute;

View File

@ -44,9 +44,9 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
QTestElement::QTestElement(int type) QTestElement::QTestElement(int type)
:QTestCoreElement<QTestElement>(type), : QTestCoreElement<QTestElement>(type)
listOfChildren(0), , listOfChildren(0)
parent(0) , parent(0)
{ {
} }