diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-16 11:37:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-16 11:37:20 +0200 |
commit | c16f45db0ea20db6ca3906551c01fb18f9258c84 (patch) | |
tree | 76b10928b963578ecad1e390a9e91e644d05a2d2 /sw/source | |
parent | 6e92279a6e2a52d3e609d2f4690c3d5ef1a21059 (diff) |
-Werror,-Wunused-function, loplugin:bodynotinblock
Change-Id: I4bf0b36524d7372ab4b63b5646bead55a1b93122
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index b28cfc5f22c4..cf6683dfc46b 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -168,31 +168,6 @@ const sal_Char cActiveConnection[] = "ActiveConnection"; namespace { -bool lcl_getCountFromResultSet( sal_Int32& rCount, const uno::Reference<XResultSet>& xResultSet ) -{ - uno::Reference<XPropertySet> xPrSet(xResultSet, UNO_QUERY); - if(xPrSet.is()) - { - try - { - bool bFinal = false; - Any aFinal = xPrSet->getPropertyValue("IsRowCountFinal"); - aFinal >>= bFinal; - if(!bFinal) - { - xResultSet->last(); - xResultSet->first(); - } - Any aCount = xPrSet->getPropertyValue("RowCount"); - if( aCount >>= rCount ) - return true; - } - catch(const Exception&) - { - } - } - return false; -} // copy compatibility options void lcl_CopyCompatibilityOptions( SwWrtShell& rSourceShell, SwWrtShell& rTargetShell) { @@ -1126,7 +1101,7 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell, else pTargetPageDesc = pTargetShell->FindPageDescByName( sModifiedStartingPageDesc ); - sal_uInt16 nStartPage = pTargetShell->GetPageCnt(); + sal_uInt16 nStartPage = pTargetShell->GetPageCnt(); #ifdef DBG_UTIL if ( nDocNo <= MAX_DOC_DUMP ) lcl_SaveDoc( xWorkDocSh, "WorkDoc", nDocNo ); |