1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024666: Removal of output information in debug mode in Ocaf

DEB_BUILDER replaces DEB pre-processor directive to eliminate extra output on setting a shape to a label.
Small correction of test case
This commit is contained in:
vro
2014-02-27 18:48:52 +04:00
committed by apn
parent 89f18cb939
commit ca2edbb237
2 changed files with 6 additions and 6 deletions

View File

@@ -256,7 +256,7 @@ static void RemoveNode(Standard_Boolean MapExist ,
void TNaming_NamedShape::Clear() void TNaming_NamedShape::Clear()
{ {
if (Label().IsNull()) { if (Label().IsNull()) {
#ifdef DEB #ifdef DEB_BUILDER
cout << "attention etat fantomatique" << endl; cout << "attention etat fantomatique" << endl;
#endif #endif
return; return;
@@ -665,7 +665,7 @@ void TNaming_Builder::Generated(const TopoDS_Shape& newShape)
TNaming_RefShape* pns; TNaming_RefShape* pns;
if (myShapes->myMap.IsBound(newShape)) { if (myShapes->myMap.IsBound(newShape)) {
#ifdef DEB #ifdef DEB_BUILDER
cout <<"TNaming_Builder::Generate : the shape is already in the attribute"<<endl; cout <<"TNaming_Builder::Generate : the shape is already in the attribute"<<endl;
#endif #endif
pns = myShapes->myMap.ChangeFind(newShape); pns = myShapes->myMap.ChangeFind(newShape);
@@ -706,7 +706,7 @@ void TNaming_Builder::Delete(const TopoDS_Shape& oldShape)
if (myShapes->myMap.IsBound(oldShape)) if (myShapes->myMap.IsBound(oldShape))
pos = myShapes->myMap.ChangeFind(oldShape); pos = myShapes->myMap.ChangeFind(oldShape);
else { else {
#ifdef DEB #ifdef DEB_BUILDER
cout <<"TNaming_Builder::Delete : the shape is not in the data"<<endl; cout <<"TNaming_Builder::Delete : the shape is not in the data"<<endl;
#endif #endif
pos = new TNaming_RefShape(oldShape); pos = new TNaming_RefShape(oldShape);
@@ -732,7 +732,7 @@ void TNaming_Builder::Generated(const TopoDS_Shape& oldShape,
} }
if (oldShape.IsSame(newShape)) { if (oldShape.IsSame(newShape)) {
#ifdef DEB #ifdef DEB_BUILDER
cout <<"TNaming_Builder::Generate : oldShape IsSame newShape"<<endl; cout <<"TNaming_Builder::Generate : oldShape IsSame newShape"<<endl;
#endif #endif
return; return;
@@ -775,7 +775,7 @@ void TNaming_Builder::Modify(const TopoDS_Shape& oldShape,
} }
if (oldShape.IsSame(newShape)) { if (oldShape.IsSame(newShape)) {
#ifdef DEB #ifdef DEB_BUILDER
cout <<"TNaming_Builder::Modify : oldShape IsSame newShape"<<endl; cout <<"TNaming_Builder::Modify : oldShape IsSame newShape"<<endl;
#endif #endif
return; return;

2
tests/bugs/caf/bug267_2 Normal file → Executable file
View File

@@ -9,7 +9,7 @@ puts "========"
pload QAcommands pload QAcommands
NewDocument D MDTV-Standard NewDocument D MDTV-Standard
file delete ${imagedir}/OCC267.std file delete -force ${imagedir}/OCC267.std
catch { OCC267 D ${imagedir}/OCC267.std } status catch { OCC267 D ${imagedir}/OCC267.std } status
set list [split ${status}] set list [split ${status}]