From 2021a64461cb512df58c1bf69a82017a7d728080 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 21 Nov 2020 12:42:18 +0100 Subject: loplugin:stringviewparam for formulalogger/GroupScope/addMessage (sc) In file included from /home/julien/lo/libo_perf/sc/inc/formulacell.hxx:31: /home/julien/lo/libo_perf/sc/inc/formulalogger.hxx:146:51: error: replace function parameter of type 'const rtl::OUString &' with 'std::u16string_view' [loplugin:stringviewparam] void addMessage( const OUString& /*rMsg*/ ) { (void) this; /* loplugin:staticmethods */ } ~~~~~~~~~~~~~~~ ^ 1 error generated. to keep this in sync with the ENABLE_FORMULA_LOGGER branch, annotating the parameter declaration with [[maybe_unused]] to avoid warnings Change-Id: Ie3f6165c48acdfc81bbf916981e9d527448b66b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106302 Tested-by: Jenkins Reviewed-by: Julien Nabet --- sc/inc/formulalogger.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/inc') diff --git a/sc/inc/formulalogger.hxx b/sc/inc/formulalogger.hxx index 04bba1388e23..cfc01449c2a8 100644 --- a/sc/inc/formulalogger.hxx +++ b/sc/inc/formulalogger.hxx @@ -143,7 +143,7 @@ public: class GroupScope { public: - void addMessage( const OUString& /*rMsg*/ ) { (void) this; /* loplugin:staticmethods */ } + void addMessage( [[maybe_unused]] const OUString& /*rMsg*/ ) { (void) this; /* loplugin:staticmethods */ } void addRefMessage( const ScAddress& /*rCellPos*/, const ScAddress& /*rRefPos*/, size_t /*nLen*/, -- cgit