From 252fce5a2a5384702fbcc1c9987284d7bd2e6943 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:31:01 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kmymoney2/converter/convertertest.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kmymoney2/converter/convertertest.cpp') diff --git a/kmymoney2/converter/convertertest.cpp b/kmymoney2/converter/convertertest.cpp index 739c6f3..bbe0ec4 100644 --- a/kmymoney2/converter/convertertest.cpp +++ b/kmymoney2/converter/convertertest.cpp @@ -112,8 +112,8 @@ void ConverterTest::testWebQuotes() CPPUNIT_ASSERT(qr.m_errors.count() == 0); // Quote date should be within the last week, or something bad is going on. - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate()); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate()); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); // Quote value should at least be positive CPPUNIT_ASSERT(qr.m_price.isPositive()); @@ -123,8 +123,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); q.launch("EUR > USD","Yahoo Currency"); @@ -132,8 +132,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); q.launch("50492","Globe & Mail"); @@ -141,8 +141,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); q.launch("TDB647","MSN.CA"); @@ -150,8 +150,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); } -- cgit v1.2.1