Skip to content

Commit feca69a

Browse files
authored
refactor: Remove redundant void argument from functions (2) (TheSuperHackers#2609)
1 parent 65e52a2 commit feca69a

441 files changed

Lines changed: 2909 additions & 2909 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Core/GameEngine/Include/GameClient/View.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ class ViewDummy : public View
408408
}
409409
virtual void screenToTerrain( const ICoord2D *screen, Coord3D *world ) override {}
410410
virtual void screenToWorldAtZ( const ICoord2D *s, Coord3D *w, Real z ) override {}
411-
virtual void drawView( void ) override {}
412-
virtual void updateView(void) override {}
411+
virtual void drawView() override {}
412+
virtual void updateView() override {}
413413
virtual void stepView() override {}
414414
virtual void setGuardBandBias( const Coord2D *gb ) override {}
415415
virtual Bool isDoingScriptedCamera() override { return false; }

Core/GameEngine/Source/GameNetwork/GameSpy/Thread/PeerThread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ void GameSpyPeerMessageQueue::addRequest( const PeerRequest& req )
586586
m_requests.push(req);
587587
}
588588

589-
//PeerRequest GameSpyPeerMessageQueue::getRequest( void )
589+
//PeerRequest GameSpyPeerMessageQueue::getRequest()
590590
Bool GameSpyPeerMessageQueue::getRequest( PeerRequest& req )
591591
{
592592
MutexClass::LockClass m(m_requestMutex, 0);
@@ -612,7 +612,7 @@ void GameSpyPeerMessageQueue::addResponse( const PeerResponse& resp )
612612
m_responses.push(resp);
613613
}
614614

615-
//PeerResponse GameSpyPeerMessageQueue::getResponse( void )
615+
//PeerResponse GameSpyPeerMessageQueue::getResponse()
616616
Bool GameSpyPeerMessageQueue::getResponse( PeerResponse& resp )
617617
{
618618
MutexClass::LockClass m(m_responseMutex, 0);

Core/GameEngine/Source/GameNetwork/GameSpy/Thread/PingThread.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void PingThreadClass::Thread_Function()
333333
//-------------------------------------------------------------------------
334334
//-------------------------------------------------------------------------
335335

336-
HANDLE WINAPI IcmpCreateFile(VOID); /* INVALID_HANDLE_VALUE on error */
336+
HANDLE WINAPI IcmpCreateFile(); /* INVALID_HANDLE_VALUE on error */
337337
BOOL WINAPI IcmpCloseHandle(HANDLE IcmpHandle); /* FALSE on error */
338338

339339
/* Note 2: For the most part, you can refer to RFC 791 for detials
@@ -442,7 +442,7 @@ Int PingThreadClass::doPing(UnsignedInt IP, Int timeout)
442442
char achRepData[sizeof(ICMPECHO) + BUFSIZE];
443443

444444

445-
HANDLE ( WINAPI *lpfnIcmpCreateFile )( VOID ) = nullptr;
445+
HANDLE ( WINAPI *lpfnIcmpCreateFile )() = nullptr;
446446
BOOL ( WINAPI *lpfnIcmpCloseHandle )( HANDLE ) = nullptr;
447447
DWORD (WINAPI *lpfnIcmpSendEcho)(HANDLE, DWORD, LPVOID, WORD, LPVOID,
448448
LPVOID, DWORD, DWORD) = nullptr;

Core/GameEngine/Source/GameNetwork/WOLBrowser/WebBrowser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ STDMETHODIMP WebBrowser::QueryInterface(REFIID iid, void** ppv) IUNKNOWN_NOEXCEP
265265
*
266266
******************************************************************************/
267267

268-
ULONG STDMETHODCALLTYPE WebBrowser::AddRef(void) IUNKNOWN_NOEXCEPT
268+
ULONG STDMETHODCALLTYPE WebBrowser::AddRef() IUNKNOWN_NOEXCEPT
269269
{
270270
return ++mRefCount;
271271
}
@@ -285,7 +285,7 @@ ULONG STDMETHODCALLTYPE WebBrowser::AddRef(void) IUNKNOWN_NOEXCEPT
285285
*
286286
******************************************************************************/
287287

288-
ULONG STDMETHODCALLTYPE WebBrowser::Release(void) IUNKNOWN_NOEXCEPT
288+
ULONG STDMETHODCALLTYPE WebBrowser::Release() IUNKNOWN_NOEXCEPT
289289
{
290290
DEBUG_ASSERTCRASH(mRefCount > 0, ("Negative reference count"));
291291
--mRefCount;

Core/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2530,7 +2530,7 @@ void W3DView::initHeightForMap()
25302530

25312531
//-------------------------------------------------------------------------------------------------
25322532
//-------------------------------------------------------------------------------------------------
2533-
void W3DView::resetPivotToGround( void )
2533+
void W3DView::resetPivotToGround()
25342534
{
25352535
m_groundLevel = getHeightAroundPos(m_pos.x, m_pos.y);
25362536
m_cameraAreaConstraintsValid = false; // possible ground level change invalidates camera constraints

Core/Libraries/Source/WWVegas/WWDownload/FTP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ HRESULT Cftp::LoginToServer( LPCSTR szUserName, LPCSTR szPassword )
555555

556556
/*$_Function****************************************************************
557557
* $_Name :
558-
* STDMETHOD Cftp::LogoffFromServer( void )
558+
* STDMETHOD Cftp::LogoffFromServer()
559559
*
560560
* $_Description :
561561
* Logs off from a server. LoginToServer() must have succeeded before this
@@ -1069,7 +1069,7 @@ unsigned long MyIPAddress( int sockfd )
10691069

10701070
/*$_Function****************************************************************
10711071
* $_Name :
1072-
* int Cftp::SendNewPort( void )
1072+
* int Cftp::SendNewPort()
10731073
*
10741074
* $_Description :
10751075
* Sends a PORT command to the server specifying a new ephemeral port to

Core/Tools/DebugWindow/DebugWindow.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ CDebugWindowApp::CDebugWindowApp()
7676
m_DialogWindow = nullptr;
7777
}
7878

79-
DebugWindowDialog* CDebugWindowApp::GetDialogWindow(void)
79+
DebugWindowDialog* CDebugWindowApp::GetDialogWindow()
8080
{
8181
return m_DialogWindow;
8282
}
@@ -96,7 +96,7 @@ CDebugWindowApp::~CDebugWindowApp()
9696

9797
CDebugWindowApp theApp;
9898

99-
void __declspec(dllexport) CreateDebugDialog(void)
99+
void __declspec(dllexport) CreateDebugDialog()
100100
{
101101
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
102102

@@ -112,7 +112,7 @@ void __declspec(dllexport) CreateDebugDialog(void)
112112
theApp.SetDialogWindow(tmpWnd);
113113
}
114114

115-
void __declspec(dllexport) DestroyDebugDialog(void)
115+
void __declspec(dllexport) DestroyDebugDialog()
116116
{
117117
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
118118
DebugWindowDialog* tmpWnd = theApp.GetDialogWindow();
@@ -125,7 +125,7 @@ void __declspec(dllexport) DestroyDebugDialog(void)
125125

126126
}
127127

128-
bool __declspec(dllexport) CanAppContinue(void)
128+
bool __declspec(dllexport) CanAppContinue()
129129
{
130130
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
131131

@@ -138,7 +138,7 @@ bool __declspec(dllexport) CanAppContinue(void)
138138
return pDbg->CanProceed();
139139
}
140140

141-
void __declspec(dllexport) ForceAppContinue(void)
141+
void __declspec(dllexport) ForceAppContinue()
142142
{
143143
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
144144

@@ -151,7 +151,7 @@ void __declspec(dllexport) ForceAppContinue(void)
151151
pDbg->ForceContinue();
152152
}
153153

154-
bool __declspec(dllexport) RunAppFast(void)
154+
bool __declspec(dllexport) RunAppFast()
155155
{
156156
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
157157

Core/Tools/DebugWindow/DebugWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CDebugWindowApp : public CWinApp
3939
public:
4040
CDebugWindowApp();
4141
~CDebugWindowApp();
42-
DebugWindowDialog* GetDialogWindow(void);
42+
DebugWindowDialog* GetDialogWindow();
4343
void SetDialogWindow(DebugWindowDialog* pWnd);
4444

4545
protected:

Core/Tools/DebugWindow/DebugWindowDialog.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ int DebugWindowDialog::OnCreate(LPCREATESTRUCT lpCreateStruct)
3333
return CDialog::OnCreate(lpCreateStruct);
3434
}
3535

36-
HWND DebugWindowDialog::GetMainWndHWND(void)
36+
HWND DebugWindowDialog::GetMainWndHWND()
3737
{
3838
return mMainWndHWND;
3939
}
4040

41-
void DebugWindowDialog::ForcePause(void)
41+
void DebugWindowDialog::ForcePause()
4242
{
4343
mNumberOfStepsAllowed = 0;
4444
_UpdatePauseButton();
4545
}
4646

47-
void DebugWindowDialog::ForceContinue(void)
47+
void DebugWindowDialog::ForceContinue()
4848
{
4949
mNumberOfStepsAllowed = -1;
5050
_UpdatePauseButton();
@@ -88,7 +88,7 @@ void DebugWindowDialog::OnClearWindows()
8888
_RebuildVarsString();
8989
}
9090

91-
bool DebugWindowDialog::CanProceed(void)
91+
bool DebugWindowDialog::CanProceed()
9292
{
9393
if (mNumberOfStepsAllowed < 0) {
9494
return true;
@@ -104,7 +104,7 @@ bool DebugWindowDialog::CanProceed(void)
104104
return true;
105105
}
106106

107-
bool DebugWindowDialog::RunAppFast(void)
107+
bool DebugWindowDialog::RunAppFast()
108108
{
109109
return mRunFast;
110110
}
@@ -147,7 +147,7 @@ void DebugWindowDialog::SetFrameNumber(int frameNumber)
147147
}
148148
}
149149

150-
void DebugWindowDialog::_RebuildVarsString(void)
150+
void DebugWindowDialog::_RebuildVarsString()
151151
{
152152
int cursorPosBeg, cursorPosEnd;
153153
((CEdit*)GetDlgItem(IDC_Variables))->GetSel(cursorPosBeg, cursorPosEnd);
@@ -168,7 +168,7 @@ void DebugWindowDialog::_RebuildVarsString(void)
168168
((CEdit*)GetDlgItem(IDC_Variables))->GetSel(cursorPosBeg, cursorPosEnd);
169169
}
170170

171-
void DebugWindowDialog::_RebuildMesgString(void)
171+
void DebugWindowDialog::_RebuildMesgString()
172172
{
173173
mMessagesString = "";
174174

@@ -183,7 +183,7 @@ void DebugWindowDialog::_RebuildMesgString(void)
183183
((CEdit*)GetDlgItem(IDC_Messages))->SetSel(mMessagesString.length(), mMessagesString.length(), false);
184184
}
185185

186-
void DebugWindowDialog::_UpdatePauseButton(void)
186+
void DebugWindowDialog::_UpdatePauseButton()
187187
{
188188
// huh huh huhuh he said pButt
189189
CButton* pButt = (CButton*) GetDlgItem(IDC_Pause);

Core/Tools/DebugWindow/DebugWindowDialog.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ class DebugWindowDialog : public CDialog
3636
enum {IDD = IDD_DebugWindow};
3737
DebugWindowDialog(UINT nIDTemplate = DebugWindowDialog::IDD, CWnd* pParentWnd = nullptr);
3838

39-
bool CanProceed(void);
40-
bool RunAppFast(void);
39+
bool CanProceed();
40+
bool RunAppFast();
4141
void AppendMessage(const std::string& messageToAppend);
4242
void AdjustVariable(const std::string& varName, const std::string& varValue);
4343
void SetFrameNumber(int frameNumber);
44-
HWND GetMainWndHWND(void);
45-
void ForcePause(void);
46-
void ForceContinue(void);
44+
HWND GetMainWndHWND();
45+
void ForcePause();
46+
void ForceContinue();
4747

4848
// This var shouldn't be here, but honsestly...
4949
protected:
@@ -62,9 +62,9 @@ class DebugWindowDialog : public CDialog
6262
VecPairString mVariables;
6363
VecString mMessages;
6464

65-
void _RebuildVarsString(void);
66-
void _RebuildMesgString(void);
67-
void _UpdatePauseButton(void);
65+
void _RebuildVarsString();
66+
void _RebuildMesgString();
67+
void _UpdatePauseButton();
6868

6969
protected:
7070
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

0 commit comments

Comments
 (0)