diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-13 08:44:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-13 08:44:46 +0200 |
commit | 8bd9eb833444810dec3debd0215bd26dffc2fb91 (patch) | |
tree | 67af5f48ff3b6a83e50ff8980d8b6fad96cc1446 /svl/source/misc | |
parent | fa7c7b160136e4b08bc1e1aef9017d4596ad6184 (diff) |
loplugin:unusedmethods unused return value in include/svl
Change-Id: I759fe8769daccea07c2157bfb5912df8ba285534
Diffstat (limited to 'svl/source/misc')
-rw-r--r-- | svl/source/misc/ownlist.cxx | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/svl/source/misc/ownlist.cxx b/svl/source/misc/ownlist.cxx index b174c67650c5..b06cfc935fc7 100644 --- a/svl/source/misc/ownlist.cxx +++ b/svl/source/misc/ownlist.cxx @@ -63,12 +63,8 @@ static void eatSpace(const OUString & rCmd, sal_Int32 * pIndex) /** * Text is parsed and the single commands are added to the list. * - * @returns bool true - * The text was correctly parsed - false - The text was not parsed correctly */ -bool SvCommandList::AppendCommands +void SvCommandList::AppendCommands ( const OUString & rCmd, /* This text is translated to commands */ sal_Int32 * pEaten /* Count of chars that have been read */ @@ -95,27 +91,22 @@ bool SvCommandList::AppendCommands } *pEaten = index; - - return true; } /** * An object of the type SvCommand is created and the list is * attached. - * - * @returns SvCommand & The created object */ -SvCommand & SvCommandList::Append +void SvCommandList::Append ( const OUString & rCommand, /* The command */ const OUString & rArg /* The command's argument */ ) { aCommandList.push_back( SvCommand( rCommand, rArg ) ); - return aCommandList.back(); } -bool SvCommandList::FillFromSequence( const css::uno::Sequence < css::beans::PropertyValue >& aCommandSequence ) +void SvCommandList::FillFromSequence( const css::uno::Sequence < css::beans::PropertyValue >& aCommandSequence ) { const sal_Int32 nCount = aCommandSequence.getLength(); OUString aCommand, aArg; @@ -124,12 +115,10 @@ bool SvCommandList::FillFromSequence( const css::uno::Sequence < css::beans::Pro { aCommand = aCommandSequence[nIndex].Name; if( !( aCommandSequence[nIndex].Value >>= aApiArg ) ) - return false; + return; aArg = aApiArg; Append( aCommand, aArg ); } - - return true; } void SvCommandList::FillSequence( css::uno::Sequence < css::beans::PropertyValue >& aCommandSequence ) |