mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
generic: fix build against Katie
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9c496296af
commit
07586a7632
3 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
|||
#define KCATALOG_H
|
||||
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
class KCatalogPrivate;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue