Skip to content

Commit 2d200dc

Browse files
committed
[GEN] Fix dependent name errors for Generals build (#484)
1 parent 2e0cff4 commit 2d200dc

File tree

31 files changed

+87
-40
lines changed

31 files changed

+87
-40
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class SparseMatchFinder
109109
AsciiString curBestMatchStr, dupMatchStr;
110110
#endif
111111

112-
for (std::vector<MATCHABLE>::const_iterator it = v.begin(); it != v.end(); ++it)
112+
for (typename std::vector<MATCHABLE>::const_iterator it = v.begin(); it != v.end(); ++it)
113113
{
114114
for (Int i = it->getConditionsYesCount()-1; i >= 0; --i)
115115
{
@@ -175,7 +175,7 @@ class SparseMatchFinder
175175
//-------------------------------------------------------------------------------------------------
176176
const MATCHABLE* findBestInfo(const std::vector<MATCHABLE>& v, const BITSET& bits) const
177177
{
178-
MatchMap::const_iterator it = m_bestMatches.find(bits);
178+
typename MatchMap::const_iterator it = m_bestMatches.find(bits);
179179
if (it != m_bestMatches.end())
180180
{
181181
return (*it).second;

Generals/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);
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
{

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

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class Object : public Thing, public Snapshot
435435
void setCommandSetStringOverride( AsciiString newCommandSetString ) { m_commandSetStringOverride = newCommandSetString; }
436436

437437
/// People are faking their commandsets, and, Suprise!, they are authoritative. Challenge everything.
438-
Bool Object::canProduceUpgrade( const UpgradeTemplate *upgrade );
438+
Bool canProduceUpgrade( const UpgradeTemplate *upgrade );
439439

440440
// Weapons & Damage -------------------------------------------------------------------------------------------------
441441
void reloadAllAmmo(Bool now);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ class PartitionManager : public SubsystemInterface, public Snapshot
12251225
This is an internal function that is used to implement the public
12261226
getClosestObject and iterateObjects calls.
12271227
*/
1228-
Object *PartitionManager::getClosestObjects(
1228+
Object *getClosestObjects(
12291229
const Object *obj,
12301230
const Coord3D *pos,
12311231
Real maxDist,

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

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

Generals/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)

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

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

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

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

268268
};
269269

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

Generals/Code/GameEngineDevice/Include/W3DDevice/GameLogic/W3DGhostObject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ class W3DGhostObjectManager : public GhostObjectManager
8080
virtual void removeGhostObject(GhostObject *mod);
8181
virtual void setLocalPlayerIndex(int index);
8282
virtual void updateOrphanedObjects(int *playerIndexList, int numNonLocalPlayers);
83-
virtual void W3DGhostObjectManager::releasePartitionData(void);
84-
virtual void W3DGhostObjectManager::restorePartitionData(void);
83+
virtual void releasePartitionData(void);
84+
virtual void restorePartitionData(void);
8585

8686
protected:
8787
virtual void crc( Xfer *xfer );

Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/Shadow/W3DVolumetricShadow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ class W3DShadowGeometryMesh
273273
friend class W3DVolumetricShadow;
274274

275275
public:
276-
W3DShadowGeometryMesh::W3DShadowGeometryMesh( void );
277-
W3DShadowGeometryMesh::~W3DShadowGeometryMesh( void );
276+
W3DShadowGeometryMesh( void );
277+
~W3DShadowGeometryMesh( void );
278278

279279
/// @todo: Cache/Store face normals someplace so they are not recomputed when lights move.
280280
Vector3 *GetPolygonNormal (long dwPolyNormId, Vector3 *pvNorm)

0 commit comments

Comments
 (0)