error detected by loplugin:staticaccess

Regina Henschel rb.henschel at
Mon Oct 26 09:08:01 UTC 2020

Hallo Mike, hallo Caolán,

thank you for helping me.

Kind regards

Mike Kaganski schrieb am 25-Oct-20 um 17:03:
> Hi Regina,
> On 25.10.2020 17:12, Regina Henschel wrote:
>> Hi all,
>> I got an error in
>> But I do not know, how to write it correctly. Can you please help me?
>> The other compilers are fine, with the way I have written it.
> Since GetObjData is a static method, it does not belong to an object, 
> but to the class. So writing pDrawLayer->GetObjData(aObj) (which looks 
> as if GetObjData was operating on pDrawLayer) is conceptually wrong, and 
> [loplugin:staticaccess] suggests you to we-write it as
>      ScDrawObjData* pData = ScDrawLayer::GetObjData(aObj);
> instead.

More information about the LibreOffice mailing list