[Kmymoney-devel] kmymoney simple patch
Luca
dj3mb3 at gmail.com
Wed Jun 17 10:23:12 UTC 2015
Hi everybody
Building kde5 by kdesrc-build in the last period, I was used to be annoyed
by a small error related to kmymoney.
Something like
CMakeFiles/mymoneyseqaccessmgrtest.dir/mymoneyseqaccessmgrtest.cpp.o: In
function `MyMoneySeqAccessMgrTest::testEmptyConstructor()':
/home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:61:
undefined reference to `bool QTest::qCompare<unsigned int, unsigned
long>(unsigned int const&, unsigned long const&, char const*, char const*,
char const*, int)'
/home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:62:
undefined reference to `bool QTest::qCompare<unsigned int, unsigned
long>(unsigned int const&, unsigned long const&, char const*, char const*,
char const*, int)'
/home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:63:
undefined reference to `bool QTest::qCompare<unsigned int, unsigned
long>(unsigned int const&, unsigned long const&, char const*, char const*,
char const*, int)'
/home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:64:
undefined reference to `bool QTest::qCompare<unsigned int, unsigned
long>(unsigned int const&, unsigned long const&, char const*, char const*,
char const*, int)'
/home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:65:
undefined reference to `bool QTest::qCompare<unsigned int, unsigned
long>(unsigned int const&, unsigned long const&, char const*, char const*,
char const*, int)'
CMakeFiles/mymoneyseqaccessmgrtest.dir/mymoneyseqaccessmgrtest.cpp.o:/home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:66:
more undefined references to `bool QTest::qCompare<unsigned int, unsigned
long>(unsigned int const&, unsigned long const&, char const*, char const*,
char const*, int)' follow
collect2: error: ld returned 1 exit status
Here a simple patch to fix the compiling error.
Hoping to help with this small contribution
Regards
Luca
--
P Please consider the environment before printing this e-mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20150617/6b98ebbf/attachment.html>
-------------- next part --------------
diff --git a/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp b/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp
index dcb4b4a..79a3303 100644
--- a/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp
+++ b/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp
@@ -58,13 +58,13 @@ void MyMoneySeqAccessMgrTest::testEmptyConstructor()
QCOMPARE(m->m_nextPayeeID, 0ul);
QCOMPARE(m->m_nextScheduleID, 0ul);
QCOMPARE(m->m_nextReportID, 0ul);
- QCOMPARE(m->m_institutionList.count(), 0ul);
- QCOMPARE(m->m_accountList.count(), 5ul);
- QCOMPARE(m->m_transactionList.count(), 0ul);
- QCOMPARE(m->m_transactionKeys.count(), 0ul);
- QCOMPARE(m->m_payeeList.count(), 0ul);
- QCOMPARE(m->m_tagList.count(), 0ul);
- QCOMPARE(m->m_scheduleList.count(), 0ul);
+ QCOMPARE(m->m_institutionList.count(), 0u);
+ QCOMPARE(m->m_accountList.count(), 5u);
+ QCOMPARE(m->m_transactionList.count(), 0u);
+ QCOMPARE(m->m_transactionKeys.count(), 0u);
+ QCOMPARE(m->m_payeeList.count(), 0u);
+ QCOMPARE(m->m_tagList.count(), 0u);
+ QCOMPARE(m->m_scheduleList.count(), 0u);
QCOMPARE(m->m_dirty, false);
QCOMPARE(m->m_creationDate, QDate::currentDate());
More information about the KMyMoney-devel
mailing list