mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -291,10 +291,10 @@ void XCAFDoc_DocumentTool::Init() const
|
||||
Handle(TDataStd_TreeNode) aRootNode, aLabNode;
|
||||
|
||||
if (!RootL.FindAttribute (aRefGuid, aRootNode)) {
|
||||
Handle(TDataStd_TreeNode) aRootNode = TDataStd_TreeNode::Set (RootL, aRefGuid);
|
||||
Handle(TDataStd_TreeNode) aRootNodeNew = TDataStd_TreeNode::Set (RootL, aRefGuid);
|
||||
Handle(TDataStd_TreeNode) aLNode = TDataStd_TreeNode::Set (DocL, aRefGuid);
|
||||
aLNode->SetFather (aRootNode);
|
||||
aRootNode->SetFirst (aLNode);
|
||||
aLNode->SetFather (aRootNodeNew);
|
||||
aRootNodeNew->SetFirst (aLNode);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user