16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 14:39:18 +02:00

reformat: parameters can be made const

This commit is contained in:
jerrrrycho
2026-07-04 07:08:14 +02:00
parent 6fd1d6715b
commit 220689a5e3
121 changed files with 1380 additions and 1352 deletions

View File

@@ -23,7 +23,7 @@ typedef void(__stdcall *OutPortType)(USHORT BasePort, USHORT value);
InPortType InPort;
OutPortType OutPort;
bool TLPT::Connect(int port)
bool TLPT::Connect(const int port)
{
WriteLog("lpt: trying to connect lpt, port " + std::to_string(port));
@@ -57,7 +57,7 @@ bool TLPT::Connect(int port)
return OutPort != 0;
};
void TLPT::Out(int x)
void TLPT::Out(const int x)
{ // wysłanie bajtu do portu
OutPort(address, x);
};