Fix warning in Visual Studio.

Fix formatting to match other classes.
This commit is contained in:
Stephen Anthony 2020-01-31 23:47:27 -03:30
parent 236b716b1d
commit 57a6e95d0c
3 changed files with 42 additions and 42 deletions

View File

@ -46,7 +46,7 @@ Cartridge2K::Cartridge2K(const ByteBuffer& image, size_t size,
else
{
// Manually 'mirror' the ROM image into the buffer
for(int i = 0; i < System::PAGE_SIZE; i += mySize)
for(size_t i = 0; i < System::PAGE_SIZE; i += mySize)
std::copy_n(image.get(), mySize, myImage.get() + i);
mySize = System::PAGE_SIZE;
}

View File

@ -26,7 +26,7 @@
class Lightgun : public Controller
{
public:
public:
/**
Create a new lightgun controller plugged into the specified jack
@ -41,7 +41,7 @@ public:
const string& romMd5, const FrameBuffer& frameBuffer);
virtual ~Lightgun() = default;
public:
public:
using Controller::read;
/**
@ -63,13 +63,13 @@ public:
*/
string name() const override { return "Lightgun"; }
private:
private:
const FrameBuffer& myFrameBuffer;
// targetting compensation values
Int32 myOfsX{0}, myOfsY{0};
private:
private:
// Following constructors and assignment operators not supported
Lightgun() = delete;
Lightgun(const Lightgun&) = delete;