1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0026586: Eliminate compile warnings obtained by building occt with vc14: declaration of local variable hides previous local declaration

Eliminated warnings about "declaration of some local variable hides previous local declaration"
This commit is contained in:
ski
2015-09-08 15:41:26 +03:00
committed by bugmaster
parent 695c6eed26
commit 5174095875
186 changed files with 1382 additions and 1466 deletions

View File

@@ -37,9 +37,9 @@ Interface_EntityList::Interface_EntityList () { }
{
if (ent.IsNull()) Standard_NullObject::Raise("Interface_EntityList Append");
if (theval.IsNull()) { theval = ent; return; }
Handle(Interface_EntityCluster) ec =
Handle(Interface_EntityCluster) aValEC =
Handle(Interface_EntityCluster)::DownCast(theval);
if (!ec.IsNull()) ec->Append(ent); // EntityCluster
if (!aValEC.IsNull()) aValEC->Append(ent); // EntityCluster
else { // reste InterfaceEntity ...
Handle(Interface_EntityCluster) ec = new Interface_EntityCluster(theval);
ec->Append(ent);
@@ -57,11 +57,11 @@ Interface_EntityList::Interface_EntityList () { }
{
if (ent.IsNull()) Standard_NullObject::Raise("Interface_EntityList Add");
if (theval.IsNull()) { theval = ent; return; }
Handle(Interface_EntityCluster) ec =
Handle(Interface_EntityCluster) aValEC =
Handle(Interface_EntityCluster)::DownCast(theval);
if (!ec.IsNull()) { // EntityCluster
if (ec->IsLocalFull()) theval = new Interface_EntityCluster(ent,ec);
else ec->Append (ent);
if (!aValEC.IsNull()) { // EntityCluster
if (aValEC->IsLocalFull()) theval = new Interface_EntityCluster(ent, aValEC);
else aValEC->Append (ent);
} else { // reste InterfaceEntity ...
Handle(Interface_EntityCluster) ec = new Interface_EntityCluster(theval);
ec->Append(ent);