mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-26 15:22:15 +08:00
44 lines
1.5 KiB
Diff
44 lines
1.5 KiB
Diff
commit 77209f84a85360e98d2e805d412956a8f2a77db3
|
|
Author: Alex Merry <kde@randomguy3.me.uk>
|
|
Date: Fri Feb 1 15:31:54 2013 +0000
|
|
|
|
Fix build with GMP 5.1.0
|
|
|
|
GMP 5.1.0 no longer has implicit conversions to mpz_class from mpq_class
|
|
or mpf_class. So we have to have an explicit conversion.
|
|
|
|
BUG: 312481
|
|
|
|
diff --git a/kmymoney/mymoney/mymoneymoney.cpp b/kmymoney/mymoney/mymoneymoney.cpp
|
|
index aeed135..5de7fa9 100644
|
|
--- a/kmymoney/mymoney/mymoneymoney.cpp
|
|
+++ b/kmymoney/mymoney/mymoneymoney.cpp
|
|
@@ -158,7 +158,7 @@ QString MyMoneyMoney::formatMoney(const QString& currency, const int prec, bool
|
|
// be much better than using KGlobal::locale()->formatMoney.
|
|
bool bNegative = false;
|
|
mpz_class left = value / static_cast<MyMoneyMoney>(convertDenominator(d)).valueRef().get_den();
|
|
- mpz_class right = (valueRef() - mpq_class(left)) * denom;
|
|
+ mpz_class right = mpz_class((valueRef() - mpq_class(left)) * denom);
|
|
|
|
if (right < 0) {
|
|
right = -right;
|
|
commit 9b6f96a38b8c84cb87bb07165b503acbe5ea81ff
|
|
Author: Christoph Feck <christoph@maxiom.de>
|
|
Date: Fri Mar 23 23:05:19 2012 +0100
|
|
|
|
Fix includes
|
|
|
|
diff --git a/kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp b/kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp
|
|
index ff217e3..d31bb02 100644
|
|
--- a/kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp
|
|
+++ b/kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp
|
|
@@ -16,6 +16,7 @@
|
|
|
|
#include "mymoneydatabasemgrtest.h"
|
|
#include <pwd.h>
|
|
+#include <unistd.h>
|
|
#include <iostream>
|
|
|
|
#include <QtTest/QtTest>
|
|
|