Skip to content

Commit f83b376

Browse files
authored
refactor: Remove superfluous extern keyword from variable declarations (#2522)
1 parent 0508be4 commit f83b376

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

Core/GameEngine/Source/GameNetwork/GameSpy/PeerDefs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949

5050
GameSpyInfoInterface *TheGameSpyInfo = nullptr;
51-
extern GameSpyStagingRoom *TheGameSpyGame = nullptr;
51+
GameSpyStagingRoom *TheGameSpyGame = nullptr;
5252
void deleteNotificationBox();
5353

5454
bool AsciiComparator::operator()(AsciiString s1, AsciiString s2) const

Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DFileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void GameFileClass::Close()
402402
///////////////////////////////////////////////////////////////////////////////////////////////////
403403
// W3DFileSystem Class ////////////////////////////////////////////////////////////////////////////
404404
///////////////////////////////////////////////////////////////////////////////////////////////////
405-
extern W3DFileSystem *TheW3DFileSystem = nullptr;
405+
W3DFileSystem *TheW3DFileSystem = nullptr;
406406

407407
//-------------------------------------------------------------------------------------------------
408408
/** Constructor. Creating an instance of this class overrides the default

Generals/Code/Tools/WorldBuilder/src/LayersList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,4 +870,4 @@ END_MESSAGE_MAP()
870870
std::string LayersList::TheDefaultLayerName = "Default Layer";
871871
std::string LayersList::TheDefaultNewLayerName = "New Layer";
872872
const std::string LayersList::TheUnmutableDefaultLayerName = "Default Layer";
873-
extern LayersList *TheLayersList = nullptr;
873+
LayersList *TheLayersList = nullptr;

Generals/Code/Tools/WorldBuilder/src/RampOptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void RampOptions::OnWidthChange()
7979
m_rampWidth = atof(str.GetBuffer(0));
8080
}
8181

82-
extern RampOptions* TheRampOptions = nullptr;
82+
RampOptions* TheRampOptions = nullptr;
8383

8484
BEGIN_MESSAGE_MAP(RampOptions, COptionsPanel)
8585
ON_BN_CLICKED(IDC_RO_APPLY, OnApply)

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DFileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ void GameFileClass::Close()
429429
///////////////////////////////////////////////////////////////////////////////////////////////////
430430
// W3DFileSystem Class ////////////////////////////////////////////////////////////////////////////
431431
///////////////////////////////////////////////////////////////////////////////////////////////////
432-
extern W3DFileSystem *TheW3DFileSystem = nullptr;
432+
W3DFileSystem *TheW3DFileSystem = nullptr;
433433

434434
//-------------------------------------------------------------------------------------------------
435435
/** Constructor. Creating an instance of this class overrides the default

GeneralsMD/Code/Tools/WorldBuilder/src/LayersList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,4 +1343,4 @@ std::string LayersList::TheDefaultNewLayerName = "New Layer";
13431343
std::string LayersList::ThePolygonTriggerLayerName = "Default Trigger Layer";
13441344
std::string LayersList::TheActiveLayerName;
13451345
const std::string LayersList::TheUnmutableDefaultLayerName = "Default Object Layer";
1346-
extern LayersList *TheLayersList = nullptr;
1346+
LayersList *TheLayersList = nullptr;

GeneralsMD/Code/Tools/WorldBuilder/src/RampOptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void RampOptions::OnWidthChange()
7979
m_rampWidth = atof(str.GetBuffer(0));
8080
}
8181

82-
extern RampOptions* TheRampOptions = nullptr;
82+
RampOptions* TheRampOptions = nullptr;
8383

8484
BEGIN_MESSAGE_MAP(RampOptions, COptionsPanel)
8585
ON_BN_CLICKED(IDC_RO_APPLY, OnApply)

0 commit comments

Comments
 (0)