desktop/source/lib/init.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit f9039649522f7c3640f7f633f6e7f4b8632d4724 Author: Aron Budea <aron.bu...@collabora.com> AuthorDate: Mon Feb 13 14:59:04 2023 +0100 Commit: Aron Budea <aron.bu...@collabora.com> CommitDate: Mon Feb 13 16:24:25 2023 +0000 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 8c3e82ff0896..ab8bc71d4780 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5427,7 +5427,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; @@ -5798,7 +5798,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")) {