diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2018-09-20 01:16:01 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2018-09-20 08:48:49 +0000 |
commit | 41dee83becb19aa5fadae8ef9469216bcab1440c (patch) | |
tree | 2fd37b0111d0e3b78976fa8f8fbaefff30f49003 /src/plugins/texteditor/findincurrentfile.cpp | |
parent | 439bc225e1c0f3d964c8a3da6e9757a821a5944c (diff) |
TextEditor: Modernize
override, auto, nullptr, member initializers.
Change-Id: I04c6ebb683849568973bd7782fb5a3279267141e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/texteditor/findincurrentfile.cpp')
-rw-r--r-- | src/plugins/texteditor/findincurrentfile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/texteditor/findincurrentfile.cpp b/src/plugins/texteditor/findincurrentfile.cpp index df568a1311..b9b629fc4f 100644 --- a/src/plugins/texteditor/findincurrentfile.cpp +++ b/src/plugins/texteditor/findincurrentfile.cpp @@ -39,7 +39,6 @@ using namespace TextEditor; using namespace TextEditor::Internal; FindInCurrentFile::FindInCurrentFile() - : m_currentDocument(0) { connect(Core::EditorManager::instance(), &Core::EditorManager::currentEditorChanged, this, &FindInCurrentFile::handleFileChange); @@ -95,7 +94,7 @@ void FindInCurrentFile::handleFileChange(Core::IEditor *editor) { if (!editor) { if (m_currentDocument) { - m_currentDocument = 0; + m_currentDocument = nullptr; emit enabledChanged(isEnabled()); } } else { |