refactor: resolve Sonar constructor and initialization findings (#5922)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-10-14 08:33:01 -04:00
1 parent 75d3897fe2
commit b50c7ba139
27 files changed
+357 -150

No files matched your search

+6 -1
View File
@@ -1125,8 +1125,13 @@ namespace platf {
} // namespace
/**
* @brief Create the libvirtualhid backend with explicit input-handle ownership.
*
* @return Owning handle for the global virtual input backend.
*/
input_t input() {
return {new input_raw_t {}};
return input_t {new input_raw_t {}};
}
std::unique_ptr<client_input_t> allocate_client_input_context(input_t &input) {