mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0022922: Clean up warnings on uninitialized / unused variables
This commit is contained in:
committed by
bugmaster
parent
25289ec1e1
commit
6e6cd5d949
@@ -57,9 +57,5 @@ Standard_Integer MXCAFDoc_AreaRetrievalDriver::VersionNumber() const
|
||||
Handle(PXCAFDoc_Area) S = Handle(PXCAFDoc_Area)::DownCast (Source);
|
||||
Handle(XCAFDoc_Area) T = Handle(XCAFDoc_Area)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
||||
|
@@ -57,9 +57,5 @@ Standard_Integer MXCAFDoc_AreaStorageDriver::VersionNumber() const
|
||||
Handle(XCAFDoc_Area) S = Handle(XCAFDoc_Area)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Area) T = Handle(PXCAFDoc_Area)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
||||
|
@@ -62,9 +62,5 @@ MXCAFDoc_CentroidRetrievalDriver::MXCAFDoc_CentroidRetrievalDriver(const Handle(
|
||||
Handle(PXCAFDoc_Centroid) S = Handle(PXCAFDoc_Centroid)::DownCast (Source);
|
||||
Handle(XCAFDoc_Centroid) T = Handle(XCAFDoc_Centroid)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
||||
|
@@ -60,9 +60,5 @@ MXCAFDoc_CentroidStorageDriver::MXCAFDoc_CentroidStorageDriver(const Handle(CDM_
|
||||
Handle(XCAFDoc_Centroid) S = Handle(XCAFDoc_Centroid)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Centroid) T = Handle(PXCAFDoc_Centroid)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
||||
|
@@ -61,10 +61,6 @@ void MXCAFDoc_DatumRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
Handle(PXCAFDoc_Datum) S = Handle(PXCAFDoc_Datum)::DownCast (Source);
|
||||
Handle(XCAFDoc_Datum) T = Handle(XCAFDoc_Datum)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TCollection_HAsciiString) aName, aDescr, anId;
|
||||
if ( !S->GetName().IsNull() )
|
||||
aName = new TCollection_HAsciiString( (S->GetName())->Convert() );
|
||||
|
@@ -59,10 +59,6 @@ void MXCAFDoc_DatumStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
{
|
||||
Handle(XCAFDoc_Datum) S = Handle(XCAFDoc_Datum)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Datum) T = Handle(PXCAFDoc_Datum)::DownCast (Target);
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TCollection_HAsciiString) aNameStr = S->GetName();
|
||||
Handle(TCollection_HAsciiString) aDescrStr = S->GetDescription();
|
||||
Handle(TCollection_HAsciiString) anIdStr = S->GetIdentification();
|
||||
|
@@ -63,10 +63,6 @@ void MXCAFDoc_DimTolRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
Handle(PXCAFDoc_DimTol) S = Handle(PXCAFDoc_DimTol)::DownCast (Source);
|
||||
Handle(XCAFDoc_DimTol) T = Handle(XCAFDoc_DimTol)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TColStd_HArray1OfReal) aVals;
|
||||
Handle(PColStd_HArray1OfReal) aPArr = S->GetVal();
|
||||
if ( !aPArr.IsNull() )
|
||||
|
@@ -61,10 +61,6 @@ void MXCAFDoc_DimTolStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
{
|
||||
Handle(XCAFDoc_DimTol) S = Handle(XCAFDoc_DimTol)::DownCast (Source);
|
||||
Handle(PXCAFDoc_DimTol) T = Handle(PXCAFDoc_DimTol)::DownCast (Target);
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TColStd_HArray1OfReal) aHArr = S->GetVal();
|
||||
Handle(PColStd_HArray1OfReal) aVals;
|
||||
if ( !aHArr.IsNull() )
|
||||
|
@@ -61,10 +61,6 @@ void MXCAFDoc_MaterialRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source
|
||||
Handle(PXCAFDoc_Material) S = Handle(PXCAFDoc_Material)::DownCast (Source);
|
||||
Handle(XCAFDoc_Material) T = Handle(XCAFDoc_Material)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TCollection_HAsciiString) aName, aDescr, aDensName, aDensValType;
|
||||
if ( !S->GetName().IsNull() )
|
||||
aName = new TCollection_HAsciiString( (S->GetName())->Convert() );
|
||||
|
@@ -61,10 +61,6 @@ void MXCAFDoc_MaterialStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
{
|
||||
Handle(XCAFDoc_Material) S = Handle(XCAFDoc_Material)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Material) T = Handle(PXCAFDoc_Material)::DownCast (Target);
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TCollection_HAsciiString) aNameStr = S->GetName();
|
||||
Handle(TCollection_HAsciiString) aDescrStr = S->GetDescription();
|
||||
Handle(TCollection_HAsciiString) aDensNameStr = S->GetDensName();
|
||||
|
@@ -56,9 +56,5 @@ Standard_Integer MXCAFDoc_VolumeRetrievalDriver::VersionNumber() const
|
||||
Handle(PXCAFDoc_Volume) S = Handle(PXCAFDoc_Volume)::DownCast (Source);
|
||||
Handle(XCAFDoc_Volume) T = Handle(XCAFDoc_Volume)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
||||
|
@@ -57,9 +57,5 @@ Standard_Integer MXCAFDoc_VolumeStorageDriver::VersionNumber() const
|
||||
Handle(XCAFDoc_Volume) S = Handle(XCAFDoc_Volume)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Volume) T = Handle(PXCAFDoc_Volume)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
||||
|
Reference in New Issue
Block a user