diff --git a/source/blender/editors/include/UI_interface.hh b/source/blender/editors/include/UI_interface.hh index 39fc00af37a..1d6f2157bdd 100644 --- a/source/blender/editors/include/UI_interface.hh +++ b/source/blender/editors/include/UI_interface.hh @@ -296,4 +296,8 @@ blender::ui::AbstractTreeView *UI_block_add_view( blender::StringRef idname, std::unique_ptr tree_view); -void UI_alert(bContext *C, std::string title, std::string message, eAlertIcon icon, bool compact); +void UI_alert(bContext *C, + const std::string &title, + const std::string &message, + eAlertIcon icon, + bool compact); diff --git a/source/blender/editors/interface/regions/interface_region_popup.cc b/source/blender/editors/interface/regions/interface_region_popup.cc index 7f80375f2f0..3ec45ec50a6 100644 --- a/source/blender/editors/interface/regions/interface_region_popup.cc +++ b/source/blender/editors/interface/regions/interface_region_popup.cc @@ -1123,7 +1123,11 @@ static uiBlock *ui_alert_create(bContext *C, ARegion *region, void *user_data) return block; } -void UI_alert(bContext *C, std::string title, std::string message, eAlertIcon icon, bool compact) +void UI_alert(bContext *C, + const std::string &title, + const std::string &message, + const eAlertIcon icon, + const bool compact) { uiAlertData *data = MEM_new(__func__); data->title = title;