node: added qstringliterals to node IDs

Minor code optimization.
This commit is contained in:
itsmattkc
2020-03-28 18:02:34 +11:00
parent b54388894c
commit 7bca61608a
10 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ TrackOutput* TrackList::AddTrack()
if (last_track && last_track->output()->IsConnected()) {
foreach (NodeEdgePtr edge, last_track->output()->edges()) {
if (!track_input_->ContainsSubParameter(edge->input())) {
Node* blend = NodeFactory::CreateFromID("org.olivevideoeditor.Olive.alphaoverblend");
Node* blend = NodeFactory::CreateFromID(QStringLiteral("org.olivevideoeditor.Olive.alphaoverblend"));
GetParentGraph()->AddNode(blend);
NodeParam::ConnectEdge(track->output(), static_cast<NodeInput*>(blend->GetParameterWithID("blend_in")));