common: code refactoring. 83/240983/1
authorHermet Park <chuneon.park@samsung.com>
Thu, 13 Aug 2020 10:13:17 +0000 (19:13 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 13 Aug 2020 10:13:17 +0000 (19:13 +0900)
we can return nullptr directly here.

Change-Id: I35e04dc9850b3b3b75e1e02b4c81a61b79f2c43f

src/lib/tvgGlCanvas.cpp
src/lib/tvgSwCanvas.cpp

index 755d8eb..7f2c04b 100644 (file)
@@ -86,7 +86,7 @@ unique_ptr<GlCanvas> GlCanvas::gen() noexcept
 
     return canvas;
 #endif
-    return unique_ptr<GlCanvas>(nullptr);
+    return nullptr;
 }
 
 
index bb50470..e958ea2 100644 (file)
@@ -85,7 +85,7 @@ unique_ptr<SwCanvas> SwCanvas::gen() noexcept
 
     return canvas;
 #endif
-    return unique_ptr<SwCanvas>(nullptr);
+    return nullptr;
 }
 
 #endif /* _TVG_SWCANVAS_CPP_ */