Delete copy-constructor and assign-operator for singleton class 58/162058/1
authorJunghoon Park <jh9216.park@samsung.com>
Wed, 29 Nov 2017 01:24:42 +0000 (10:24 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Wed, 29 Nov 2017 01:24:42 +0000 (10:24 +0900)
Change-Id: Iba5451225d7064e7f6300a3eafb0cb3d7def2345
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
screen_connector_remote_surface/remote_surface_manager_internal.h
screen_connector_remote_surface/wl_buffer_manager_internal.h

index a833bd6..0756887 100644 (file)
@@ -31,6 +31,9 @@ namespace screen_connector {
 
 class RemoteSurfaceManager {
  public:
+  RemoteSurfaceManager(const RemoteSurfaceManager&) = delete;
+  RemoteSurfaceManager& operator = (const RemoteSurfaceManager&) = delete;
+
   static RemoteSurfaceManager& GetInst(bool mock = false);
   ITRS* CreateTRS(int rid, bool mock = false);
   void Dispose();
index 012ffed..b7b3e54 100644 (file)
@@ -26,6 +26,9 @@ namespace screen_connector {
 
 class WlBufferManager {
  public:
+  WlBufferManager(const WlBufferManager&) = delete;
+  WlBufferManager& operator = (const WlBufferManager&) = delete;
+
   static WlBufferManager& GetInst();
 
   const WlBuffer& Ref(struct wl_buffer* buf, struct tizen_remote_surface* trs);