Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:mhroth/ZenGarden

  • Loading branch information...
commit f6d44091712be820943c943c0851c62f33cfcdb1 2 parents d7a9a9d + d86eb2b
@mhroth authored
Showing with 3 additions and 8 deletions.
  1. +3 −8 src/MessageSend.cpp
View
11 src/MessageSend.cpp
@@ -30,7 +30,7 @@ MessageObject *MessageSend::newObject(PdMessage *initMessage, PdGraph *graph) {
MessageSend::MessageSend(PdMessage *initMessage, PdGraph *graph) :
MessageObject((initMessage->getNumElements() == 0) ? 2 : 1, 0, graph) {
name = StaticUtils::copyString(initMessage->isSymbol(0)
- ? initMessage->getSymbol(0) : (char *) "zg_default_sendreceive_name");
+ ? initMessage->getSymbol(0) : "zg_default_sendreceive_name");
}
MessageSend::~MessageSend() {
@@ -47,10 +47,7 @@ ObjectType MessageSend::getObjectType() {
void MessageSend::receiveMessage(int inletIndex, PdMessage *message) {
switch (inletIndex) {
- case 0: {
- graph->sendMessageToNamedReceivers(name, message);
- break;
- }
+ case 0: graph->sendMessageToNamedReceivers(name, message); break;
case 1: {
if (message->isSymbol(0)) {
free(name);
@@ -59,8 +56,6 @@ void MessageSend::receiveMessage(int inletIndex, PdMessage *message) {
}
break;
}
- default: {
- break;
- }
+ default: break;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.