Commit fea686c7 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix compilation

parent 1ee9a883
......@@ -50,8 +50,9 @@ KisTagModel* KisTagModelProvider::tagModel(const QString& resourceType)
if (found == s_instance->d->tagModelsMap.end())
{
KisTagModel* model = new KisTagModel(resourceType);
s_instance->d->tagModelsMap.insert(std::make_pair(resourceType, model));
std::unique_ptr<KisTagModel> modelStorage(new KisTagModel(resourceType));
KisTagModel *model = modelStorage.get();
s_instance->d->tagModelsMap.insert(std::make_pair(resourceType, std::move(modelStorage)));
return model;
}
return found->second.get();
......
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