Mark numbers in wrapper const if possible.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-09-22 22:05:44 +02:00
parent d5b07b51c7
commit ab3085023b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ const string read_input()
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 << '"' << message << '"';
}
@ -76,7 +76,7 @@ int main()
{
const string args = read_input();
int ret = launch(args);
const int ret = launch(args);
if (ret == 0)
{