Skip to content

Commit ee2e3d5

Browse files
committed
remove :: prefix when accessing the std namespace
1 parent 8555604 commit ee2e3d5

21 files changed

+42
-42
lines changed

ExecutionTrace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ namespace VCC::Debugger::UI { namespace
364364
// Draw our current page of samples
365365
SetTextColor(hdc, RGB(0, 0, 0));
366366
int y = rect.top + 20;
367-
int lines = ::std::min((long)currentTrace.size(), tracePage);
367+
int lines = std::min((long)currentTrace.size(), tracePage);
368368
for (int i = 0; i < lines; i++)
369369
{
370370
std::string s;
@@ -1100,7 +1100,7 @@ namespace VCC::Debugger::UI { namespace
11001100
EmuState.Debugger.LockTrace();
11011101
unsigned int offset = start > 1 ? start-1 : 0;
11021102
auto & _trace = EmuState.Debugger.GetTraceResult();
1103-
int count = ::std::min((unsigned int)_trace.size(), nlines);
1103+
int count = std::min((unsigned int)_trace.size(), nlines);
11041104
const size_t lineSize = 65536;
11051105
char *line = new char[lineSize];
11061106

FD502/fd502.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ extern "C"
251251

252252
extern "C"
253253
{
254-
__declspec(dllexport) unsigned char PakReadMemoryByte(::std::size_t Address)
254+
__declspec(dllexport) unsigned char PakReadMemoryByte(std::size_t Address)
255255
{
256256
return RomPointer[SelectRomIndex]->read_memory_byte(Address);
257257
}
@@ -354,7 +354,7 @@ LRESULT CALLBACK Config(HWND hDlg, UINT message, WPARAM wParam, LPARAM /*lParam*
354354
mount_disk_image("*Floppy B:",PhysicalDriveB-1);
355355
}
356356
}
357-
SelectRomIndex = ::std::min(TempSelectRomIndex, RomPointer.size());
357+
SelectRomIndex = std::min(TempSelectRomIndex, RomPointer.size());
358358
RomFileName = ::vcc::utils::find_pak_module_path(TempRomFileName);
359359
ExternalRom.load(RomFileName); //JF
360360
BeckerAddr = ::vcc::utils::get_dialog_item_text(hDlg, IDC_BECKER_HOST);

FD502/wd1793.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static bool DirtyDisk=true;
9999
char ImageFormat[5][4]={"JVC","VDK","DMK","OS9","RAW"};
100100

101101

102-
::std::string get_mounted_disk_filename(::std::size_t drive_index)
102+
std::string get_mounted_disk_filename(::std::size_t drive_index)
103103
{
104104
return Drive[drive_index].ImageName;
105105
}

FD502/wd1793.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ unsigned char SetTurboDisk( unsigned char);
3131
//unsigned char UseKeyboardLeds(unsigned char);
3232
DWORD GetDriverVersion ();
3333
unsigned short InitController ();
34-
::std::string get_mounted_disk_filename(::std::size_t drive_index);
34+
std::string get_mounted_disk_filename(::std::size_t drive_index);
3535

3636
// FIXME: Needs a name and should be scoped
3737
enum

GMC/gmc_cartridge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class gmc_cartridge : public ::vcc::bus::cartridge
1212
public:
1313

1414
using context_type = ::vcc::bus::cartridge_context;
15-
using path_type = ::std::string;
15+
using path_type = std::string;
1616
using rom_image_type = ::vcc::devices::rom::banked_rom_image;
1717

1818

Ramdisk/ramdisk_cartridge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ramdisk_cartridge : public ::vcc::bus::cartridge
2626
{
2727
public:
2828

29-
using address_type = ::std::size_t;
29+
using address_type = std::size_t;
3030

3131

3232
public:

Vcc.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
641641
maxHorizontalPosition -= (displayDetails.leftBorderColumns + displayDetails.rightBorderColumns);
642642
maxVerticalPosition -= (displayDetails.topBorderRows + displayDetails.bottomBorderRows);
643643

644-
mouseXPosition = ::std::min(
645-
::std::max(0, mouseXPosition - displayDetails.leftBorderColumns),
644+
mouseXPosition = std::min(
645+
std::max(0, mouseXPosition - displayDetails.leftBorderColumns),
646646
maxHorizontalPosition);
647-
mouseYPosition = ::std::min(
648-
::std::max(0, mouseYPosition - displayDetails.topBorderRows),
647+
mouseYPosition = std::min(
648+
std::max(0, mouseYPosition - displayDetails.topBorderRows),
649649
maxVerticalPosition);
650650

651651
#if USE_DEBUG_MOUSE

acia/acia.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ __declspec(dllexport) void PakReset()
170170
// Dll export pak rom read
171171
//-----------------------------------------------------------------------
172172
extern "C"
173-
__declspec(dllexport) unsigned char PakReadMemoryByte(::std::size_t Address)
173+
__declspec(dllexport) unsigned char PakReadMemoryByte(std::size_t Address)
174174
{
175175
return(Rom[Address & 8191]);
176176
}

becker/configuration_dialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class cartridge_controller
2424
{
2525
public:
2626

27-
using string_type = ::std::string;
27+
using string_type = std::string;
2828

2929

3030
public:

config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ void UpdateSoundBar(const unsigned int * audioBuf,unsigned int bufLen)
895895
int lMax = lval;
896896
int rMin = rval;
897897
int rMax = rval;
898-
for (size_t i = 1; i < ::std::min(bufLen,100u); ++i) {
898+
for (size_t i = 1; i < std::min(bufLen,100u); ++i) {
899899
int lval = audioBuf[i] >> 16;
900900
int rval = audioBuf[i] & 0xFFFF;
901901
if (lval > lMax) lMax = lval;

0 commit comments

Comments
 (0)