Use parent implementation for methods incrementReferens() and
decrementReferens() where possible. --HG-- branch : feature
This commit is contained in:
parent
5442eb40b9
commit
60810c4d04
|
@ -75,7 +75,7 @@ void VAbstractNode::ShowVisualization(bool show)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VAbstractNode::incrementReferens()
|
||||
{
|
||||
++_referens;
|
||||
VAbstractTool::incrementReferens();
|
||||
if (_referens == 1)
|
||||
{
|
||||
if (idTool != NULL_ID)
|
||||
|
@ -102,10 +102,7 @@ void VAbstractNode::incrementReferens()
|
|||
*/
|
||||
void VAbstractNode::decrementReferens()
|
||||
{
|
||||
if (_referens > 0)
|
||||
{
|
||||
--_referens;
|
||||
}
|
||||
VAbstractTool::decrementReferens();
|
||||
if (_referens == 0)
|
||||
{
|
||||
if (idTool != NULL_ID)
|
||||
|
|
|
@ -114,7 +114,7 @@ QString VToolPiecePath::getTagName() const
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolPiecePath::incrementReferens()
|
||||
{
|
||||
++_referens;
|
||||
VAbstractTool::incrementReferens();
|
||||
if (_referens == 1)
|
||||
{
|
||||
if (idTool != NULL_ID)
|
||||
|
@ -137,10 +137,7 @@ void VToolPiecePath::incrementReferens()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolPiecePath::decrementReferens()
|
||||
{
|
||||
if (_referens > 0)
|
||||
{
|
||||
--_referens;
|
||||
}
|
||||
VAbstractTool::decrementReferens();
|
||||
if (_referens == 0)
|
||||
{
|
||||
if (idTool != NULL_ID)
|
||||
|
|
Loading…
Reference in New Issue
Block a user