Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit e8c8d25

Browse files
committed
Missing alias qualifiers
1 parent 6a808f5 commit e8c8d25

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

System/ContentFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ namespace RTE {
115115
RTEAssert(pReturnBitmap, "Failed to load datafile object with following path and name:\n\n" + m_DataPath);
116116

117117
// Insert the bitmap into the map, PASSING OVER OWNERSHIP OF THE LOADED DATAFILE
118-
m_sLoadedBitmaps[bitDepth].insert(pair<std::string, BITMAP *>(m_DataPath, pReturnBitmap));
118+
m_sLoadedBitmaps[bitDepth].insert(std::pair<std::string, BITMAP *>(m_DataPath, pReturnBitmap));
119119
}
120120

121121
return pReturnBitmap;
@@ -268,7 +268,7 @@ namespace RTE {
268268
RTEAssert(pReturnSample, "Failed to load datafile object with following path and name:\n\n" + m_DataPath);
269269

270270
// Insert the Sound object into the map, PASSING OVER OWNERSHIP OF THE LOADED DATAFILE
271-
m_sLoadedSamples.insert(pair<std::string, AUDIO_STRUCT *>(m_DataPath, pReturnSample));
271+
m_sLoadedSamples.insert(std::pair<std::string, AUDIO_STRUCT *>(m_DataPath, pReturnSample));
272272
}
273273
return pReturnSample;
274274
}

System/DataModule.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ namespace RTE {
318318
bool foundAny = false;
319319

320320
// Find either the Entity typelist that contains all entities in this DataModule, or the specific class' typelist (which will get all derived classes too)
321-
map<std::string, std::list<std::pair<std::string, Entity *>>>::iterator classItr = m_TypeMap.find((type.empty() || type == "All") ? "Entity" : type);
321+
std::map<std::string, std::list<std::pair<std::string, Entity *>>>::iterator classItr = m_TypeMap.find((type.empty() || type == "All") ? "Entity" : type);
322322

323323
if (classItr != m_TypeMap.end()) {
324324
//RTEAssert(!(type.empty() || type == "All") && !classItr->second.empty(), "DataModule has class entry without instances in its map!?");
@@ -340,7 +340,7 @@ namespace RTE {
340340
return false;
341341
}
342342

343-
map<std::string, std::list<std::pair<std::string, Entity *>>>::iterator classItr = m_TypeMap.find(type);
343+
std::map<std::string, std::list<std::pair<std::string, Entity *>>>::iterator classItr = m_TypeMap.find(type);
344344
if (classItr != m_TypeMap.end()) {
345345
RTEAssert(!classItr->second.empty(), "DataModule has class entry without instances in its map!?");
346346

System/PathFinder.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace RTE {
3333
// Start the column height over at middle of the top node each new column
3434
nodePos.m_Y = static_cast<float>(nodeDimension) / 2.0F;
3535
// Create the new column and fill it out
36-
vector<PathNode *> newColumn;
36+
std::vector<PathNode *> newColumn;
3737
for (int y = 0; y < nodeYCount; ++y) {
3838
// Make sure no cell centers are off the scene (since they can overlap the far edge of the scene)
3939
if (nodePos.m_Y >= sceneHeight) { nodePos.m_Y = sceneHeight - 1; }
@@ -112,7 +112,7 @@ namespace RTE {
112112

113113
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
114114

115-
int PathFinder::CalculatePath(Vector start, Vector end, list<Vector> &pathResult, float &totalCostResult, float digStrength) {
115+
int PathFinder::CalculatePath(Vector start, Vector end, std::list<Vector> &pathResult, float &totalCostResult, float digStrength) {
116116
RTEAssert(m_pPather, "No pather exists, can't calculate the path!");
117117

118118
// Make sure start and end are within scene bounds
@@ -132,14 +132,14 @@ namespace RTE {
132132
m_DigStrength = digStrength;
133133

134134
// Do the actual pathfinding, fetch out the list of states that comprise the best path
135-
vector<void *> statePath;
135+
std::vector<void *> statePath;
136136
int result = m_pPather->Solve((void *)(m_NodeGrid[startNodeX][startNodeY]), (void *)(m_NodeGrid[endNodeX][endNodeY]), &statePath, &totalCostResult);
137137

138138
// We got something back
139139
if (!statePath.empty()) {
140140
// Replace the approximate first point from the pathfound path with the exact starting point
141141
pathResult.push_back(start);
142-
vector<void *>::iterator itr = statePath.begin();
142+
std::vector<void *>::iterator itr = statePath.begin();
143143
itr++;
144144

145145
// Convert from a list of state void pointers to a list of scene position vectors
@@ -180,10 +180,10 @@ namespace RTE {
180180

181181
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
182182

183-
void PathFinder::RecalculateAreaCosts(const list<Box> &boxList) {
183+
void PathFinder::RecalculateAreaCosts(const std::list<Box> &boxList) {
184184
// Go through all the boxes and see if any of the node centers are inside each
185185
Box box;
186-
for (list<Box>::const_iterator bItr = boxList.begin(); bItr != boxList.end(); bItr++) {
186+
for (std::list<Box>::const_iterator bItr = boxList.begin(); bItr != boxList.end(); bItr++) {
187187
// Get the current area box and make sure it's unflipped
188188
box = (*bItr);
189189
box.Unflip();

System/RTETools.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ namespace RTE {
116116

117117
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
118118

119-
void OpenBrowserToURL(string goToURL) {
119+
void OpenBrowserToURL(std::string goToURL) {
120120
system(std::string("start ").append(goToURL).c_str());
121121
}
122122

@@ -132,7 +132,7 @@ namespace RTE {
132132
std::string line;
133133
std::string::size_type pos = 0;
134134
std::string::size_type endPos = 0;
135-
std::string::size_type commentPos = string::npos;
135+
std::string::size_type commentPos = std::string::npos;
136136
bool blockCommented = false;
137137

138138
while (!pFile->eof()) {

System/Reader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace RTE {
6666
void Reader::Destroy(bool notInherited) {
6767
delete m_pStream;
6868
// Delete all the streams in the stream stack
69-
for (list<StreamInfo>::iterator itr = m_StreamStack.begin(); itr != m_StreamStack.end(); ++itr) {
69+
for (std::list<StreamInfo>::iterator itr = m_StreamStack.begin(); itr != m_StreamStack.end(); ++itr) {
7070
delete (*itr).m_pStream;
7171
}
7272
Clear();

System/Serializable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace RTE {
4141

4242
// This is the engine for processing all properties of this Serializable upon read creation.
4343
while (reader.NextProperty()) {
44-
string propName = reader.ReadPropName();
44+
std::string propName = reader.ReadPropName();
4545
// We need to check if propName != "" because ReadPropName may return "" when it reads an InlcudeFile without any properties,
4646
// in a case they are all commented out or it's the last line in file.
4747
// Also ReadModuleProperty may return "" when it skips IncludeFile till the end of file.

System/Vector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ namespace RTE {
150150

151151
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
152152

153-
Vector & Vector::operator=(const deque<Vector> &rhs) {
153+
Vector & Vector::operator=(const std::deque<Vector> &rhs) {
154154
Clear();
155155
if (rhs.empty()) { return *this; }
156-
for (deque<Vector>::const_iterator itr = rhs.begin(); itr != rhs.end(); ++itr) {
156+
for (std::deque<Vector>::const_iterator itr = rhs.begin(); itr != rhs.end(); ++itr) {
157157
*this += *itr;
158158
}
159159
*this /= rhs.size();

0 commit comments

Comments
 (0)