summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2010-02-15 15:55:35 +0100
committerVladimir Glazunov <vg@openoffice.org>2010-02-15 15:55:35 +0100
commit6cc84b3470058abb21567506228112eb15ba59f5 (patch)
tree1fece16d8ae674b450a865105420ab85c8bcdd1f
parent5464a059a5822cd6b88b2b8c9989ae906e80bf34 (diff)
parent03dcc35605f47325fae5c8398b57352d71e6924c (diff)
CWS-TOOLING: integrate CWS cmcfixes71
-rw-r--r--sw/source/core/docnode/ndtbl1.cxx8
-rw-r--r--sw/source/core/fields/expfld.cxx2
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
-rw-r--r--sw/source/core/unocore/unoobj.cxx2
4 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/docnode/ndtbl1.cxx b/sw/source/core/docnode/ndtbl1.cxx
index a2f5d315cf27..8ee3a643e606 100644
--- a/sw/source/core/docnode/ndtbl1.cxx
+++ b/sw/source/core/docnode/ndtbl1.cxx
@@ -176,8 +176,8 @@ BOOL lcl_GetBoxSel( const SwCursor& rCursor, SwSelBoxes& rBoxes,
inline void InsertLine( SvPtrarr& rLineArr, SwTableLine* pLine )
{
- if( USHRT_MAX == rLineArr.GetPos( (void*&)pLine ) )
- rLineArr.Insert( (void*&)pLine, rLineArr.Count() );
+ if( USHRT_MAX == rLineArr.GetPos( pLine ) )
+ rLineArr.Insert( pLine, rLineArr.Count() );
}
//-----------------------------------------------------------------------------
@@ -560,8 +560,8 @@ BOOL SwDoc::GetRowBackground( const SwCursor& rCursor, SvxBrushItem &rToFill ) c
#***********************************************************************/
inline void InsertCell( SvPtrarr& rCellArr, SwCellFrm* pCellFrm )
{
- if( USHRT_MAX == rCellArr.GetPos( (void*&)pCellFrm ) )
- rCellArr.Insert( (void*&)pCellFrm, rCellArr.Count() );
+ if( USHRT_MAX == rCellArr.GetPos( pCellFrm ) )
+ rCellArr.Insert( pCellFrm, rCellArr.Count() );
}
//-----------------------------------------------------------------------------
diff --git a/sw/source/core/fields/expfld.cxx b/sw/source/core/fields/expfld.cxx
index fd7251531559..ab61de5bcc09 100644
--- a/sw/source/core/fields/expfld.cxx
+++ b/sw/source/core/fields/expfld.cxx
@@ -1298,7 +1298,7 @@ BOOL SwSetExpField::PutValue( const uno::Any& rAny, USHORT nWhichId )
break;
case FIELD_PROP_DOUBLE:
{
- double fVal;
+ double fVal = 0.0;
rAny >>= fVal;
SetValue(fVal);
}
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index df0393c3f213..da2dbdfc29f9 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -557,7 +557,7 @@ void SwLineRects::ConnectEdges( OutputDevice *pOut )
(nL1b <= nL2b && nL1c + nAdd > nL2b)) )
{
SwLineRect *pMSC = &rL2;
- aCheck.Insert( (void*&)pMSC, aCheck.Count() );
+ aCheck.Insert( pMSC, aCheck.Count() );
}
}
if ( aCheck.Count() < 2 )
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 3576661bc7e3..cc8b234abba0 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -843,7 +843,7 @@ void SwXTextCursor::Impl::Modify(SfxPoolItem *pOld, SfxPoolItem *pNew)
if (!GetRegisteredIn() ||
// if the cursor leaves its designated section, it becomes invalid
- (pOld != NULL) && (pOld->Which() == RES_UNOCURSOR_LEAVES_SECTION))
+ ((pOld != NULL) && (pOld->Which() == RES_UNOCURSOR_LEAVES_SECTION)))
{
Invalidate();
}