summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneypayeetest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/mymoneypayeetest.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneypayeetest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kmymoney2/mymoney/mymoneypayeetest.cpp b/kmymoney2/mymoney/mymoneypayeetest.cpp
index 124cc65..0dad126 100644
--- a/kmymoney2/mymoney/mymoneypayeetest.cpp
+++ b/kmymoney2/mymoney/mymoneypayeetest.cpp
@@ -27,20 +27,20 @@ void MyMoneyPayeeTest::tearDown () {
void MyMoneyPayeeTest::testXml(){
TQDomDocument doc;
- TQDomElement tqparent = doc.createElement("Test");
- doc.appendChild(tqparent);
+ TQDomElement parent = doc.createElement("Test");
+ doc.appendChild(parent);
MyMoneyPayee payee1;
payee1.m_id = "some random id";//if the ID isn't set, w ethrow an exception
- payee1.writeXML(doc,tqparent);
+ payee1.writeXML(doc,parent);
TQString temp1 = "Account1";
payee1.setDefaultAccountId(temp1);
- payee1.writeXML(doc,tqparent);
+ payee1.writeXML(doc,parent);
TQString temp2 = "Account2";
payee1.setDefaultAccountId(temp2);
- payee1.writeXML(doc,tqparent);
+ payee1.writeXML(doc,parent);
payee1.setDefaultAccountId();
- payee1.writeXML(doc,tqparent);
- TQDomElement el = tqparent.firstChild().toElement();
+ payee1.writeXML(doc,parent);
+ TQDomElement el = parent.firstChild().toElement();
CPPUNIT_ASSERT(!el.isNull());
MyMoneyPayee payee2(el);
CPPUNIT_ASSERT(!payee2.defaultAccountEnabled());