summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2019-05-01 11:16:15 +0200
committerUwe Klotz <uklotz@mixxx.org>2019-05-03 00:19:33 +0200
commit74649e771e060d1280cf0f77176cf27d32540c3d (patch)
treee3d176d67ed0bc80e9051a3eaaf3e6f2b585b402 /lib
parentcce2f977bc29108e4209d35f9db7768f9c147a7c (diff)
Delete code that checks for Qt version 4.x
Diffstat (limited to 'lib')
-rw-r--r--lib/qtscript-bytearray/bytearrayclass.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/qtscript-bytearray/bytearrayclass.cpp b/lib/qtscript-bytearray/bytearrayclass.cpp
index 25a21d8541..2c24c718f7 100644
--- a/lib/qtscript-bytearray/bytearrayclass.cpp
+++ b/lib/qtscript-bytearray/bytearrayclass.cpp
@@ -196,10 +196,7 @@ QScriptValue ByteArrayClass::constructor()
//! [10]
QScriptValue ByteArrayClass::newInstance(int size)
{
- // reportAdditionalMemoryCost is only available on >= Qt 4.7.0.
-#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
engine()->reportAdditionalMemoryCost(size);
-#endif
return newInstance(QByteArray(size, /*ch=*/0));
}
//! [10]
@@ -245,11 +242,8 @@ void ByteArrayClass::resize(QByteArray &ba, int newSize)
{
int oldSize = ba.size();
ba.resize(newSize);
- // reportAdditionalMemoryCost is only available on >= Qt 4.7.0.
-#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
if (newSize > oldSize)
engine()->reportAdditionalMemoryCost(newSize - oldSize);
-#endif
}
//! [9]