mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 20:14:37 +00:00
common: code refactoring.
we can return nullptr directly here. Change-Id: I35e04dc9850b3b3b75e1e02b4c81a61b79f2c43f
This commit is contained in:
parent
9ce44de970
commit
199b54c5ca
2 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ unique_ptr<GlCanvas> GlCanvas::gen() noexcept
|
||||||
|
|
||||||
return canvas;
|
return canvas;
|
||||||
#endif
|
#endif
|
||||||
return unique_ptr<GlCanvas>(nullptr);
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ unique_ptr<SwCanvas> SwCanvas::gen() noexcept
|
||||||
|
|
||||||
return canvas;
|
return canvas;
|
||||||
#endif
|
#endif
|
||||||
return unique_ptr<SwCanvas>(nullptr);
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _TVG_SWCANVAS_CPP_ */
|
#endif /* _TVG_SWCANVAS_CPP_ */
|
||||||
|
|
Loading…
Add table
Reference in a new issue