Commit be881677 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

no need for QPointer, we deregister this in destructor

parent dc05cbd5
......@@ -1361,7 +1361,8 @@ ToolView *MainWindow::createToolView(KTextEditor::Plugin *plugin,
const QIcon &icon,
const QString &text)
{
if (m_idToWidget[identifier]) {
// clashing names are not allowed
if (toolView(identifier)) {
return nullptr;
}
......
......@@ -590,12 +590,12 @@ private:
/**
* map identifiers to widgets
*/
std::map<QString, QPointer<ToolView>> m_idToWidget;
std::map<QString, ToolView *> m_idToWidget;
/**
* list of all toolviews around
*/
std::vector<QPointer<ToolView>> m_toolviews;
std::vector<ToolView *> m_toolviews;
/**
* widget, which is the central part of the
......
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