common: code refactoring. 99/240999/1 submit/tizen/20200813.110752
authorHermet Park <chuneon.park@samsung.com>
Thu, 13 Aug 2020 11:05:37 +0000 (20:05 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 13 Aug 2020 11:05:37 +0000 (20:05 +0900)
we can return nullptr directly here.

Change-Id: Ic1d987f2701d20ff1b69af2854f9cfee7e2fe065

src/lib/tvgLoaderMgr.cpp

index 208ba79..a35dcd5 100644 (file)
@@ -56,7 +56,7 @@ unique_ptr<Loader> LoaderMgr::loader(const char* path)
     return unique_ptr<SvgLoader>(new SvgLoader);
 #endif
     cout << "Non supported format: " << path << endl;
-    return unique_ptr<Loader>(nullptr);
+    return nullptr;
 }
 
 #endif //_TVG_LOADER_MGR_CPP_
\ No newline at end of file