diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 02:55:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 02:55:28 +0400 |
commit | 7862b2fa13c0437d9c17eae78e7b79a421dacf05 (patch) | |
tree | 08f9c26af3e71795d0f65803a415b5612d6b53ab /source/blender/compositor/intern/COM_Socket.cpp | |
parent | 69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff) |
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/intern/COM_Socket.cpp')
-rw-r--r-- | source/blender/compositor/intern/COM_Socket.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/compositor/intern/COM_Socket.cpp b/source/blender/compositor/intern/COM_Socket.cpp index cb429c9df4a..a5336ac1202 100644 --- a/source/blender/compositor/intern/COM_Socket.cpp +++ b/source/blender/compositor/intern/COM_Socket.cpp @@ -24,14 +24,16 @@ #include "COM_Node.h" #include "COM_SocketConnection.h" -Socket::Socket(DataType datatype) { +Socket::Socket(DataType datatype) +{ this->datatype = datatype; this->actualType = COM_DT_UNKNOWN; this->editorSocket = NULL; this->node = NULL; } -DataType Socket::getDataType() const { +DataType Socket::getDataType() const +{ return this->datatype; } @@ -39,9 +41,10 @@ int Socket::isInputSocket() const { return false; } int Socket::isOutputSocket() const { return false; } const int Socket::isConnected() const {return false;} void Socket::setNode(NodeBase *node) {this->node = node;} -NodeBase* Socket::getNode() const {return this->node;} +NodeBase *Socket::getNode() const {return this->node;} DataType Socket::getActualDataType() const {return this->actualType;} -void Socket::setActualDataType(DataType actualType) { +void Socket::setActualDataType(DataType actualType) +{ this->actualType = actualType; } |