summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-08-16 23:48:20 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-08-17 00:04:04 +0900
commitdca2588b6430e084eb708cfe69d36c3d46a5411e (patch)
treec1b976e0a729ac025b6587d6c5e3810fc6a7b6d9
parentc85c4bd785eb4704e7c356dfb8ae35a8d4ede2a6 (diff)
cppcheck: remove assigned but unused variable
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp.cxx1
-rw-r--r--dtrans/source/cnttype/wbench/testcnttype.cxx2
-rw-r--r--sw/source/ui/utlui/uitool.cxx3
3 files changed, 1 insertions, 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();
}