Reformat remwharead_wrapper.cpp.

This commit is contained in:
tastytea 2020-10-31 13:30:04 +01:00
parent 4e9e750e35
commit a198f1323a
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 11 additions and 12 deletions

View File

@ -15,18 +15,19 @@
*/ */
#include <Poco/Message.h> #include <Poco/Message.h>
#include <string> #include <sys/wait.h>
#include <iostream>
#include <cstdint> #include <cstdint>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <sys/wait.h> #include <iostream>
#include <string>
using std::string;
using std::cin; using std::cin;
using std::cout; using std::cout;
using std::uint32_t; using std::string;
using std::system; using std::system;
using std::uint32_t;
class Message class Message
{ {
@ -35,8 +36,7 @@ public:
Message(); Message();
//! Decode message and return argument string for launch(). //! Decode message and return argument string for launch().
[[nodiscard]] [[nodiscard]] string decode();
string decode();
private: private:
string _msg; string _msg;
@ -54,7 +54,6 @@ void send_message(const string &message);
//! Launch remwharead with args. //! Launch remwharead with args.
int launch(const string &args); int launch(const string &args);
int main() int main()
{ {
Message message; Message message;
@ -68,8 +67,8 @@ int main()
} }
else else
{ {
send_message("Command failed with status: " send_message("Command failed with status: " + std::to_string(ret)
+ std::to_string(ret) + '.'); + '.');
} }
return ret; return ret;