Pulse-Eight / libcec

USB CEC Adapter communication Library http://libcec.pulse-eight.com/
Other
705 stars 282 forks source link

cecloader.h: fix null return #599

Open nekopsykose opened 2 years ago

nekopsykose commented 2 years ago

returning NULL is invalid for a return type of bool when NULL is defined
as nullptr instead of 0L

nekopsykose commented 2 years ago

this is the case for c++11 and above: https://en.cppreference.com/w/cpp/types/NULL

nekopsykose commented 2 years ago

specific error you get when NULL is nullptr:

error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization [-fpermissive]