Android: use Q_UNIMPLEMENTED()

... instead of explicit qWarnings()

Change-Id: I986a11bf519eaefd400813776d173b0ab2c2bc62
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
Marc Mutz 2015-10-24 12:47:53 +02:00
parent b2d24dc347
commit a38df3f3ba
2 changed files with 11 additions and 11 deletions

View File

@ -50,12 +50,12 @@ QSharedMemoryPrivate::QSharedMemoryPrivate()
void QSharedMemoryPrivate::setErrorString(QLatin1String function)
{
Q_UNUSED(function);
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
}
key_t QSharedMemoryPrivate::handle()
{
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
return 0;
}
@ -65,7 +65,7 @@ key_t QSharedMemoryPrivate::handle()
int QSharedMemoryPrivate::createUnixKeyFile(const QString &fileName)
{
Q_UNUSED(fileName);
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
return 0;
}
#endif // QT_NO_SHAREDMEMORY && QT_NO_SYSTEMSEMAPHORE
@ -74,27 +74,27 @@ int QSharedMemoryPrivate::createUnixKeyFile(const QString &fileName)
bool QSharedMemoryPrivate::cleanHandle()
{
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
return true;
}
bool QSharedMemoryPrivate::create(int size)
{
Q_UNUSED(size);
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
return false;
}
bool QSharedMemoryPrivate::attach(QSharedMemory::AccessMode mode)
{
Q_UNUSED(mode);
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
return false;
}
bool QSharedMemoryPrivate::detach()
{
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
return false;
}

View File

@ -49,25 +49,25 @@ QSystemSemaphorePrivate::QSystemSemaphorePrivate() :
void QSystemSemaphorePrivate::setErrorString(const QString &function)
{
Q_UNUSED(function);
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
}
key_t QSystemSemaphorePrivate::handle(QSystemSemaphore::AccessMode mode)
{
Q_UNUSED(mode);
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
return -1;
}
void QSystemSemaphorePrivate::cleanHandle()
{
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
}
bool QSystemSemaphorePrivate::modifySemaphore(int count)
{
Q_UNUSED(count);
qWarning() << Q_FUNC_INFO << "Not yet implemented on Android";
Q_UNIMPLEMENTED();
return false;
}