Skip to content

Commit ae187ba

Browse files
ejaquayejaquay
authored andcommitted
Use new style namespace statement
1 parent 8738293 commit ae187ba

20 files changed

+44
-48
lines changed

Debugger.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "audio.h"
2626
#include "Disassembler.h"
2727

28-
namespace VCC { namespace Debugger
28+
namespace VCC::Debugger
2929
{
3030

3131
void Debugger::Reset()
@@ -505,6 +505,6 @@ namespace VCC { namespace Debugger
505505
Break_Enabled_TF = flag;
506506
}
507507

508-
} }
508+
}
509509

510510

Debugger.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include "OpDecoder.h"
3131

3232

33-
namespace VCC { namespace Debugger
33+
namespace VCC::Debugger
3434
{
3535

3636
struct Client
@@ -173,4 +173,4 @@ namespace VCC { namespace Debugger
173173
bool Break_Enabled_TF = false;
174174
bool Halt_Enabled_TF = false;
175175
};
176-
} }
176+
}

DebuggerUtils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <memory>
2525
#include "defines.h"
2626

27-
namespace VCC { namespace Debugger
27+
namespace VCC::Debugger
2828
{
2929

3030
std::string ToHexString(long value, int length, bool leadingZeros)
@@ -104,9 +104,9 @@ namespace VCC { namespace Debugger
104104
}
105105
}
106106

107-
} }
107+
}
108108

109-
namespace VCC { namespace Debugger { namespace UI
109+
namespace VCC::Debugger::UI
110110
{
111111

112112
BackBufferInfo AttachBackBuffer(HWND hWnd, int widthAdjust, int heightAdjust)
@@ -142,5 +142,5 @@ namespace VCC { namespace Debugger { namespace UI
142142
return backBuffer;
143143
}
144144

145-
} } }
145+
}
146146

DebuggerUtils.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
#include <string>
2222
#include <vector>
2323

24-
25-
26-
27-
namespace VCC { namespace Debugger
24+
namespace VCC::Debugger
2825
{
2926

3027
template<class Type_>
@@ -52,9 +49,9 @@ namespace VCC { namespace Debugger
5249
int roundUp(int numToRound, int multiple);
5350
int roundDn(int numToRound, int multiple);
5451
unsigned char DbgRead8(bool phyAddr, unsigned short block, unsigned short PC);
55-
} }
52+
}
5653

57-
namespace VCC { namespace Debugger { namespace UI
54+
namespace VCC::Debugger::UI
5855
{
5956

6057
struct BackBufferInfo
@@ -68,4 +65,4 @@ namespace VCC { namespace Debugger { namespace UI
6865

6966
BackBufferInfo AttachBackBuffer(HWND hWnd, int widthAdjust, int heightAdjust);
7067

71-
} } }
68+
}

ExecutionTrace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This file is part of VCC (Virtual Color Computer).
3333

3434
static HINSTANCE g_hinstDLG;
3535

36-
namespace VCC { namespace Debugger { namespace UI { namespace
36+
namespace VCC::Debugger::UI { namespace
3737
{
3838
HWND ExecutionTraceWindow = nullptr;
3939
HWND hWndExecutionTrace;
@@ -1500,7 +1500,7 @@ namespace VCC { namespace Debugger { namespace UI { namespace
15001500
return FALSE;
15011501
}
15021502

1503-
} } } }
1503+
} }
15041504

15051505

15061506
//-------------------------------------------------------------------------------

ExecutionTrace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#pragma once
2020
#include <Windows.h>
2121

22-
namespace VCC { namespace Debugger { namespace UI
22+
namespace VCC::Debugger::UI
2323
{
2424

2525
void OpenExecutionTraceWindow(HINSTANCE instance, HWND parent);
2626

27-
} } }
27+
}

MMUMonitor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <string>
2525
#include <stdexcept>
2626

27-
namespace VCC { namespace Debugger { namespace UI { namespace
27+
namespace VCC::Debugger::UI { namespace
2828
{
2929
// Color constants
3030
const COLORREF rgbBlack = RGB( 0, 0, 0);
@@ -255,7 +255,7 @@ namespace VCC { namespace Debugger { namespace UI { namespace
255255
return FALSE;
256256
}
257257

258-
} } } }
258+
} }
259259

260260

261261
void VCC::Debugger::UI::OpenMMUMonitorWindow(HINSTANCE instance, HWND parent)

MMUMonitor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
#include <Windows.h>
2121

2222

23-
namespace VCC { namespace Debugger { namespace UI
23+
namespace VCC::Debugger::UI
2424
{
2525

2626
void OpenMMUMonitorWindow(HINSTANCE instance, HWND parent);
2727

28-
} } }
28+
}

MemoryMap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <vcc/common/DialogOps.h>
3535
#include <fstream>
3636

37-
namespace VCC { namespace Debugger { namespace UI { namespace {
37+
namespace VCC::Debugger::UI { namespace {
3838

3939
// Local functions
4040
void SetEditing(bool);
@@ -847,7 +847,7 @@ void FlashDialogWindow()
847847
FlashWindow(hDlgMem,false);
848848
}
849849

850-
} } } } // end namespace
850+
} } // end namespace
851851

852852
//------------------------------------------------------------------
853853
// Launch Memory Dialog

MemoryMap.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
#pragma once
2727
#include <Windows.h>
2828

29-
namespace VCC { namespace Debugger { namespace UI
29+
namespace VCC::Debugger::UI
3030
{
3131
void OpenMemoryMapWindow(HINSTANCE instance, HWND parent);
32-
33-
} } }
32+
}

0 commit comments

Comments
 (0)