summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-08-26 22:25:24 -0300
committerGitHub <noreply@github.com>2016-08-26 22:25:24 -0300
commitd015d93b8f94f55b26f874781ac7fd0a53e68227 (patch)
tree07278af50a8e4471f2ffeee232722d8c54b1eba5 /core
parentec49f41e19f1088b1bc8df4e8ef360270aa34204 (diff)
parent79628b135168ffad262d43f39ae573e180bd7fbf (diff)
Merge pull request #6239 from volzhs/fix-return-spb
Fix StreamPeerBuffer::duplicate() does not return value
Diffstat (limited to 'core')
-rw-r--r--core/io/stream_peer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/stream_peer.cpp b/core/io/stream_peer.cpp
index 176d55ffdd..baaeacaf18 100644
--- a/core/io/stream_peer.cpp
+++ b/core/io/stream_peer.cpp
@@ -544,6 +544,7 @@ Ref<StreamPeerBuffer> StreamPeerBuffer::duplicate() const {
Ref<StreamPeerBuffer> spb;
spb.instance();
spb->data=data;
+ return spb;
}