Commit 5c4b134e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Return directly pointer here

parent 7bf2c702
Pipeline #89823 passed with stage
in 51 minutes and 43 seconds
......@@ -21,8 +21,7 @@ NonBreakingSpacePluginEditor::~NonBreakingSpacePluginEditor()
MessageComposer::PluginEditorInterface *NonBreakingSpacePluginEditor::createInterface(QObject *parent)
{
auto interface = new NonBreakingSpacePluginEditorInterface(parent);
return interface;
return new NonBreakingSpacePluginEditorInterface(parent);
}
#include "nonbreakingspaceplugineditor.moc"
......@@ -26,8 +26,7 @@ bool ShareTextPluginEditor::hasPopupMenuSupport() const
MessageComposer::PluginEditorInterface *ShareTextPluginEditor::createInterface(QObject *parent)
{
auto interface = new ShareTextPluginEditorInterface(parent);
return interface;
return new ShareTextPluginEditorInterface(parent);
}
#include "sharetextplugineditor.moc"
Supports Markdown
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