diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-09-27 10:45:59 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-09-27 10:45:59 +0000 |
commit | d7a6dede15ec8be66ff3e0b0373bdae966f9d0ef (patch) | |
tree | 8ef97007d2b93c394bb0c7990a0f19aeeeb2b2dc /sw/source/ui/fldui/flddb.cxx | |
parent | 8ad716fe3e2b6cfdfa5831e66ddd77b7a5da9133 (diff) |
INTEGRATION: CWS swwarnings (1.19.222); FILE MERGED
2007/05/29 12:48:38 os 1.19.222.3: RESYNC: (1.19-1.20); FILE MERGED
2007/03/12 12:27:26 ama 1.19.222.2: i69287#: warning free code
2007/03/05 12:45:41 tl 1.19.222.1: #i69287# warning-free code
Diffstat (limited to 'sw/source/ui/fldui/flddb.cxx')
-rw-r--r-- | sw/source/ui/fldui/flddb.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx index 700d4cf9d9..bbf611d12f 100644 --- a/sw/source/ui/fldui/flddb.cxx +++ b/sw/source/ui/fldui/flddb.cxx @@ -4,9 +4,9 @@ * * $RCSfile: flddb.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: rt $ $Date: 2007-04-26 09:09:36 $ + * last change: $Author: hr $ $Date: 2007-09-27 11:45:59 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -128,7 +128,7 @@ __EXPORT SwFldDBPage::~SwFldDBPage() Beschreibung: TabPage initialisieren --------------------------------------------------------------------*/ -void __EXPORT SwFldDBPage::Reset(const SfxItemSet& rSet) +void __EXPORT SwFldDBPage::Reset(const SfxItemSet&) { Init(); // Allgemeine initialisierung @@ -149,14 +149,14 @@ void __EXPORT SwFldDBPage::Reset(const SfxItemSet& rSet) { nTypeId = GetFldMgr().GetTypeId(i); nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(i)); - aTypeLB.SetEntryData(nPos, (void*)nTypeId); + aTypeLB.SetEntryData(nPos, reinterpret_cast<void*>(nTypeId)); } } else { nTypeId = GetCurField()->GetTypeId(); nPos = aTypeLB.InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId))); - aTypeLB.SetEntryData(nPos, (void*)nTypeId); + aTypeLB.SetEntryData(nPos, reinterpret_cast<void*>(nTypeId)); } // alte Pos selektieren @@ -168,11 +168,11 @@ void __EXPORT SwFldDBPage::Reset(const SfxItemSet& rSet) USHORT nSize = GetFldMgr().GetFormatCount(TYP_DBSETNUMBERFLD, FALSE, IsFldDlgHtmlMode()); for( i = 0; i < nSize; ++i ) { - USHORT nPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(TYP_DBSETNUMBERFLD, i)); + USHORT nEntryPos = aFormatLB.InsertEntry(GetFldMgr().GetFormatStr(TYP_DBSETNUMBERFLD, i)); USHORT nFmtId = GetFldMgr().GetFormatId( TYP_DBSETNUMBERFLD, i ); - aFormatLB.SetEntryData( nPos, (void*)nFmtId ); + aFormatLB.SetEntryData( nEntryPos, reinterpret_cast<void*>(nFmtId) ); if( SVX_NUM_ARABIC == nFmtId ) - aFormatLB.SelectEntryPos( nPos ); + aFormatLB.SelectEntryPos( nEntryPos ); } if (!IsFldEdit()) @@ -190,7 +190,7 @@ void __EXPORT SwFldDBPage::Reset(const SfxItemSet& rSet) if(!pSh) pSh = ::GetActiveWrtShell(); if(pSh) - { + { SwDBData aTmp(pSh->GetDBData()); aDatabaseTLB.Select(aTmp.sDataSource, aTmp.sCommand, aEmptyStr); } @@ -206,7 +206,7 @@ void __EXPORT SwFldDBPage::Reset(const SfxItemSet& rSet) USHORT nVal = (USHORT)sVal.ToInt32(); if(nVal != USHRT_MAX) { - for(USHORT i = 0; i < aTypeLB.GetEntryCount(); i++) + for(i = 0; i < aTypeLB.GetEntryCount(); i++) if(nVal == (USHORT)(ULONG)aTypeLB.GetEntryData(i)) { aTypeLB.SelectEntryPos(i); @@ -235,7 +235,7 @@ void __EXPORT SwFldDBPage::Reset(const SfxItemSet& rSet) Beschreibung: --------------------------------------------------------------------*/ -BOOL __EXPORT SwFldDBPage::FillItemSet(SfxItemSet& rSet) +BOOL __EXPORT SwFldDBPage::FillItemSet(SfxItemSet& ) { String sTableName, sColumnName; SwDBData aData; @@ -276,7 +276,7 @@ BOOL __EXPORT SwFldDBPage::FillItemSet(SfxItemSet& rSet) case TYP_DBFLD: nFormat = aNumFormatLB.GetFormat(); if (aNewFormatRB.IsEnabled() && aNewFormatRB.IsChecked()) - nSubType = SUB_OWN_FMT; + nSubType = nsSwExtendedSubType::SUB_OWN_FMT; aName = sDBName; break; @@ -383,7 +383,7 @@ IMPL_LINK( SwFldDBPage, TypeHdl, ListBox *, pBox ) if (GetCurField()->GetFormat() != 0 && GetCurField()->GetFormat() != ULONG_MAX) aNumFormatLB.SetDefFormat(GetCurField()->GetFormat()); - if (GetCurField()->GetSubType() & SUB_OWN_FMT) + if (GetCurField()->GetSubType() & nsSwExtendedSubType::SUB_OWN_FMT) aNewFormatRB.Check(); else aDBFormatRB.Check(); @@ -551,7 +551,7 @@ IMPL_LINK( SwFldDBPage, AddDBHdl, PushButton *, EMPTYARG ) if(sNewDB.Len()) { aDatabaseTLB.AddDataSource(sNewDB); - } + } return 0; } @@ -583,7 +583,7 @@ void SwFldDBPage::FillUserData() SetUserData(sData); } /* -----------------12.12.2002 11:33----------------- - * + * * --------------------------------------------------*/ void SwFldDBPage::ActivateMailMergeAddress() { @@ -592,7 +592,7 @@ void SwFldDBPage::ActivateMailMergeAddress() aTypeLB.GetSelectHdl().Call(&aTypeLB); const SwDBData& rData = SW_MOD()->GetDBConfig()->GetAddressSource(); aDatabaseTLB.Select(rData.sDataSource, rData.sCommand, aEmptyStr); -} +} /*-- 07.10.2003 13:59:04--------------------------------------------------- -----------------------------------------------------------------------*/ |