desktop/source/lib/init.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9676d121182ce8a2b395df01b75a9c3cb625fc50 Author: Aron Budea <aron.bu...@collabora.com> AuthorDate: Mon Feb 13 14:59:04 2023 +0100 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Jul 5 09:56:29 2023 +0200 Fix build [-Werror=unused-parameter] desktop/source/lib/init.cxx:5430:51: error: unused parameter ‘pThis’ [-Werror=unused-parameter] 5430 | static char* getLanguages(LibreOfficeKitDocument* pThis, const char* pCommand) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ After 7fb089be113f3f95d9a13e3aafafc64107301d1d. Change-Id: If4d9a751e4d32df4d8b854e197da5e8eb7e96d9e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146906 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 70d049feac51..8448209e87b5 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5628,7 +5628,7 @@ static void addLocale(boost::property_tree::ptree& rValues, css::lang::Locale co rValues.push_back(std::make_pair("", aChild)); } -static char* getLanguages(LibreOfficeKitDocument* pThis, const char* pCommand) +static char* getLanguages(const char* pCommand) { css::uno::Sequence< css::lang::Locale > aLocales; css::uno::Sequence< css::lang::Locale > aGrammarLocales; @@ -6001,7 +6001,7 @@ static char* doc_getCommandValues(LibreOfficeKitDocument* pThis, const char* pCo if (!strcmp(pCommand, ".uno:LanguageStatus")) { - return getLanguages(pThis, pCommand); + return getLanguages(pCommand); } else if (!strcmp(pCommand, ".uno:CharFontName")) {