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(); int typ = type.GetType();
if ( typ == CBotTypIntrinsic ) typ = CBotTypClass; if ( typ == CBotTypIntrinsic ) typ = CBotTypClass;

View File

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