Skip to content

Commit 9b7482f

Browse files
committed
fix: std::pair
1 parent 1510fe2 commit 9b7482f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/QtNodes/internal/NodeDelegateModelRegistry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class NODE_EDITOR_PUBLIC NodeDelegateModelRegistry
5555
if (!_registeredItemCreators.count(name))
5656
{
5757
_registeredItemCreators[name] = std::move(creator);
58-
_registeredModelsCategory.push_back(std::pair(name, category));
58+
_registeredModelsCategory.push_back(std::make_pair(name, category));
5959
}
6060
}
6161

src/DataFlowGraphicsScene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ createSceneMenu(QPointF const scenePos)
169169
if(item->hasChildren())
170170
return;
171171

172-
this->undoStack().push(new CreateCommand(this, item->text(0), scenePos));
172+
this->undoStack().push(new CreateCommand(this, item->text(), scenePos));
173173

174174
modelMenu->close();
175175
});

0 commit comments

Comments
 (0)