mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025765: Coding rules - clean up code from obsolete macro checks
Unused code paths (including definition of these macros and meaningless comments) were eliminated.
This commit is contained in:
@@ -38,19 +38,13 @@ Handle(TDF_Attribute) MDataStd_NameRetrievalDriver::NewEmpty() const
|
||||
#include <TDF_Tool.hxx>
|
||||
#include <TDF_Label.hxx>
|
||||
|
||||
#define BUGOCC425
|
||||
|
||||
void MDataStd_NameRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,const Handle(TDF_Attribute)& Target,const Handle(MDF_RRelocationTable)& ) const
|
||||
{
|
||||
Handle(PDataStd_Name) S = Handle(PDataStd_Name)::DownCast (Source);
|
||||
Handle(TDataStd_Name) T = Handle(TDataStd_Name)::DownCast (Target);
|
||||
#ifdef BUGOCC425
|
||||
if(!S->Get().IsNull()) {
|
||||
#endif
|
||||
TCollection_ExtendedString Name = (S->Get())->Convert ();
|
||||
T->Set (Name);
|
||||
#ifdef BUGOCC425
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -19,8 +19,6 @@
|
||||
#include <PCollection_HExtendedString.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
#define BUGOCC425
|
||||
|
||||
MDataStd_NameStorageDriver::MDataStd_NameStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
@@ -38,13 +36,9 @@ void MDataStd_NameStorageDriver::Paste(const Handle(TDF_Attribute)& Source,const
|
||||
{
|
||||
Handle(TDataStd_Name) S = Handle(TDataStd_Name)::DownCast (Source);
|
||||
Handle(PDataStd_Name) T = Handle(PDataStd_Name)::DownCast (Target);
|
||||
#ifdef BUGOCC425
|
||||
if(S->Get().Length() != 0) {
|
||||
#endif
|
||||
Handle(PCollection_HExtendedString) Name = new PCollection_HExtendedString (S->Get());
|
||||
T->Set (Name);
|
||||
#ifdef BUGOCC425
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user