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();
|
int typ = type.GetType();
|
||||||
if ( typ == CBotTypIntrinsic ) typ = CBotTypClass;
|
if ( typ == CBotTypIntrinsic ) typ = CBotTypClass;
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// Modules inlcude
|
// Modules inlcude
|
||||||
#include "CBotTypResult.h"
|
|
||||||
|
|
||||||
// Local include
|
// Local include
|
||||||
|
|
||||||
|
@ -30,6 +29,7 @@
|
||||||
// Forward declaration
|
// Forward declaration
|
||||||
class CBotVar;
|
class CBotVar;
|
||||||
class CBotString;
|
class CBotString;
|
||||||
|
class CBotTypResult;
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// routines for file management (* FILE)
|
// routines for file management (* FILE)
|
||||||
|
@ -145,7 +145,7 @@ bool ReadString(FILE* pf, CBotString& s);
|
||||||
* \param type
|
* \param type
|
||||||
* \return
|
* \return
|
||||||
*/
|
*/
|
||||||
bool WriteType(FILE* pf, CBotTypResult type);
|
bool WriteType(FILE* pf, const CBotTypResult &type);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief ReadType
|
* \brief ReadType
|
||||||
|
|
Loading…
Reference in New Issue