Commit 3fc4511f authored by Konstantin Tokarev's avatar Konstantin Tokarev Committed by Eike Ziller
Browse files

Use plain QrcEditor* instead of QPointer



Change-Id: Ie8529d0daf1573130212be7c0acfd42f7627a092
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent a628fdb6
......@@ -315,8 +315,7 @@ void ResourceEditorW::openFile(const QString &fileName)
void ResourceEditorW::onRefresh()
{
if (!m_resourceEditor.isNull())
m_resourceEditor.data()->refresh();
m_resourceEditor->refresh();
}
void ResourceEditorW::renameCurrentFile()
......@@ -326,14 +325,12 @@ void ResourceEditorW::renameCurrentFile()
void ResourceEditorW::onUndo()
{
if (!m_resourceEditor.isNull())
m_resourceEditor.data()->onUndo();
m_resourceEditor->onUndo();
}
void ResourceEditorW::onRedo()
{
if (!m_resourceEditor.isNull())
m_resourceEditor.data()->onRedo();
m_resourceEditor->onRedo();
}
} // namespace Internal
......
......@@ -34,8 +34,6 @@
#include <coreplugin/idocument.h>
#include <coreplugin/editormanager/ieditor.h>
#include <QPointer>
QT_BEGIN_NAMESPACE
class QMenu;
class QToolBar;
......@@ -113,7 +111,7 @@ private:
const QString m_fileFilter;
QString m_displayName;
QString m_suggestedName;
QPointer<QrcEditor> m_resourceEditor;
QrcEditor *m_resourceEditor;
ResourceEditorDocument *m_resourceDocument;
ResourceEditorPlugin *m_plugin;
bool m_shouldAutoSave;
......
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