sc/inc/formulalogger.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2021a64461cb512df58c1bf69a82017a7d728080
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sat Nov 21 12:42:18 2020 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Sat Nov 21 20:04:59 2020 +0100

    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 <serval2...@yahoo.fr>

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*/,
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to