generic: fix build against Katie

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-10-19 03:06:11 +00:00
parent 9c496296af
commit 07586a7632
3 changed files with 3 additions and 2 deletions

View file

@ -21,6 +21,7 @@
#define KCATALOG_H
#include <QtCore/QString>
#include <QtCore/QDebug>
class KCatalogPrivate;

View file

@ -81,7 +81,7 @@ void KXErrorHandler::addHandler()
if( size == pos )
{
size += 16;
handlers = static_cast< KXErrorHandler** >( qRealloc( handlers, size * sizeof( KXErrorHandler* )));
handlers = static_cast< KXErrorHandler** >( ::realloc( handlers, size * sizeof( KXErrorHandler* )));
}
handlers[ pos++ ] = this;
}

View file

@ -137,7 +137,7 @@ qint64 AccessManagerReply::readData(char *data, qint64 maxSize)
const qint64 length = qMin(qint64(m_data.length()), maxSize);
if (length) {
qMemCopy(data, m_data.constData(), length);
::memcpy(data, m_data.constData(), length);
m_data.remove(0, length);
}