From c6a3f51a89449f61ad20a1787c0a3cb41fa91466 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 7 May 2020 15:47:49 +0200 Subject: formula bar: Change completeFunction() to accept string instead of index. The 'index' is unsafe, because the set it tries to index can change in the meantime. Instead, use the function name and search for it in the set, to get the recent index. Change-Id: Id2a021c32f421057c87b6f7f4fffcc1c98009acb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93666 Tested-by: Jenkins CollaboraOffice Reviewed-by: Andras Timar Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93910 Tested-by: Jenkins --- include/LibreOfficeKit/LibreOfficeKit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/LibreOfficeKit/LibreOfficeKit.h') diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index 309744522004..8b68452697b3 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -437,7 +437,7 @@ struct _LibreOfficeKitDocumentClass int viewId); /// @see lok::Document::completeFunction(). - void (*completeFunction) (LibreOfficeKitDocument* pThis, int nIndex); + void (*completeFunction) (LibreOfficeKitDocument* pThis, const char* pFunctionName); /// @see lok::Document::setWindowTextSelection void (*setWindowTextSelection) (LibreOfficeKitDocument* pThis, -- cgit