mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0022797: Returning type Handle(Standard_Type)& should be changed to const Handle(Standard_Type)&.
This commit is contained in:
@@ -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);
|
||||
|
@@ -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& );
|
||||
//============================================================================
|
||||
|
@@ -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);
|
||||
|
@@ -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& );
|
||||
// ===============================================
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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& );
|
||||
|
@@ -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),
|
||||
|
@@ -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& );
|
||||
// =====================================
|
||||
|
@@ -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);
|
||||
|
@@ -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& );
|
||||
//============================================================================
|
||||
|
@@ -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));
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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
|
||||
|
@@ -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));
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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);
|
||||
|
@@ -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:
|
||||
|
@@ -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)
|
||||
|
@@ -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);
|
||||
|
@@ -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& );
|
||||
|
||||
|
Reference in New Issue
Block a user