Skip to content

Commit fbb1ca4

Browse files
authored
refactor(utils): Move STLUtils.h to WWLib (#1679)
1 parent 6d10c91 commit fbb1ca4

File tree

10 files changed

+8
-9
lines changed

10 files changed

+8
-9
lines changed

Core/GameEngine/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ set(GAMEENGINE_SRC
114114
# Include/Common/StateMachine.h
115115
# Include/Common/StatsCollector.h
116116
# Include/Common/STLTypedefs.h
117-
Include/Common/STLUtils.h
118117
Include/Common/StreamingArchiveFile.h
119118
# Include/Common/SubsystemInterface.h
120119
# Include/Common/SystemInfo.h

Core/Libraries/Source/WWVegas/WW3D2/rendobj.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ PersistClass * RenderObjPersistFactoryClass::Load(ChunkLoadClass & cload) const
12431243
// if the object we saved didn't have a name, replace it with null
12441244
if (strlen(name) == 0) {
12451245
static int count = 0;
1246-
if ( ++count < 10 ) {
1246+
if ( count++ < 10 ) {
12471247
WWDEBUG_SAY(("RenderObjPersistFactory attempted to load an un-named render object!"));
12481248
WWDEBUG_SAY(("Replacing it with a NULL render object!"));
12491249
}
@@ -1254,7 +1254,7 @@ PersistClass * RenderObjPersistFactoryClass::Load(ChunkLoadClass & cload) const
12541254

12551255
if (new_obj == NULL) {
12561256
static int count = 0;
1257-
if ( ++count < 10 ) {
1257+
if ( count++ < 10 ) {
12581258
WWDEBUG_SAY(("RenderObjPersistFactory failed to create object: %s!!",name));
12591259
WWDEBUG_SAY(("Either the asset for this object is gone or you tried to save a procedural object."));
12601260
WWDEBUG_SAY(("Replacing it with a NULL render object!"));

Core/Libraries/Source/WWVegas/WWAudio/WWAudio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ WWAudioClass::Get_Sound_Buffer (const char *filename, bool is_3d)
372372
buffer = Create_Sound_Buffer (*file, filename, is_3d);
373373
} else {
374374
static int count = 0;
375-
if ( ++count < 10 ) {
375+
if ( count++ < 10 ) {
376376
WWDEBUG_SAY(( "Sound \"%s\" not found", filename ));
377377
}
378378
}
@@ -807,7 +807,7 @@ WWAudioClass::Create_3D_Sound
807807
sound_obj->Set_Buffer (buffer);
808808
} else {
809809
static int count = 0;
810-
if ( ++count < 10 ) {
810+
if ( count++ < 10 ) {
811811
WWDEBUG_SAY(( "Sound File not Found \"%s\"", filename ));
812812
}
813813
}

Core/Libraries/Source/WWVegas/WWLib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ set(WWLIB_SRC
106106
SLNODE.H
107107
stimer.cpp
108108
stimer.h
109+
STLUtils.h
109110
straw.cpp
110111
STRAW.H
111112
stringex.h

Core/Libraries/Source/WWVegas/WWLib/WWCommon.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#pragma once
2020

21+
#include "STLUtils.h"
2122
#include "stringex.h"
2223

2324

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class STLSpecialAlloc;
5858
#include "Common/UnicodeString.h"
5959
#include "Common/GameCommon.h"
6060
#include "Common/GameMemory.h"
61-
#include "Common/STLUtils.h"
6261

6362
//-----------------------------------------------------------------------------
6463

Generals/Code/Libraries/Source/WWVegas/WW3D2/dazzle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ PersistClass * DazzlePersistFactoryClass::Load(ChunkLoadClass & cload) const
13951395
*/
13961396
if (new_obj == NULL) {
13971397
static int count = 0;
1398-
if ( ++count < 10 ) {
1398+
if ( count++ < 10 ) {
13991399
WWDEBUG_SAY(("DazzlePersistFactory failed to create dazzle of type: %s!!",dazzle_type));
14001400
WWDEBUG_SAY(("Replacing it with a NULL render object!"));
14011401
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class STLSpecialAlloc;
5858
#include "Common/UnicodeString.h"
5959
#include "Common/GameCommon.h"
6060
#include "Common/GameMemory.h"
61-
#include "Common/STLUtils.h"
6261

6362
//-----------------------------------------------------------------------------
6463

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/dazzle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ PersistClass * DazzlePersistFactoryClass::Load(ChunkLoadClass & cload) const
14981498
*/
14991499
if (new_obj == NULL) {
15001500
static int count = 0;
1501-
if ( ++count < 10 ) {
1501+
if ( count++ < 10 ) {
15021502
WWDEBUG_SAY(("DazzlePersistFactory failed to create dazzle of type: %s!!",dazzle_type));
15031503
WWDEBUG_SAY(("Replacing it with a NULL render object!"));
15041504
}

0 commit comments

Comments
 (0)