Skip to content

Commit

Permalink
Use .empty to check for unset boost::function
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Thiel committed Apr 20, 2019
1 parent 31ef958 commit 0862a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registration/include/pcl/registration/registration.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ namespace pcl
template<typename FunctionSignature> inline bool
registerVisualizationCallback (boost::function<FunctionSignature> &visualizerCallback)
{
if (visualizerCallback != nullptr)
if (!visualizerCallback.empty())
{
update_visualizer_ = visualizerCallback;
return (true);
Expand Down

0 comments on commit 0862a6a

Please sign in to comment.