Commit c44aa6e5 authored by Hauke Goldhammer's avatar Hauke Goldhammer

Fix style issues reported by jenkins

parent 293288a5
...@@ -15,9 +15,7 @@ using namespace std; ...@@ -15,9 +15,7 @@ using namespace std;
using namespace caf; using namespace caf;
ChatWidget::ChatWidget(QWidget* parent) ChatWidget::ChatWidget(QWidget* parent)
: super(parent), : super(parent), input_(nullptr), output_(nullptr) {
input_(nullptr),
output_(nullptr) {
// nop // nop
} }
...@@ -78,14 +76,14 @@ void ChatWidget::sendChatMessage() { ...@@ -78,14 +76,14 @@ void ChatWidget::sendChatMessage() {
split(words, line.midRef(1).toUtf8().constData(), is_any_of(" ")); split(words, line.midRef(1).toUtf8().constData(), is_any_of(" "));
if (words.size() > 1) { if (words.size() > 1) {
if (words.front() == "join" && words.size() == 3) { if (words.front() == "join" && words.size() == 3) {
auto x = system().groups().get(words[1], words[2]); auto x = system().groups().get(words[1], words[2]);
if (!x) if (!x)
print("*** error: " print("*** error: "
+ QString::fromUtf8(to_string(x.error()).c_str())); + QString::fromUtf8(to_string(x.error()).c_str()));
else else
self()->send(self(), join_atom_v, std::move(*x)); self()->send(self(), join_atom_v, std::move(*x));
} else if (words.front() == "setName" && words.size() == 2) } else if (words.front() == "setName" && words.size() == 2)
send_as(as_actor(), as_actor(), set_name_atom_v, std::move(words[1])); send_as(as_actor(), as_actor(), set_name_atom_v, std::move(words[1]));
} else { } else {
print("*** list of commands:\n" print("*** list of commands:\n"
"/join <module> <group id>\n" "/join <module> <group id>\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment