DisplayDriverFactory::make() currently returns driver instances in raw pointers. This patch changes it to wrap them in std::unique_ptr.
Note that the various constructors stdout_driver_new(), stdout_sdl_driver_new(), etc. still return raw pointers. The driver code are meant to be externalised into loadable SOs and I'm unsure if we can return std::unique_ptr from there.
DisplayDriverFactory::make()
currently returns driver instances in raw pointers. This patch changes it to wrap them instd::unique_ptr
.Note that the various constructors
stdout_driver_new()
,stdout_sdl_driver_new()
, etc. still return raw pointers. The driver code are meant to be externalised into loadable SOs and I'm unsure if we can returnstd::unique_ptr
from there.