Kaydet (Commit) 0bff0f77 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

There should be no need for a private SwSubFont copy assignment op

...given that its (implicitly defined) copy ctor is public.  Before
ad355e2b "New: Proportional font width" the
class's members were all private, and then were gradually changed to public,
that's probably the reason why the copy assignment op still is.  Making it
public and implicitly declared avoids -Werror=deprecated-copy with GCC trunk
towards GCC 9.

Change-Id: I940c04041b0447f2129aaaa48f19fec40352311e
Reviewed-on: https://gerrit.libreoffice.org/56920
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 5dadfe9f
......@@ -64,8 +64,6 @@ class SwSubFont : public SvxFont
const sal_uInt16 nOldAscent ) const;
void CalcEsc( SwDrawTextInfo const & rInf, Point& rPos );
SwSubFont& operator=( const SwSubFont& );
short CheckKerning_( );
bool ChgFnt( SwViewShell const *pSh, OutputDevice& rOut );
......
......@@ -888,8 +888,6 @@ SwFont::~SwFont()
{
}
SwSubFont& SwSubFont::operator=( const SwSubFont& ) = default;
SwFont& SwFont::operator=( const SwFont &rFont )
{
m_aSub[SwFontScript::Latin] = rFont.m_aSub[SwFontScript::Latin];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment