diff --git a/daemon/src/client/videocontrols_stub.cpp b/daemon/src/client/videocontrols_stub.cpp
index b587078782775facdd841ac6d8d4a2ca2f43b3b2..62b0fa3b3a44216ec84655fd75db58039462405b 100644
--- a/daemon/src/client/videocontrols_stub.cpp
+++ b/daemon/src/client/videocontrols_stub.cpp
@@ -54,8 +54,7 @@ void VideoControls::stoppedDecoding(const std::string &id, const std::string)
 
 std::map<std::string, std::string> VideoControls::getSettings()
 {
-    std::map<std::string, std::string> stub;
-    return stub;
+    return std::map<std::string, std::string>();
 }
 
 bool VideoControls::hasCameraStarted()
@@ -73,6 +72,5 @@ void VideoControls::stopCamera()
 
 std::weak_ptr<sfl_video::VideoFrameActiveWriter> VideoControls::getVideoCamera()
 {
-    std::weak_ptr<sfl_video::VideoFrameActiveWriter> stub;
-    return stub;
+    return std::weak_ptr<sfl_video::VideoFrameActiveWriter>();
 }