mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T260, changed to const QObject
This commit is contained in:
committed by
Roland Winklmeier
parent
e1421622b1
commit
6e908db52e
@@ -16,14 +16,14 @@
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
bool CThreadUtils::isCurrentThreadObjectThread(QObject *toBeTested)
|
||||
bool CThreadUtils::isCurrentThreadObjectThread(const QObject *toBeTested)
|
||||
{
|
||||
Q_ASSERT_X(toBeTested, Q_FUNC_INFO, "missing QObject");
|
||||
Q_ASSERT_X(toBeTested->thread(), Q_FUNC_INFO, "missing thread");
|
||||
return (QThread::currentThread() == toBeTested->thread());
|
||||
}
|
||||
|
||||
bool CThreadUtils::isApplicationThreadObjectThread(QObject *toBeTested)
|
||||
bool CThreadUtils::isApplicationThreadObjectThread(const QObject *toBeTested)
|
||||
{
|
||||
Q_ASSERT_X(toBeTested, Q_FUNC_INFO, "missing QObject");
|
||||
Q_ASSERT_X(toBeTested->thread(), Q_FUNC_INFO, "missing thread");
|
||||
|
||||
Reference in New Issue
Block a user