[office/kmymoney/5.2] kmymoney: Fix SFINAE errors reported by CI/CD system

Thomas Baumgart <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit f91d4b82e437697f15df366ffeb922dca3c8729c by Thomas Baumgart.
Committed on 10/08/2026 at 09:43.
Pushed by tbaumgart into branch '5.2'.

Fix SFINAE errors reported by CI/CD system

(cherry picked from commit a825106e93cb199f8c2a3b3a26b10c6fa515acac) and
(cherry picked from commit 112f1f59be706354c51c55a09ff3056dda72601e)

M  +0    -1    kmymoney/mymoney/mymoneyfile.cpp
M  +1    -1    kmymoney/mymoney/mymoneyfile.h
M  +0    -1    kmymoney/plugins/views/reports/kbalancechartdlg.cpp
M  +3    -1    kmymoney/plugins/views/reports/kbalancechartdlg.h

https://invent.kde.org/office/kmymoney/-/commit/f91d4b82e437697f15df366ffeb922dca3c8729c

diff --git a/kmymoney/mymoney/mymoneyfile.cpp b/kmymoney/mymoney/mymoneyfile.cpp
index d8d195292..f191a4e90 100644
--- a/kmymoney/mymoney/mymoneyfile.cpp
+++ b/kmymoney/mymoney/mymoneyfile.cpp
@@ -37,7 +37,6 @@
 // ----------------------------------------------------------------------------
 // Project Includes
 
-#include "mymoneyaccount.h"
 #include "mymoneyaccountloan.h"
 #include "mymoneybalancecache.h"
 #include "mymoneybudget.h"
diff --git a/kmymoney/mymoney/mymoneyfile.h b/kmymoney/mymoney/mymoneyfile.h
index 97708d728..1e94a39ae 100644
--- a/kmymoney/mymoney/mymoneyfile.h
+++ b/kmymoney/mymoney/mymoneyfile.h
@@ -22,6 +22,7 @@
 // Project Includes
 #include "kmm_mymoney_export.h"
 #include "kmmset.h"
+#include "mymoneyaccount.h"
 #include "mymoneyunittestable.h"
 
 /**
@@ -119,7 +120,6 @@ class QBitArray;
 class QUndoStack;
 class MyMoneyStorageMgr;
 class MyMoneyCostCenter;
-class MyMoneyAccount;
 class MyMoneyInstitution;
 class MyMoneySecurity;
 class MyMoneyPrice;
diff --git a/kmymoney/plugins/views/reports/kbalancechartdlg.cpp b/kmymoney/plugins/views/reports/kbalancechartdlg.cpp
index 10586a6c6..cd9cc1655 100644
--- a/kmymoney/plugins/views/reports/kbalancechartdlg.cpp
+++ b/kmymoney/plugins/views/reports/kbalancechartdlg.cpp
@@ -35,7 +35,6 @@
 #include "mymoneyenums.h"
 #include "mymoneyexception.h"
 #include "mymoneyfile.h"
-#include "mymoneyreport.h"
 #include "mymoneyutils.h"
 #include "pivottable.h"
 #include "reporttabimpl.h"
diff --git a/kmymoney/plugins/views/reports/kbalancechartdlg.h b/kmymoney/plugins/views/reports/kbalancechartdlg.h
index eb51a131c..c95545ca8 100644
--- a/kmymoney/plugins/views/reports/kbalancechartdlg.h
+++ b/kmymoney/plugins/views/reports/kbalancechartdlg.h
@@ -17,11 +17,13 @@
 
 // ----------------------------------------------------------------------------
 // Project Includes
+
+#include "mymoneyreport.h"
+
 namespace reports {
 class KReportChartView;
 }
 class MyMoneyAccount;
-class MyMoneyReport;
 class BalanceChartView;
 
 /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.