summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jung2011-07-14 13:33:27 (EDT)
committerThomas Jung2011-07-14 13:33:27 (EDT)
commit98968549cc42126d8c9fc6234d8ed1d1a06dbe70 (patch)
treefed1b0f131626e98827387669aba4116e43bd3bb
parent78af9377d98bdd036b7fe9e1761c7097a019a69d (diff)
downloadorg.eclipse.etrice-98968549cc42126d8c9fc6234d8ed1d1a06dbe70.zip
org.eclipse.etrice-98968549cc42126d8c9fc6234d8ed1d1a06dbe70.tar.gz
org.eclipse.etrice-98968549cc42126d8c9fc6234d8ed1d1a06dbe70.tar.bz2
avoid deep copy during sending by value for primitive data types
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt b/plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt
index ae36585..51f059d 100644
--- a/plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt
+++ b/plugins/org.eclipse.etrice.generator.java/src/templates/ProtocolClass.xpt
@@ -215,7 +215,7 @@ public interface I«name»{
}
if (getPeerAddress()!=null)
«IF this.data==null»getPeerMsgReceiver().receive(new EventMessage(getPeerAddress(), «dir»_«this.name»));
- «ELSE» getPeerMsgReceiver().receive(new EventWithDataMessage(getPeerAddress(), «dir»_«this.name», «this.data.name».deepCopy()));
+ «ELSE»getPeerMsgReceiver().receive(new EventWithDataMessage(getPeerAddress(), «dir»_«this.name», «this.data.name»«IF this.data.type.type!=null».deepCopy()«ENDIF»));
«ENDIF-»
«ENDIF-»
}