From 6eaebefb90cd04062f4d8d22682e166c0e1d3ffc Mon Sep 17 00:00:00 2001 From: Gaspar Capello Date: Thu, 30 Aug 2018 08:52:38 -0300 Subject: [PATCH] Minor changes functions newLayer and newGroup --- src/app/doc_api.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/doc_api.cpp b/src/app/doc_api.cpp index 6f86eec8c..189474a95 100644 --- a/src/app/doc_api.cpp +++ b/src/app/doc_api.cpp @@ -445,20 +445,20 @@ void DocApi::swapCel( LayerImage* DocApi::newLayer(LayerGroup* parent, const std::string& name) { - LayerImage* layer = new LayerImage(parent->sprite()); - layer->setName(name); + LayerImage* newLayer = new LayerImage(parent->sprite()); + newLayer->setName(name); - addLayer(parent, layer, parent->lastLayer()); - return layer; + addLayer(parent, newLayer, parent->lastLayer()); + return newLayer; } LayerGroup* DocApi::newGroup(LayerGroup* parent, const std::string& name) { - LayerGroup* layer = new LayerGroup(parent->sprite()); - layer->setName(name); + LayerGroup* newLayerGroup = new LayerGroup(parent->sprite()); + newLayerGroup->setName(name); - addLayer(parent, layer, parent->lastLayer()); - return layer; + addLayer(parent, newLayerGroup, parent->lastLayer()); + return newLayerGroup; } void DocApi::addLayer(LayerGroup* parent, Layer* newLayer, Layer* afterThis)