https://bugs.documentfoundation.org/show_bug.cgi?id=140220

--- Comment #6 from Devansh Varshney <varshney.devansh...@gmail.com> ---
Currently having error with file sw/inc/swtable.hxx and need help with the
below 
DynCastTable(), and GetInfo() error -



In file included from
/home/devansh/libreoffice/sw/source/core/access/acccell.cxx:29:
/home/devansh/libreoffice/sw/inc/swtable.hxx:159:28: error: ‘virtual const
SwTable* SwTable::DynCastTable() const’ marked ‘override’, but does not
override
  159 |     virtual const SwTable* DynCastTable() const override { return this;
}
      |                            ^~~~~~~~~~~~
/home/devansh/libreoffice/sw/inc/swtable.hxx:316:18: error: ‘virtual bool
SwTable::GetInfo(SfxPoolItem&) const’ marked ‘override’, but does not override
  316 |     virtual bool GetInfo( SfxPoolItem& ) const override;
      |                  ^~~~~~~


as after replacing the SwClient with SvtListener at

class SW_DLLPUBLIC SwTable: public SvtListener          //Client of
FrameFormat.

This was added in the below patch -

 virtual const SwTable* DynCastTable() const override { return this; }

https://gerrit.libreoffice.org/c/core/+/142014


> --------------------------------------------------------------

Also, I am rectifying this -

/home/devansh/libreoffice/sw/inc/swtable.hxx:210:64: error: cannot convert
‘SvtBroadcaster’ to ‘SwTableFormat*’ in initialization
  210 |     SwTableFormat* m_pTableFormat = m_pTableFormat->GetNotifier();
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                                |
      |                                                               
SvtBroadcaster
/home/devansh/libreoffice/sw/inc/swtable.hxx:398:37: error: ‘m_pTableFormat’
was not declared in this scope; did you mean ‘SwTableFormat’?
  398 |     SwFrameFormat* m_pFrameFormat = m_pTableFormat->GetNotifier();
      |                                     ^~~~~~~~~~~~~~
      |                                     SwTableFormat
/home/devansh/libreoffice/sw/inc/swtable.hxx:480:64: error: cannot convert
‘SvtBroadcaster’ to ‘SwFrameFormat*’ in initialization
  480 |     SwFrameFormat* m_pFrameFormat = m_pFrameFormat->GetNotifier();
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                                |
      |                                                               
SvtBroadcaster

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to