Add and use red::make_shared

Enterprise / Virtualization / SPICE - Frediano Ziglio [redhat.com] - 1 May 2020 05:58 EDT

Allow to create an object already contained in a shared pointer to avoid having not owned objects.

597461e4 Add and use red::make_shared
server/cursor-channel.cpp | 9 +++++----
server/cursor-channel.h | 6 +++---
server/display-channel.cpp | 22 ++++++++++------------
server/display-channel.h | 14 ++++++--------
server/inputs-channel.cpp | 4 ++--
server/inputs-channel.h | 2 +-
server/main-channel.cpp | 4 ++--
server/main-channel.h | 2 +-
server/red-stream-device.cpp | 18 +++++++++---------
server/red-worker.cpp | 4 ++--
server/reds.cpp | 4 ++--
server/smartcard.cpp | 2 +-
server/sound.cpp | 4 ++--
server/spicevmc.cpp | 10 +++++-----
server/stream-channel.cpp | 4 ++--
server/stream-channel.h | 2 +-
server/tests/test-channel.cpp | 10 +++++-----
server/tests/test-stream-device.cpp | 4 ++--
server/utils.hpp | 9 +++++++++
19 files changed, 70 insertions(+), 64 deletions(-)

Upstream: cgit.freedesktop.org


  • Share