Mark numbers in wrapper const if possible.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d5b07b51c7
commit
ab3085023b
|
@ -55,7 +55,7 @@ const string read_input()
|
||||||
|
|
||||||
void send_message(const string &message)
|
void send_message(const string &message)
|
||||||
{
|
{
|
||||||
uint32_t length = message.length() + 2;
|
const uint32_t length = message.length() + 2;
|
||||||
cout.write(reinterpret_cast<const char*>(&length), sizeof(uint32_t));
|
cout.write(reinterpret_cast<const char*>(&length), sizeof(uint32_t));
|
||||||
cout << '"' << message << '"';
|
cout << '"' << message << '"';
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ int main()
|
||||||
{
|
{
|
||||||
const string args = read_input();
|
const string args = read_input();
|
||||||
|
|
||||||
int ret = launch(args);
|
const int ret = launch(args);
|
||||||
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue