Skip to content

Commit 572541e

Browse files
v-einhoffstadt
authored andcommitted
fix (callbacks): Added initializers to mvCallbackJob fields to calm down PVS Studio (we don't use the default constructor anyway, so it changes nothing but the build process).
1 parent 4f3c50e commit 572541e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mvCallbackRegistry.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ struct mvCallbackJob
198198
std::weak_ptr<void> owner;
199199
// Only valid if `owner` is alive; one must lock() the owner before accessing
200200
// the callback.
201-
PyObject* callback;
201+
PyObject* callback = nullptr;
202202
std::shared_ptr<mvPyObject> user_data;
203-
mvUUID sender;
203+
mvUUID sender = 0;
204204
std::string alias;
205205
std::function<PyObject*()> app_data_func;
206206
// Either `callback` (and `owner`) or `ownerless_callback` must be set,

0 commit comments

Comments
 (0)