From 618171552e1bcddb07660167d9df4512435269b0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 27 Oct 2016 10:50:45 +0200 Subject: loplugin:expandablemethods in sot..starmath Change-Id: I5b718bbda9ceca5bbfd1e6482ebd215e15884956 Reviewed-on: https://gerrit.libreoffice.org/30318 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- starmath/source/cfgitem.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'starmath/source/cfgitem.cxx') diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 1daf41e62359..4b1bd12c2b3a 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -361,13 +361,6 @@ void SmMathConfig::SetFormatModified( bool bVal ) } -void SmMathConfig::SetFontFormatListModified( bool bVal ) -{ - if (pFontFormatList) - pFontFormatList->SetModified( bVal ); -} - - void SmMathConfig::ReadSymbol( SmSym &rSymbol, const OUString &rSymbolName, const OUString &rBaseNode ) const @@ -974,7 +967,8 @@ void SmMathConfig::SetStandardFormat( const SmFormat &rFormat, bool bSaveFontFor if (bSaveFontFormatList) { // needed for SmFontTypeDialog's DefaultButtonClickHdl - SetFontFormatListModified( true ); + if (pFontFormatList) + pFontFormatList->SetModified( true ); SaveFontFormatList(); } } -- cgit