Skip to content

Commit bbf0939

Browse files
committed
[ZH] Fix dependent name errors for Zero Hour build (#426)
1 parent be10065 commit bbf0939

File tree

33 files changed

+93
-46
lines changed

33 files changed

+93
-46
lines changed

GeneralsMD/Code/GameEngine/Include/Common/SparseMatchFinder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class SparseMatchFinder
131131
AsciiString curBestMatchStr, dupMatchStr;
132132
#endif
133133

134-
for (std::vector<MATCHABLE>::const_iterator it = v.begin(); it != v.end(); ++it)
134+
for (typename std::vector<MATCHABLE>::const_iterator it = v.begin(); it != v.end(); ++it)
135135
{
136136
for (Int i = it->getConditionsYesCount()-1; i >= 0; --i)
137137
{
@@ -197,7 +197,7 @@ class SparseMatchFinder
197197
//-------------------------------------------------------------------------------------------------
198198
const MATCHABLE* findBestInfo(const std::vector<MATCHABLE>& v, const BITSET& bits) const
199199
{
200-
MatchMap::const_iterator it = m_bestMatches.find(bits);
200+
typename MatchMap::const_iterator it = m_bestMatches.find(bits);
201201

202202
const MATCHABLE *first = NULL;
203203
if (it != m_bestMatches.end())

GeneralsMD/Code/GameEngine/Include/Common/ThingTemplate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class ModuleInfo
279279
ModuleInfo() { }
280280

281281
void addModuleInfo( ThingTemplate *thingTemplate, const AsciiString& name, const AsciiString& moduleTag, const ModuleData* data, Int interfaceMask, Bool inheritable, Bool overrideableByLikeKind = FALSE );
282-
const ModuleInfo::Nugget *ModuleInfo::getNuggetWithTag( const AsciiString& tag ) const;
282+
const ModuleInfo::Nugget *getNuggetWithTag( const AsciiString& tag ) const;
283283

284284
Int getCount() const
285285
{

GeneralsMD/Code/GameEngine/Include/GameClient/CommandXlat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ enum FilterModes
116116
class PickAndPlayInfo
117117
{
118118
public:
119-
PickAndPlayInfo::PickAndPlayInfo(); //INITIALIZE THE CONSTRUCTOR IN CPP
119+
PickAndPlayInfo(); //INITIALIZE THE CONSTRUCTOR IN CPP
120120

121121
Bool m_air; //Are we attacking an airborned target?
122122
Drawable *m_drawTarget; //Do we have an override draw target?

GeneralsMD/Code/GameEngine/Include/GameLogic/Module/ChinookAIUpdate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class ChinookAIUpdate : public SupplyTruckAIUpdate
110110
void recordOriginalPosition( const Coord3D &pos ) { m_originalPos.set( &pos ); }
111111
const Coord3D* getOriginalPosition() const { return &m_originalPos; }
112112

113-
Int ChinookAIUpdate::getUpgradedSupplyBoost() const;
113+
Int getUpgradedSupplyBoost() const;
114114

115115
protected:
116116

GeneralsMD/Code/GameEngine/Include/GameLogic/Module/FlightDeckBehavior.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ enum
5050

5151
struct RunwayDefinition
5252
{
53-
RunwayDefinition::RunwayDefinition()
53+
RunwayDefinition()
5454
{
5555
m_catapultParticleSystem = NULL;
5656
}

GeneralsMD/Code/GameEngine/Include/GameLogic/Object.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ class Object : public Thing, public Snapshot
330330
SpecialPowerUpdateInterface* findSpecialPowerWithOverridableDestinationActive( SpecialPowerType type = SPECIAL_INVALID ) const;
331331
SpecialPowerUpdateInterface* findSpecialPowerWithOverridableDestination( SpecialPowerType type = SPECIAL_INVALID ) const;
332332

333-
CountermeasuresBehaviorInterface* Object::getCountermeasuresBehaviorInterface();
334-
const CountermeasuresBehaviorInterface* Object::getCountermeasuresBehaviorInterface() const;
333+
CountermeasuresBehaviorInterface* getCountermeasuresBehaviorInterface();
334+
const CountermeasuresBehaviorInterface* getCountermeasuresBehaviorInterface() const;
335335

336336
inline ObjectStatusMaskType getStatusBits() const { return m_status; }
337337
inline Bool testStatus( ObjectStatusTypes bit ) const { return m_status.test( bit ); }
@@ -467,7 +467,7 @@ class Object : public Thing, public Snapshot
467467
void setCommandSetStringOverride( AsciiString newCommandSetString ) { m_commandSetStringOverride = newCommandSetString; }
468468

469469
/// People are faking their commandsets, and, Surprise!, they are authoritative. Challenge everything.
470-
Bool Object::canProduceUpgrade( const UpgradeTemplate *upgrade );
470+
Bool canProduceUpgrade( const UpgradeTemplate *upgrade );
471471

472472

473473
// Weapons & Damage -------------------------------------------------------------------------------------------------

GeneralsMD/Code/GameEngine/Include/GameLogic/PartitionManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ class PartitionManager : public SubsystemInterface, public Snapshot
12641264
This is an internal function that is used to implement the public
12651265
getClosestObject and iterateObjects calls.
12661266
*/
1267-
Object *PartitionManager::getClosestObjects(
1267+
Object *getClosestObjects(
12681268
const Object *obj,
12691269
const Coord3D *pos,
12701270
Real maxDist,

GeneralsMD/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptConditions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ namespace rts
9191
T sum(std::vector<T>& vecOfValues )
9292
{
9393
T retVal = 0;
94-
std::vector<T>::iterator it;
94+
typename std::vector<T>::iterator it;
9595
for (it = vecOfValues.begin(); it != vecOfValues.end(); ++it) {
9696
retVal += (*it);
9797
}

GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DBufferManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ class W3DBufferManager
135135
void releaseSlot(W3DIndexBufferSlot *vbSlot); ///<return slot to pool
136136
void freeAllSlots(void); ///<release all slots to pool.
137137
void freeAllBuffers(void); ///<release all vertex buffers to pool.
138-
void W3DBufferManager::ReleaseResources(void); ///<release D3D/W3D resources.
139-
Bool W3DBufferManager::ReAcquireResources(void); ///<reaquire D3D/W3D resources.
138+
void ReleaseResources(void); ///<release D3D/W3D resources.
139+
Bool ReAcquireResources(void); ///<reaquire D3D/W3D resources.
140140
///allows iterating over vertex buffers used by manager. Input of NULL to get first.
141141
W3DVertexBuffer *getNextVertexBuffer(W3DVertexBuffer *pVb, VBM_FVF_TYPES type)
142142
{ if (pVb == NULL)

GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DWater.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ class WaterRenderObjClass : public Snapshot,
258258
void cleanupJbaWaterShader(void);
259259

260260
//Methods used for GeForce3 specific water
261-
HRESULT WaterRenderObjClass::generateIndexBuffer(int sizeX, int sizeY); ///<Generate static index buufer
262-
HRESULT WaterRenderObjClass::generateVertexBuffer( Int sizeX, Int sizeY, Int vertexSize, Bool doFill);///<Generate static vertex buffer
261+
HRESULT generateIndexBuffer(int sizeX, int sizeY); ///<Generate static index buufer
262+
HRESULT generateVertexBuffer( Int sizeX, Int sizeY, Int vertexSize, Bool doFill);///<Generate static vertex buffer
263263

264264
// snapshot methods for save/load
265265
virtual void crc( Xfer *xfer );
@@ -268,7 +268,7 @@ class WaterRenderObjClass : public Snapshot,
268268

269269
};
270270

271-
//Public inline function declerations
271+
//Public inline function declarations
272272
inline Bool WaterRenderObjClass::worldToGridSpace(Real worldX, Real worldY, Real &gridX, Real &gridY)
273273
{
274274
Real dx,dy;

0 commit comments

Comments
 (0)