summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 08:35:26 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 08:35:26 +0000
commiteb293520c8a736c94e028fbb228060558cfcd8cc (patch)
tree94c285c18b840a46b65c911ec60e48fddc29f4c5 /sw/source/core/unocore
parent060ea46c1b2686e7f41b70ec6e24c753d5876997 (diff)
INTEGRATION: CWS swwarnings (1.25.130); FILE MERGED
2007/06/28 11:53:03 os 1.25.130.4: RESYNC: (1.25-1.26); FILE MERGED 2007/04/03 13:00:33 tl 1.25.130.3: #i69287# warning-free code 2007/03/15 15:51:16 tl 1.25.130.2: #i69287# warning-free code 2007/03/09 13:49:01 ama 1.25.130.1: #i69287#: warning free code
Diffstat (limited to 'sw/source/core/unocore')
-rw-r--r--sw/source/core/unocore/unocrsrhelper.cxx23
1 files changed, 11 insertions, 12 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index bc88f25d7ae1..724bccb92609 100644
--- a/sw/source/core/unocore/unocrsrhelper.cxx
+++ b/sw/source/core/unocore/unocrsrhelper.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: unocrsrhelper.cxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: ihi $ $Date: 2007-06-05 17:32:14 $
+ * last change: $Author: hr $ $Date: 2007-09-27 09:35:26 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -196,7 +196,7 @@ sal_Bool getCrsrPropertyValue(const SfxItemPropertyMap* pMap
sal_Int8 nRet = -1;
if (pTmpNode && pTmpNode->GetOutlineLevel() != NO_NUMBERING)
- nRet = pTmpNode->GetOutlineLevel();
+ nRet = sal::static_int_cast< sal_Int8 >(pTmpNode->GetOutlineLevel());
*pAny <<= nRet;
}
@@ -215,7 +215,7 @@ sal_Bool getCrsrPropertyValue(const SfxItemPropertyMap* pMap
if( pAny )
{
String sVal;
- SwStyleNameMapper::FillProgName(pFmt->GetName(), sVal, GET_POOLID_TXTCOLL, sal_True );
+ SwStyleNameMapper::FillProgName(pFmt->GetName(), sVal, nsSwGetPoolIdFromName::GET_POOLID_TXTCOLL, sal_True );
*pAny <<= OUString(sVal);
}
}
@@ -384,7 +384,7 @@ sal_Bool getCrsrPropertyValue(const SfxItemPropertyMap* pMap
{
const SwTableNode* pTblNode = pSttNode->FindTableNode();
SwFrmFmt* pTableFmt = (SwFrmFmt*)pTblNode->GetTable().GetFrmFmt();
- SwTable& rTable = ((SwTableNode*)pSttNode)->GetTable();
+ //SwTable& rTable = ((SwTableNode*)pSttNode)->GetTable();
if(FN_UNO_TEXT_TABLE == pMap->nWID)
{
uno::Reference< XTextTable > xTable = SwXTextTables::GetObject(*pTableFmt);
@@ -491,7 +491,6 @@ sal_Bool getCrsrPropertyValue(const SfxItemPropertyMap* pMap
nPaMEnd = nTmp;
}
Sequence< ::rtl::OUString> aCharStyles;
- USHORT nCharStylesFound = 0;
SwpHints* pHints = pTxtNode->GetpSwpHints();
for(USHORT nAttr = 0; nAttr < pHints->GetStartCount(); nAttr++ )
{
@@ -523,7 +522,7 @@ sal_Bool getCrsrPropertyValue(const SfxItemPropertyMap* pMap
DBG_ASSERT(pAttr->GetCharFmt().GetCharFmt(), "no character format set");
aCharStyles.getArray()[aCharStyles.getLength() - 1] =
SwStyleNameMapper::GetProgName(
- pAttr->GetCharFmt().GetCharFmt()->GetName(), GET_POOLID_CHRFMT);
+ pAttr->GetCharFmt().GetCharFmt()->GetName(), nsSwGetPoolIdFromName::GET_POOLID_CHRFMT);
}
}
@@ -554,8 +553,8 @@ sal_Int16 IsNodeNumStart(SwPaM& rPam, PropertyState& eState)
if( pTxtNd && pTxtNd->GetNumRule() && pTxtNd->IsRestart())
{
eState = PropertyState_DIRECT_VALUE;
- sal_uInt16 nTmp = pTxtNd->GetStart();
- return (sal_Int16)nTmp;
+ sal_Int16 nTmp = sal::static_int_cast< sal_Int16 >(pTxtNd->GetStart());
+ return nTmp;
}
eState = PropertyState_DEFAULT_VALUE;
return -1;
@@ -574,8 +573,8 @@ void setNumberingProperty(const Any& rValue, SwPaM& rPam)
uno::Reference<XUnoTunnel> xNumTunnel(xIndexReplace, UNO_QUERY);
if(xNumTunnel.is())
{
- pSwNum = (SwXNumberingRules*)
- xNumTunnel->getSomething( SwXNumberingRules::getUnoTunnelId() );
+ pSwNum = reinterpret_cast< SwXNumberingRules * >(
+ sal::static_int_cast< sal_IntPtr >( xNumTunnel->getSomething( SwXNumberingRules::getUnoTunnelId() )));
}
if(pSwNum)
@@ -700,7 +699,7 @@ void GetCurPageStyle(SwPaM& rPaM, String &rString)
{
const SwPageFrm* pPage = rPaM.GetCntntNode()->GetFrm()->FindPageFrm();
if(pPage)
- SwStyleNameMapper::FillProgName( pPage->GetPageDesc()->GetName(), rString, GET_POOLID_PAGEDESC, sal_True );
+ SwStyleNameMapper::FillProgName( pPage->GetPageDesc()->GetName(), rString, nsSwGetPoolIdFromName::GET_POOLID_PAGEDESC, sal_True );
}
/* -----------------30.03.99 10:52-------------------
* spezielle Properties am Cursor zuruecksetzen