cppcheck: remove assigned but unused variable

This commit is contained in:
Takeshi Abe
2011-08-16 23:48:20 +09:00
parent c85c4bd785
commit dca2588b64
3 changed files with 1 additions and 5 deletions

View File

@@ -516,7 +516,6 @@ void unoInterfaceProxyDispatch(
// is my surrogate // is my surrogate
bridges::cpp_uno::shared::UnoInterfaceProxy * pThis bridges::cpp_uno::shared::UnoInterfaceProxy * pThis
= static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy *> (pUnoI); = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy *> (pUnoI);
typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
switch (pMemberDescr->eTypeClass) switch (pMemberDescr->eTypeClass)
{ {

View File

@@ -171,8 +171,6 @@ sal_Bool processCntTypesAndWriteResultIntoFile( char* fname, vector< string >& v
fseek( fstream, 0L, SEEK_SET ); fseek( fstream, 0L, SEEK_SET );
vector< string >::iterator iter_end = vecData.end( ); vector< string >::iterator iter_end = vecData.end( );
const char* pStr = NULL;
for ( vector< string >::iterator iter = vecData.begin( ); iter != iter_end; ++iter ) for ( vector< string >::iterator iter = vecData.begin( ); iter != iter_end; ++iter )
{ {
try try

View File

@@ -677,8 +677,7 @@ SwTwips GetTableWidth( SwFrmFmt* pFmt, SwTabCols& rCols, sal_uInt16 *pPercent,
{ {
if(pSh) if(pSh)
{ {
const SwFrmFmt *pFlyFmt; if ( 0 == pSh->GetFlyFrmFmt() )
if ( 0 == (pFlyFmt = pSh->GetFlyFrmFmt()) )
{ {
nWidth = pSh->GetAnyCurRect(RECT_PAGE_PRT).Width(); nWidth = pSh->GetAnyCurRect(RECT_PAGE_PRT).Width();
} }