[Libreoffice-commits] core.git: sfx2/source
Julien Nabet
serval2412 at yahoo.fr
Fri Mar 22 14:20:24 PDT 2013
sfx2/source/control/sorgitm.cxx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
New commits:
commit c4c8bf85d25def82b9aba783461010e6ad9ab06c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Mar 22 22:17:56 2013 +0100
coverity#440784 Logically dead code + cleanup
Change-Id: Ib620de7cf05d0c84efd933a141f3ab0a6c1c2fd5
diff --git a/sfx2/source/control/sorgitm.cxx b/sfx2/source/control/sorgitm.cxx
index fcdc7d7..ed2e628 100644
--- a/sfx2/source/control/sorgitm.cxx
+++ b/sfx2/source/control/sorgitm.cxx
@@ -70,14 +70,11 @@ int SfxScriptOrganizerItem::operator==( const SfxPoolItem& rItem) const
bool SfxScriptOrganizerItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) const
{
String aValue;
- sal_Bool bIsString = sal_False;
- sal_Bool bValue = sal_False;
nMemberId &= ~CONVERT_TWIPS;
switch ( nMemberId )
{
case 0:
case MID_SCRIPT_ORGANIZER_LANGUAGE:
- bIsString = sal_True;
aValue = aLanguage;
break;
default:
@@ -85,10 +82,8 @@ bool SfxScriptOrganizerItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uIn
return false;
}
- if ( bIsString )
- rVal <<= ::rtl::OUString( aValue );
- else
- rVal <<= bValue;
+ rVal <<= ::rtl::OUString( aValue );
+
return true;
}
More information about the Libreoffice-commits
mailing list