Start cleaning of files CBotFileUtils.h and CBotFileUtils.cpp. Pass CBotTypResult parameter as reference.

dev-time-step
Grunaka 2015-11-22 18:59:01 +01:00
parent 5c7a665639
commit fa9dc0dace
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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);