0022797: Returning type Handle(Standard_Type)& should be changed to const Handle...
authorszv <szv@opencascade.com>
Tue, 6 Mar 2012 10:47:58 +0000 (14:47 +0400)
committerbugmaster <bugmaster@opencascade.com>
Tue, 6 Mar 2012 11:12:01 +0000 (15:12 +0400)
25 files changed:
src/Standard/Standard_Address.cxx
src/Standard/Standard_Address.hxx
src/Standard/Standard_Boolean.cxx
src/Standard/Standard_Boolean.hxx
src/Standard/Standard_CString.cxx
src/Standard/Standard_CString.hxx
src/Standard/Standard_Character.cxx
src/Standard/Standard_Character.hxx
src/Standard/Standard_ExtCharacter.cxx
src/Standard/Standard_ExtCharacter.hxx
src/Standard/Standard_ExtString.cxx
src/Standard/Standard_ExtString.hxx
src/Standard/Standard_IStream.cxx
src/Standard/Standard_IStream.hxx
src/Standard/Standard_Integer.cxx
src/Standard/Standard_Integer.hxx
src/Standard/Standard_OStream.cxx
src/Standard/Standard_OStream.hxx
src/Standard/Standard_Persistent.cxx
src/Standard/Standard_Persistent_proto.hxx
src/Standard/Standard_Real.cxx
src/Standard/Standard_Real.hxx
src/Standard/Standard_ShallowDump.cxx
src/Standard/Standard_ShortReal.cxx
src/Standard/Standard_ShortReal.hxx

index 3ba1de0..c52e6c0 100755 (executable)
@@ -5,7 +5,7 @@
 #include <Standard_OStream.hxx>
 #endif
 
-Handle_Standard_Type& Standard_Address_Type_() 
+const Handle_Standard_Type& Standard_Address_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_Address", sizeof(Standard_Address),0,NULL);
index f74c116..40f190b 100755 (executable)
@@ -24,7 +24,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_Address_Type_();
+__Standard_API const Handle_Standard_Type& Standard_Address_Type_();
 //class Standard_OStream;
 //void ShallowDump (const Standard_Address, Standard_OStream& );
 //============================================================================
index cb514f8..f10a2cc 100755 (executable)
@@ -8,7 +8,7 @@
 #include <Standard_OStream.hxx>
 #endif
 
-Handle_Standard_Type& Standard_Boolean_Type_() 
+const Handle_Standard_Type& Standard_Boolean_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_Boolean",sizeof(Standard_Boolean),0,NULL);
index ac616f3..3c79021 100755 (executable)
@@ -20,7 +20,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_Boolean_Type_();
+__Standard_API const Handle_Standard_Type& Standard_Boolean_Type_();
 //class Standard_OStream;
 //void ShallowDump (const Standard_Boolean, Standard_OStream& );
 // ===============================================
index 1d78d81..77ddfa9 100755 (executable)
@@ -37,7 +37,7 @@ static const Standard_Integer static_MaskEndIntegerString[4] = { 0x00000000 ,
 //============================================================================
 //==== 
 //============================================================================
-Handle_Standard_Type& Standard_CString_Type_() 
+const Handle_Standard_Type& Standard_CString_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_CString",sizeof(Standard_CString),0,NULL);
index 1108fd7..c045881 100755 (executable)
@@ -27,7 +27,7 @@
 class Handle_Standard_Type;
 
 
-__Standard_API Handle_Standard_Type& Standard_CString_Type_();
+__Standard_API const Handle_Standard_Type& Standard_CString_Type_();
 
 inline  Standard_Integer Abs (const Standard_Integer);
 inline Standard_CString ShallowCopy (const Standard_CString Value);
index a7a0dfa..8885610 100755 (executable)
@@ -17,7 +17,7 @@
 
 #include <Standard_Type.hxx>
 
-Handle_Standard_Type& Standard_Character_Type_() 
+const Handle_Standard_Type& Standard_Character_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_Character",sizeof(Standard_Character),0,NULL);
index 0320a31..970e0b2 100755 (executable)
@@ -22,7 +22,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_Character_Type_();
+__Standard_API const Handle_Standard_Type& Standard_Character_Type_();
 
 //class Standard_OStream;
 //void ShallowDump (const Standard_Character, Standard_OStream& );
index badef06..ebf0f48 100755 (executable)
@@ -17,7 +17,7 @@
 #include <Standard_OStream.hxx>
 #endif
 
-Handle_Standard_Type& Standard_ExtCharacter_Type_() 
+const Handle_Standard_Type& Standard_ExtCharacter_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_ExtCharacter",sizeof(Standard_ExtCharacter),
index baddeed..57b0917 100755 (executable)
@@ -26,7 +26,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_ExtCharacter_Type_();
+__Standard_API const Handle_Standard_Type& Standard_ExtCharacter_Type_();
 //class Standard_OStream;
 //void ShallowDump (const Standard_ExtCharacter, Standard_OStream& );
 // =====================================
index ab09fc3..9a03881 100755 (executable)
@@ -19,7 +19,7 @@ Standard_EXPORT void ShallowDump (const Standard_ExtString Value, Standard_OStre
    s << hex << Value << " Standard_ExtString " << endl; 
 }
 
-Handle_Standard_Type& Standard_ExtString_Type_() 
+const Handle_Standard_Type& Standard_ExtString_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_ExtString",sizeof(Standard_ExtString),0,NULL);
index f3c1a0f..4b99006 100755 (executable)
@@ -15,7 +15,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_ExtString_Type_();
+__Standard_API const Handle_Standard_Type& Standard_ExtString_Type_();
 //class Standard_OStream;
 //void ShallowDump (const Standard_ExtString, Standard_OStream& );
 //============================================================================
index f12cb3e..455b093 100755 (executable)
@@ -2,7 +2,7 @@
 #include <Standard_IStream.hxx>
 #include <Standard_Type.hxx>
 
-Handle_Standard_Type& Standard_IStream_Type_() 
+const Handle_Standard_Type& Standard_IStream_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_IStream", sizeof(Standard_IStream));
index 5b30672..57c3db6 100755 (executable)
@@ -9,7 +9,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_IStream_Type_();
+__Standard_API const Handle_Standard_Type& Standard_IStream_Type_();
 
 #define Standard_IStream istream
 
index 94aa93d..961169a 100755 (executable)
@@ -13,7 +13,7 @@
 // ------------------------------------------------------------------
 // CharToInt : Converts a character in an integer value
 // ------------------------------------------------------------------
-Handle_Standard_Type& Standard_Integer_Type_() 
+const Handle_Standard_Type& Standard_Integer_Type_() 
 {
   static Handle_Standard_Type _aType = new 
     Standard_Type("Standard_Integer",sizeof(Standard_Integer),0,NULL);
index a06f710..dc80011 100755 (executable)
@@ -11,7 +11,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_Integer_Type_();
+__Standard_API const Handle_Standard_Type& Standard_Integer_Type_();
 // ===============================================
 // Methods from Standard_Entity class which are redefined:  
 //    - Hascode
index 325564a..1b75362 100755 (executable)
@@ -2,7 +2,7 @@
 #include <Standard_OStream.hxx>
 #include <Standard_Type.hxx>
 
-Handle_Standard_Type& Standard_OStream_Type_() 
+const Handle_Standard_Type& Standard_OStream_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_OStream", sizeof(Standard_OStream));
index 4237515..2c3ad60 100755 (executable)
@@ -10,7 +10,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_OStream_Type_();
+__Standard_API const Handle_Standard_Type& Standard_OStream_Type_();
 
 typedef ostream Standard_OStream;
 
index 5f6c4ec..d23ebd5 100755 (executable)
@@ -13,7 +13,7 @@
 //
 // The Initialization of the Standard_Persistent variables
 //
-Handle_Standard_Type& Standard_Persistent_Type_() 
+const Handle_Standard_Type& Standard_Persistent_Type_() 
 {
   static const Handle_Standard_Type _Ancestors[]={NULL};
   static Handle_Standard_Type _aType 
index 3e4d4e7..cc8e687 100755 (executable)
@@ -19,7 +19,7 @@ class Standard_Type;
 class Storage_stCONSTclCOM;
 Standard_EXPORT Standard_Address StandardCSFDB_Allocate(const Standard_Size);
 Standard_EXPORT void StandardCSFDB_Free(Standard_Address&);
-Standard_EXPORT Handle_Standard_Type& Standard_Persistent_Type_();
+Standard_EXPORT const Handle_Standard_Type& Standard_Persistent_Type_();
 
 class Standard_Persistent
 {
index a777a8d..1239cca 100755 (executable)
@@ -11,7 +11,7 @@
 #include <Standard_OStream.hxx>
 #endif
 
-Handle_Standard_Type& Standard_Real_Type_() 
+const Handle_Standard_Type& Standard_Real_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_Real",sizeof(Standard_Real),0,NULL);
index cbda7ec..c2d06f1 100755 (executable)
@@ -17,7 +17,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_Real_Type_();
+__Standard_API const Handle_Standard_Type& Standard_Real_Type_();
 
 // ===============================================
 // Methods from Standard_Entity class which are redefined:  
index 410c29a..9b30987 100755 (executable)
@@ -7,7 +7,7 @@
 // now with these two proto, we don't need the include of Standard_Persistent
 //
 class Handle(Standard_Persistent);
-Handle_Standard_Type &Standard_Persistent_Type_();
+const Handle_Standard_Type &Standard_Persistent_Type_();
 
 //============================================================================
 void ShallowDump(const Handle(Standard_Persistent)& me, Standard_OStream &aOut)
index 654e1ab..7c421e1 100755 (executable)
@@ -10,7 +10,7 @@
 #include <Standard_OStream.hxx>
 #endif
 
-Handle_Standard_Type& Standard_ShortReal_Type_() 
+const Handle_Standard_Type& Standard_ShortReal_Type_() 
 {
   static Handle_Standard_Type _aType = 
     new Standard_Type("Standard_ShortReal",sizeof(Standard_ShortReal),0,NULL);
index ed7c7d8..9c4995b 100755 (executable)
@@ -14,7 +14,7 @@
 
 class Handle_Standard_Type;
 
-__Standard_API Handle_Standard_Type& Standard_ShortReal_Type_();
+__Standard_API const Handle_Standard_Type& Standard_ShortReal_Type_();
 //class Standard_OStream;
 //void ShallowDump (const Standard_ShortReal, Standard_OStream& );