diff options
Diffstat (limited to 'sw/source/core/edit/edfldexp.cxx')
-rw-r--r-- | sw/source/core/edit/edfldexp.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/edit/edfldexp.cxx b/sw/source/core/edit/edfldexp.cxx index 1bc78a5a7482..6359c982507e 100644 --- a/sw/source/core/edit/edfldexp.cxx +++ b/sw/source/core/edit/edfldexp.cxx @@ -49,21 +49,21 @@ using ::rtl::OUString; /* -----------------28.11.2002 17:53----------------- * * --------------------------------------------------*/ -BOOL SwEditShell::IsFieldDataSourceAvailable(String& rUsedDataSource) const +sal_Bool SwEditShell::IsFieldDataSourceAvailable(String& rUsedDataSource) const { const SwFldTypes * pFldTypes = GetDoc()->GetFldTypes(); - const USHORT nSize = pFldTypes->Count(); + const sal_uInt16 nSize = pFldTypes->Count(); uno::Reference< lang::XMultiServiceFactory > xMgr( ::comphelper::getProcessServiceFactory() ); if( !xMgr.is() ) - return FALSE; + return sal_False; uno::Reference<uno::XInterface> xInstance = xMgr->createInstance( OUString::createFromAscii( "com.sun.star.sdb.DatabaseContext" )); uno::Reference<container::XNameAccess> xDBContext(xInstance, uno::UNO_QUERY) ; if(!xDBContext.is()) - return FALSE; - for(USHORT i = 0; i < nSize; ++i) + return sal_False; + for(sal_uInt16 i = 0; i < nSize; ++i) { SwFieldType& rFldType = *((*pFldTypes)[i]); - USHORT nWhich = rFldType.Which(); + sal_uInt16 nWhich = rFldType.Which(); if(IsUsed(rFldType)) { switch(nWhich) @@ -85,7 +85,7 @@ BOOL SwEditShell::IsFieldDataSourceAvailable(String& rUsedDataSource) const catch(uno::Exception const &) { rUsedDataSource = rData.sDataSource; - return FALSE; + return sal_False; } } pFld = (SwFmtFld*)aIter.Next(); @@ -95,7 +95,7 @@ BOOL SwEditShell::IsFieldDataSourceAvailable(String& rUsedDataSource) const } } } - return TRUE; + return sal_True; } |