From 5ec229a4470f605eca53326853ff246a49e80189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 18 Mar 2022 04:03:50 +0100 Subject: Enforce the use of TQt with STL only where it is necessary. The definition of -UTQT_NO_STL is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit f3fd991c693316d26e360438eff8ecff8a54553d) --- kmymoney2/reports/pivottabletest.cpp | 4 ++-- kmymoney2/reports/querytabletest.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'kmymoney2/reports') diff --git a/kmymoney2/reports/pivottabletest.cpp b/kmymoney2/reports/pivottabletest.cpp index cb86a39..6edf5ac 100644 --- a/kmymoney2/reports/pivottabletest.cpp +++ b/kmymoney2/reports/pivottabletest.cpp @@ -121,7 +121,7 @@ void PivotTableTest::testNetWorthSingle() } catch(MyMoneyException *e) { - CPPUNIT_FAIL(e->what()); + CPPUNIT_FAIL(e->what().local8Bit().data()); delete e; } } @@ -938,7 +938,7 @@ void PivotTableTest::testInvestment(void) } catch(MyMoneyException *e) { - CPPUNIT_FAIL(e->what()); + CPPUNIT_FAIL(e->what().local8Bit().data()); delete e; } } diff --git a/kmymoney2/reports/querytabletest.cpp b/kmymoney2/reports/querytabletest.cpp index 458589d..39037d1 100644 --- a/kmymoney2/reports/querytabletest.cpp +++ b/kmymoney2/reports/querytabletest.cpp @@ -283,7 +283,7 @@ void QueryTableTest::testQueryBasics() } catch(MyMoneyException *e) { - CPPUNIT_FAIL(e->what()); + CPPUNIT_FAIL(e->what().local8Bit().data()); delete e; } @@ -429,7 +429,7 @@ void QueryTableTest::testAccountQuery() } catch(MyMoneyException *e) { - CPPUNIT_FAIL(e->what()); + CPPUNIT_FAIL(e->what().local8Bit().data()); delete e; } } @@ -605,7 +605,7 @@ void QueryTableTest::testInvestment(void) } catch(MyMoneyException *e) { - CPPUNIT_FAIL(e->what()); + CPPUNIT_FAIL(e->what().local8Bit().data()); delete e; } } @@ -659,7 +659,7 @@ void QueryTableTest::testInvestment(void) } catch(MyMoneyException *e) { - CPPUNIT_FAIL(e->what()); + CPPUNIT_FAIL(e->what().local8Bit().data()); delete e; } @@ -690,7 +690,7 @@ void QueryTableTest::testTaxReport() TQString html = qtbl_3.renderHTML(); CPPUNIT_ASSERT(rows.count() == 1); } catch(MyMoneyException *e) { - CPPUNIT_FAIL(e->what()); + CPPUNIT_FAIL(e->what().local8Bit().data()); delete e; } } -- cgit v1.2.1