summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/storage
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-03-18 04:03:50 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-03-18 12:45:32 +0100
commitf3fd991c693316d26e360438eff8ecff8a54553d (patch)
tree332159ae0e96affb31c831b82e069fbeb1d7984b /kmymoney2/mymoney/storage
parent5e6c401557744fe5f9765471605cc793939fee1f (diff)
downloadkmymoney-f3fd991c693316d26e360438eff8ecff8a54553d.tar.gz
kmymoney-f3fd991c693316d26e360438eff8ecff8a54553d.zip
Enforce the use of TQt with STL only where it is necessary.
The definition of -UTQT_NO_STL is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kmymoney2/mymoney/storage')
-rw-r--r--kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp12
-rw-r--r--kmymoney2/mymoney/storage/mymoneystoragesql.cpp12
2 files changed, 24 insertions, 0 deletions
diff --git a/kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp b/kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp
index 98b6286..ced8e9a 100644
--- a/kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp
+++ b/kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp
@@ -15,6 +15,12 @@
* *
***************************************************************************/
+// force to use TQt with STL
+#if defined(TQT_NO_STL)
+# define DISABLE_TQT_NO_STL
+# undef TQT_NO_STL
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -1883,3 +1889,9 @@ void MyMoneyDatabaseMgr::removeReferences(const TQString& id)
#undef TRY
#undef CATCH
#undef PASS
+
+// restore TQT_NO_STL
+#if defined(DISABLE_TQT_NO_STL)
+# undef DISABLE_TQT_NO_STL
+# define TQT_NO_STL
+#endif
diff --git a/kmymoney2/mymoney/storage/mymoneystoragesql.cpp b/kmymoney2/mymoney/storage/mymoneystoragesql.cpp
index e5914bb..952db4f 100644
--- a/kmymoney2/mymoney/storage/mymoneystoragesql.cpp
+++ b/kmymoney2/mymoney/storage/mymoneystoragesql.cpp
@@ -16,6 +16,12 @@
* *
***************************************************************************/
+// force to use TQt with STL
+#if defined(TQT_NO_STL)
+# define DISABLE_TQT_NO_STL
+# undef TQT_NO_STL
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -4503,3 +4509,9 @@ const TQString MyMoneyDbDatetimeColumn::generateDDL (databaseTypeE dbType) const
if (isNotNull()) qs += " NOT NULL";
return qs;
}
+
+// restore TQT_NO_STL
+#if defined(DISABLE_TQT_NO_STL)
+# undef DISABLE_TQT_NO_STL
+# define TQT_NO_STL
+#endif