Start cleaning of files CBotFileUtils.h and CBotFileUtils.cpp. Pass CBotTypResult parameter as reference.
parent
5c7a665639
commit
fa9dc0dace
|
@ -124,7 +124,7 @@ bool ReadString(FILE* pf, CBotString& s)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool WriteType(FILE* pf, CBotTypResult type)
|
||||
bool WriteType(FILE* pf, const CBotTypResult &type)
|
||||
{
|
||||
int typ = type.GetType();
|
||||
if ( typ == CBotTypIntrinsic ) typ = CBotTypClass;
|
||||
|
@ -144,7 +144,7 @@ bool WriteType(FILE* pf, CBotTypResult type)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ReadType(FILE* pf, CBotTypResult& type)
|
||||
bool ReadType(FILE* pf, CBotTypResult &type)
|
||||
{
|
||||
unsigned short w, ww;
|
||||
if ( !ReadWord(pf, w) ) return false;
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#pragma once
|
||||
|
||||
// Modules inlcude
|
||||
#include "CBotTypResult.h"
|
||||
|
||||
// Local include
|
||||
|
||||
|
@ -30,6 +29,7 @@
|
|||
// Forward declaration
|
||||
class CBotVar;
|
||||
class CBotString;
|
||||
class CBotTypResult;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// routines for file management (* FILE)
|
||||
|
@ -145,7 +145,7 @@ bool ReadString(FILE* pf, CBotString& s);
|
|||
* \param type
|
||||
* \return
|
||||
*/
|
||||
bool WriteType(FILE* pf, CBotTypResult type);
|
||||
bool WriteType(FILE* pf, const CBotTypResult &type);
|
||||
|
||||
/*!
|
||||
* \brief ReadType
|
||||
|
@ -153,4 +153,4 @@ bool WriteType(FILE* pf, CBotTypResult type);
|
|||
* \param type
|
||||
* \return
|
||||
*/
|
||||
bool ReadType(FILE* pf, CBotTypResult& type);
|
||||
bool ReadType(FILE* pf, CBotTypResult &type);
|
||||
|
|
Loading…
Reference in New Issue