]> OCCT Git - occt-wok.git/commitdiff
OCC19308 FIP #24.6 Make consistent Standard_CString and Standard_ExtString definition.
authorcascade <cascade@opencascade.com>
Thu, 8 May 2008 17:11:10 +0000 (17:11 +0000)
committercascade <cascade@opencascade.com>
Thu, 8 May 2008 17:11:10 +0000 (17:11 +0000)
src/WOKernel/WOKernel_FileType.cxx

index a7200a58f00c990633366a8aebb0dc3c2be8f16e..c2175aae0e30b6b4201a78e2aad623de02e70a3c 100755 (executable)
@@ -23,6 +23,7 @@
 #include <WOKernel_FileTypeKeyWords.hxx>
 
 #include <WOKernel_FileType.ixx>
+#include <Standard_PCharacter.hxx>
 
 
 //=======================================================================
@@ -63,7 +64,7 @@ Handle( TCollection_HAsciiString )
   new TCollection_HAsciiString ( "javafile" );
 
  Standard_Boolean                   fJava = Standard_False;
- Standard_CString                   s;
+ Standard_PCharacter                s;
  Handle( TCollection_HAsciiString ) result;
  Handle( EDL_HSequenceOfVariable  ) vars = new EDL_HSequenceOfVariable ();
 
@@ -84,7 +85,7 @@ Handle( TCollection_HAsciiString )
    ) {
 
     EDL_Variable     v = params.myapi -> GetVariable ( name );
-    Standard_CString p = s = v.GetValue ();
+    Standard_PCharacter p = s = (Standard_PCharacter)v.GetValue ();
 
     while ( *p ) { if ( *p == '.' ) *p = '/'; ++p; }