forked from qt-creator/qt-creator
Macros: Modernize
* Replace 0 with nullptr * Remove redundant pimpl * Use inline member initialization Started-by: Laurent Montel <laurent.montel@kdab.com> Change-Id: I15ace2581c13ecf24b7c947972b9435fbcaa12ab Reviewed-by: Laurent Montel <laurent.montel@kdab.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
e99b86e8ca
commit
0269bf537b
@@ -53,8 +53,7 @@ static quint8 AUTOREP = 4;
|
||||
static quint8 COUNT = 5;
|
||||
|
||||
|
||||
TextEditorMacroHandler::TextEditorMacroHandler():
|
||||
IMacroHandler()
|
||||
TextEditorMacroHandler::TextEditorMacroHandler()
|
||||
{
|
||||
Core::EditorManager *editorManager = Core::EditorManager::instance();
|
||||
connect(editorManager, &Core::EditorManager::currentEditorChanged,
|
||||
@@ -140,5 +139,5 @@ void TextEditorMacroHandler::closeEditor(Core::IEditor *editor)
|
||||
Q_UNUSED(editor);
|
||||
if (isRecording() && m_currentEditor && m_currentEditor->widget())
|
||||
m_currentEditor->widget()->removeEventFilter(this);
|
||||
m_currentEditor = 0;
|
||||
m_currentEditor = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user