diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-28 21:14:39 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-28 21:14:39 +0900 |
| commit | 0b8194043a40b7c19ccfc206f6f3ffea69f39ce3 (patch) | |
| tree | 3e902dfe277f5ee2b095e70fe4142571154d3f9a | |
| parent | 1df9f282051905555d02d43069a2c9ca0cc89270 (diff) | |
| download | tqt-remove/cannot-delete-constant-define.tar.gz tqt-remove/cannot-delete-constant-define.zip | |
Remove Q_CANNOT_DELETE_CONSTANT define. We are using c++17 compilers,remove/cannot-delete-constant-define
this should no longer be needed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
| -rw-r--r-- | doc/html/tqglobal-h.html | 4 | ||||
| -rw-r--r-- | src/kernel/tqmetaobject.cpp | 4 | ||||
| -rw-r--r-- | src/tools/tqglobal.h | 4 |
3 files changed, 0 insertions, 12 deletions
diff --git a/doc/html/tqglobal-h.html b/doc/html/tqglobal-h.html index 0cbc709a7..17f345651 100644 --- a/doc/html/tqglobal-h.html +++ b/doc/html/tqglobal-h.html @@ -251,8 +251,6 @@ body { background: #ffffff; color: black; } #elif defined(_MSC_VER) # define Q_CC_MSVC -/* proper support of bool for _MSC_VER >= 1100 */ -# define Q_CANNOT_DELETE_CONSTANT # define TQ_INLINE_TEMPLATES inline /* Visual C++.Net issues for _MSC_VER >= 1300 */ # if _MSC_VER >= 1300 @@ -276,7 +274,6 @@ body { background: #ffffff; color: black; } # if defined(Q_OS_QNX4) /* compiler flags */ # define TQ_TYPENAME -# define Q_CANNOT_DELETE_CONSTANT # define mutable /* no template classes in TQVariant */ # define TQT_NO_TEMPLATE_VARIANT @@ -348,7 +345,6 @@ body { background: #ffffff; color: black; } # define Q_NO_USING_KEYWORD # define TQ_TYPENAME # define TQ_INLINE_TEMPLATES inline -# define Q_CANNOT_DELETE_CONSTANT # endif /* Compilers with EDG front end are similar. To detect them we test: diff --git a/src/kernel/tqmetaobject.cpp b/src/kernel/tqmetaobject.cpp index 4464f716d..d2119851c 100644 --- a/src/kernel/tqmetaobject.cpp +++ b/src/kernel/tqmetaobject.cpp @@ -164,11 +164,7 @@ public: Internal dictionary for fast access to class members *****************************************************************************/ -#if defined(Q_CANNOT_DELETE_CONSTANT) -typedef TQMetaData TQConstMetaData; -#else typedef const TQMetaData TQConstMetaData; -#endif class TQ_EXPORT TQMemberDict : public TQAsciiDict<TQConstMetaData> { diff --git a/src/tools/tqglobal.h b/src/tools/tqglobal.h index 15c700058..e74c87f91 100644 --- a/src/tools/tqglobal.h +++ b/src/tools/tqglobal.h @@ -218,8 +218,6 @@ #elif defined(_MSC_VER) # define Q_CC_MSVC -/* proper support of bool for _MSC_VER >= 1100 */ -# define Q_CANNOT_DELETE_CONSTANT # define TQ_INLINE_TEMPLATES inline /* Visual C++.Net issues for _MSC_VER >= 1300 */ # if _MSC_VER >= 1300 @@ -243,7 +241,6 @@ # if defined(Q_OS_QNX4) /* compiler flags */ # define TQ_TYPENAME -# define Q_CANNOT_DELETE_CONSTANT # define mutable /* no template classes in TQVariant */ # define TQT_NO_TEMPLATE_VARIANT @@ -315,7 +312,6 @@ # define Q_NO_USING_KEYWORD # define TQ_TYPENAME # define TQ_INLINE_TEMPLATES inline -# define Q_CANNOT_DELETE_CONSTANT # endif /* Compilers with EDG front end are similar. To detect them we test: |
