mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024567: Coding rules - eliminate GCC warning -Wignored-qualifiers
Redundant const qualifiers of return types of functions returning values are removed
This commit is contained in:
@@ -150,7 +150,7 @@ Storage_Error FSD_BinaryFile::Close()
|
||||
//purpose : ------------------ PROTECTED
|
||||
//=======================================================================
|
||||
|
||||
const Standard_CString FSD_BinaryFile::MagicNumber()
|
||||
Standard_CString FSD_BinaryFile::MagicNumber()
|
||||
{
|
||||
return MAGICNUMBER;
|
||||
}
|
||||
|
@@ -306,29 +306,18 @@ protected:
|
||||
//! write string at the current position.
|
||||
Standard_EXPORT void WriteExtendedString (const TCollection_ExtendedString& buffer);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
void WriteHeader();
|
||||
|
||||
void ReadHeader();
|
||||
|
||||
static Standard_CString MagicNumber();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_EXPORT void WriteHeader();
|
||||
|
||||
Standard_EXPORT void ReadHeader();
|
||||
|
||||
Standard_EXPORT static const Standard_CString MagicNumber();
|
||||
|
||||
|
||||
FSD_BStream myStream;
|
||||
FSD_FileHeader myHeader;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _FSD_BinaryFile_HeaderFile
|
||||
|
@@ -163,7 +163,7 @@ Storage_Error FSD_CmpFile::Close()
|
||||
//purpose : ------------------ PROTECTED
|
||||
//=======================================================================
|
||||
|
||||
const Standard_CString FSD_CmpFile::MagicNumber()
|
||||
Standard_CString FSD_CmpFile::MagicNumber()
|
||||
{
|
||||
return MAGICNUMBER;
|
||||
}
|
||||
|
@@ -279,26 +279,15 @@ protected:
|
||||
|
||||
Standard_EXPORT Storage_Error FindTag (const Standard_CString aTag);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
static Standard_CString MagicNumber();
|
||||
|
||||
void RaiseError (const Handle(Standard_Type)& theFailure);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_EXPORT static const Standard_CString MagicNumber();
|
||||
|
||||
Standard_EXPORT void RaiseError (const Handle(Standard_Type)& theFailure);
|
||||
|
||||
|
||||
FSD_FStream myStream;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _FSD_CmpFile_HeaderFile
|
||||
|
@@ -154,7 +154,7 @@ Storage_Error FSD_File::Close()
|
||||
//purpose : ------------------ PROTECTED
|
||||
//=======================================================================
|
||||
|
||||
const Standard_CString FSD_File::MagicNumber()
|
||||
Standard_CString FSD_File::MagicNumber()
|
||||
{
|
||||
return MAGICNUMBER;
|
||||
}
|
||||
|
@@ -297,24 +297,13 @@ protected:
|
||||
|
||||
Standard_EXPORT Storage_Error FindTag (const Standard_CString aTag);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
static Standard_CString MagicNumber();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_EXPORT static const Standard_CString MagicNumber();
|
||||
|
||||
|
||||
FSD_FStream myStream;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _FSD_File_HeaderFile
|
||||
|
Reference in New Issue
Block a user