summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-11-21 12:42:18 +0100
committerJulien Nabet <serval2412@yahoo.fr>2020-11-21 20:04:59 +0100
commit2021a64461cb512df58c1bf69a82017a7d728080 (patch)
treec59997f8e4ff6ec627135e37c58369eb4e566098
parentbc8458e9b8473ea391f8150ce7b2c1765e936fdf (diff)
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 <serval2412@yahoo.fr>
-rw-r--r--sc/inc/formulalogger.hxx2
1 files changed, 1 insertions, 1 deletions
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*/,