Re: error: this member function can be declared static [loplugin:staticmethods] when adding a event function in a dialog

2024-03-29 Thread Caolán McNamara
On Fri, 2024-03-29 at 09:07 +0100, Heiko Tietze wrote: > On 28.03.24 6:09 PM, Caolán McNamara wrote: > > On Fri, 2024-03-29 at 00:16 +0800, Sakura286 wrote: > > > > > > https://gerrit.libreoffice.org/c/core/+/165391 > > > > You might want DECL_STATIC_LINK instead of DECL_LINK. The matching > >

Re: error: this member function can be declared static [loplugin:staticmethods] when adding a event function in a dialog

2024-03-29 Thread Heiko Tietze
On 28.03.24 6:09 PM, Caolán McNamara wrote: On Fri, 2024-03-29 at 00:16 +0800, Sakura286 wrote: https://gerrit.libreoffice.org/c/core/+/165391 You might want DECL_STATIC_LINK instead of DECL_LINK. The matching IMPL_LINK then needs to be IMPL_STATIC_LINK etc. Curious to learn why this needs

Re: error: this member function can be declared static [loplugin:staticmethods] when adding a event function in a dialog

2024-03-28 Thread Caolán McNamara
On Fri, 2024-03-29 at 00:16 +0800, Sakura286 wrote: > > In file included from > /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil > _64/cui/source/dialogs/nanpayloadwarningdlg.cxx:21: > /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil >

error: this member function can be declared static [loplugin:staticmethods] when adding a event function in a dialog

2024-03-28 Thread Sakura286
Greetings, I am adding a new dialog for LibreOffice(https://gerrit.libreoffice.org/c/core/+/165391). But the CI emits the following log: ```log In file included from /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/cui/source/dialogs/nanpayloadwarningdlg.cxx:21: