common: code refactoring.

we can return nullptr directly here.

Change-Id: Ic1d987f2701d20ff1b69af2854f9cfee7e2fe065
This commit is contained in:
Hermet Park 2020-08-13 20:05:37 +09:00
parent 3b22a25798
commit 9dd3cc5edc

View 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_