summaryrefslogtreecommitdiff
path: root/sw
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 /sw
parentc85c4bd785eb4704e7c356dfb8ae35a8d4ede2a6 (diff)
cppcheck: remove assigned but unused variable
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/utlui/uitool.cxx3
1 files changed, 1 insertions, 2 deletions
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();
}