diff --git a/source/blender/editors/interface/interface_drop.cc b/source/blender/editors/interface/interface_drop.cc index 5b1c828ff08..4d539fb4b13 100644 --- a/source/blender/editors/interface/interface_drop.cc +++ b/source/blender/editors/interface/interface_drop.cc @@ -55,13 +55,13 @@ std::string drop_target_tooltip(const ARegion ®ion, { const char *disabled_hint_dummy = nullptr; if (!drop_target.can_drop(drag, &disabled_hint_dummy)) { - return nullptr; + return {}; } const std::optional drop_location = drop_target.choose_drop_location(region, event); if (!drop_location) { - return nullptr; + return {}; } const DragInfo drag_info{drag, event, *drop_location};