Kaydet (Commit) 73fafa6a authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:returnconstant in SvxCSS1Parser

Change-Id: I890fe1c116c487a6065f4b47d3f9cebe4803ef77
Reviewed-on: https://gerrit.libreoffice.org/58963
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 7a9453a0
......@@ -1121,7 +1121,7 @@ CSS1Parser::~CSS1Parser()
{
}
bool CSS1Parser::ParseStyleSheet( const OUString& rIn )
void CSS1Parser::ParseStyleSheet( const OUString& rIn )
{
OUString aTmp( rIn );
......@@ -1144,13 +1144,11 @@ bool CSS1Parser::ParseStyleSheet( const OUString& rIn )
aTmp = aTmp.copy( 0, aTmp.getLength() - 3 );
if( aTmp.isEmpty() )
return true;
return;
InitRead( aTmp );
ParseStyleSheet();
return true;
}
void CSS1Parser::ParseStyleOption( const OUString& rIn )
......
......@@ -219,9 +219,8 @@ protected:
* or DeclarationParsed() need to be called afterwards
*
* @param rIn the style element as string
* @return true if ???
*/
bool ParseStyleSheet( const OUString& rIn );
void ParseStyleSheet( const OUString& rIn );
/** parse the content of a HTML style option
*
......
......@@ -832,7 +832,7 @@ bool SvxCSS1Parser::ParseStyleSheet( const OUString& rIn )
pItemSet = pSheetItemSet.get();
pPropInfo = pSheetPropInfo.get();
bool bSuccess = CSS1Parser::ParseStyleSheet( rIn );
CSS1Parser::ParseStyleSheet( rIn );
for (std::unique_ptr<CSS1Selector> & rpSelector : m_Selectors)
{
......@@ -847,7 +847,7 @@ bool SvxCSS1Parser::ParseStyleSheet( const OUString& rIn )
pItemSet = nullptr;
pPropInfo = nullptr;
return bSuccess;
return true;
}
void SvxCSS1Parser::ParseStyleOption( const OUString& rIn,
......
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