Kaydet (Commit) dca2588b authored tarafından Takeshi Abe's avatar Takeshi Abe

cppcheck: remove assigned but unused variable

üst c85c4bd7
...@@ -516,7 +516,6 @@ void unoInterfaceProxyDispatch( ...@@ -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)
{ {
......
...@@ -171,8 +171,6 @@ sal_Bool processCntTypesAndWriteResultIntoFile( char* fname, vector< string >& v ...@@ -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
......
...@@ -677,8 +677,7 @@ SwTwips GetTableWidth( SwFrmFmt* pFmt, SwTabCols& rCols, sal_uInt16 *pPercent, ...@@ -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();
} }
......
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