common: code refactoring.

we can return nullptr directly here.

Change-Id: I35e04dc9850b3b3b75e1e02b4c81a61b79f2c43f
This commit is contained in:
Hermet Park 2020-08-13 19:13:17 +09:00
parent 9ce44de970
commit 199b54c5ca
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ unique_ptr<GlCanvas> GlCanvas::gen() noexcept
return canvas;
#endif
return unique_ptr<GlCanvas>(nullptr);
return nullptr;
}

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