0031884: Data Exchange - NULL de-reference within STEPCAFControl_Reader::SetSourceCod...
[occt.git] / src / STEPCAFControl / STEPCAFControl_Reader.cxx
index 029d9f4..2772edc 100644 (file)
@@ -384,7 +384,7 @@ TCollection_ExtendedString STEPCAFControl_Reader::convertName (const TCollection
   // If source code page is not a NoConversion
   // the string is treated as having UTF-8 coding,
   // else each character is copied to ExtCharacter.
-  return TCollection_ExtendedString (theName, SourceCodePage() != Resource_FormatType_NoConversion);
+  return TCollection_ExtendedString (theName, myReader.StepModel()->SourceCodePage() != Resource_FormatType_NoConversion);
 }
 
 //=======================================================================
@@ -4783,26 +4783,6 @@ Standard_Boolean STEPCAFControl_Reader::GetNameMode() const
   return myNameMode;
 }
 
-//=======================================================================
-//function : SourceCodePage
-//purpose  : 
-//=======================================================================
-
-Resource_FormatType STEPCAFControl_Reader::SourceCodePage() const
-{
-  return myReader.StepModel()->SourceCodePage();
-}
-
-//=======================================================================
-//function : SetSourceCodePage
-//purpose  : 
-//=======================================================================
-
-void STEPCAFControl_Reader::SetSourceCodePage(Resource_FormatType theCode)
-{
-  myReader.StepModel()->SetSourceCodePage(theCode);
-}
-
 //=======================================================================
 //function : SetLayerMode
 //purpose  :