16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 10:29:19 +02:00

reformat: parameters can be made pointer to const

This commit is contained in:
jerrrrycho
2026-07-04 07:14:02 +02:00
parent 220689a5e3
commit 96a099acdf
51 changed files with 304 additions and 304 deletions

View File

@@ -97,7 +97,7 @@ size_t piped_proc::read(unsigned char *buf, const size_t len)
return read;
}
size_t piped_proc::write(unsigned char *buf, const size_t len)
size_t piped_proc::write(const unsigned char *buf, const size_t len)
{
if (!pipe_wr)
return 0;

View File

@@ -25,6 +25,6 @@ HANDLE pipe_wr = nullptr;
public:
piped_proc(std::string cmd, bool write = false);
size_t read(unsigned char *buf, size_t len);
size_t write(unsigned char *buf, size_t len);
size_t write(const unsigned char *buf, size_t len);
~piped_proc();
};