Commit 1: don't mix QObject and std::unique_ptr ownership
QObject
std::unique_ptr
Commit 2: fix two warnings