From dca2588b6430e084eb708cfe69d36c3d46a5411e Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Tue, 16 Aug 2011 23:48:20 +0900 Subject: cppcheck: remove assigned but unused variable --- bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx | 1 - dtrans/source/cnttype/wbench/testcnttype.cxx | 2 -- sw/source/ui/utlui/uitool.cxx | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx index ddaf1f368413..2680ff460e71 100644 --- a/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx @@ -516,7 +516,6 @@ void unoInterfaceProxyDispatch( // is my surrogate bridges::cpp_uno::shared::UnoInterfaceProxy * pThis = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy *> (pUnoI); - typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr; switch (pMemberDescr->eTypeClass) { diff --git a/dtrans/source/cnttype/wbench/testcnttype.cxx b/dtrans/source/cnttype/wbench/testcnttype.cxx index d6b1fe10b1f8..db98529f5aed 100644 --- a/dtrans/source/cnttype/wbench/testcnttype.cxx +++ b/dtrans/source/cnttype/wbench/testcnttype.cxx @@ -171,8 +171,6 @@ sal_Bool processCntTypesAndWriteResultIntoFile( char* fname, vector< string >& v fseek( fstream, 0L, SEEK_SET ); vector< string >::iterator iter_end = vecData.end( ); - const char* pStr = NULL; - for ( vector< string >::iterator iter = vecData.begin( ); iter != iter_end; ++iter ) { try diff --git a/sw/source/ui/utlui/uitool.cxx b/sw/source/ui/utlui/uitool.cxx index bef821dff6df..9c47e8502903 100644 --- a/sw/source/ui/utlui/uitool.cxx +++ b/sw/source/ui/utlui/uitool.cxx @@ -677,8 +677,7 @@ SwTwips GetTableWidth( SwFrmFmt* pFmt, SwTabCols& rCols, sal_uInt16 *pPercent, { if(pSh) { - const SwFrmFmt *pFlyFmt; - if ( 0 == (pFlyFmt = pSh->GetFlyFrmFmt()) ) + if ( 0 == pSh->GetFlyFrmFmt() ) { nWidth = pSh->GetAnyCurRect(RECT_PAGE_PRT).Width(); } -- cgit