forked from qt-creator/qt-creator
Clang: Check for nullptr
Task-number: QTCREATORBUG-18087 Change-Id: Icf8100d84a415995a8d913bc776699c895882e97 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -542,7 +542,8 @@ void CppEditorWidget::renameSymbolUnderCursorClang()
|
|||||||
{
|
{
|
||||||
using ClangBackEnd::SourceLocationsContainer;
|
using ClangBackEnd::SourceLocationsContainer;
|
||||||
|
|
||||||
if (refactoringEngine()->isUsable()) {
|
ProjectPart *theProjectPart = projectPart();
|
||||||
|
if (refactoringEngine()->isUsable() && theProjectPart) {
|
||||||
d->m_useSelectionsUpdater.abortSchedule();
|
d->m_useSelectionsUpdater.abortSchedule();
|
||||||
|
|
||||||
QPointer<CppEditorWidget> cppEditorWidget = this;
|
QPointer<CppEditorWidget> cppEditorWidget = this;
|
||||||
@@ -569,7 +570,7 @@ void CppEditorWidget::renameSymbolUnderCursorClang()
|
|||||||
refactoringEngine()->startLocalRenaming(textCursor(),
|
refactoringEngine()->startLocalRenaming(textCursor(),
|
||||||
textDocument()->filePath(),
|
textDocument()->filePath(),
|
||||||
document()->revision(),
|
document()->revision(),
|
||||||
projectPart(),
|
theProjectPart,
|
||||||
std::move(renameSymbols));
|
std::move(renameSymbols));
|
||||||
|
|
||||||
viewport()->setCursor(Qt::BusyCursor);
|
viewport()->setCursor(Qt::BusyCursor);
|
||||||
|
|||||||
Reference in New Issue
Block a user