Commit f5cf3c66 authored by Milian Wolff's avatar Milian Wolff
Browse files

Use ENSURE_CHAIN_*_LOCKED

parent a80d7a5e
......@@ -75,7 +75,7 @@ QString AdaptSignatureAction::toolTip() const
void AdaptSignatureAction::execute()
{
Q_ASSERT(!DUChain::lock()->currentThreadHasReadLock() && !DUChain::lock()->currentThreadHasWriteLock());
ENSURE_CHAIN_NOT_LOCKED
DUChainReadLocker lock;
IndexedString url = m_otherSideTopContext->url();
lock.unlock();
......
......@@ -230,7 +230,7 @@ void AdaptSignatureAssistant::setDefaultParams(Signature& newSignature, const QL
QList<RenameAction*> AdaptSignatureAssistant::getRenameActions(const Signature &newSignature, const QList<int> &oldPositions) const
{
Q_ASSERT(DUChain::lock()->currentThreadHasReadLock());
ENSURE_CHAIN_READ_LOCKED
QList<RenameAction*> renameActions;
if (!m_otherSideContext) {
return renameActions;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment