summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/misc/WColumnSelect.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 12:40:49 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 12:40:49 +0000
commit48abd18d4dc503df70e5b47659fbfa05a51fdfa3 (patch)
treef09b75c9d0490e61f5fc36ca56d2cb5a9ade923d /dbaccess/source/ui/misc/WColumnSelect.cxx
parenta56611f27ea18fa4316210a04eeb6df9e90f5b93 (diff)
INTEGRATION: CWS sb59 (1.20.28); FILE MERGED
2006/08/29 11:44:30 sb 1.20.28.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'dbaccess/source/ui/misc/WColumnSelect.cxx')
-rw-r--r--dbaccess/source/ui/misc/WColumnSelect.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/dbaccess/source/ui/misc/WColumnSelect.cxx b/dbaccess/source/ui/misc/WColumnSelect.cxx
index 963077a5f97b..46e459b7baeb 100644
--- a/dbaccess/source/ui/misc/WColumnSelect.cxx
+++ b/dbaccess/source/ui/misc/WColumnSelect.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: WColumnSelect.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 07:14:34 $
+ * last change: $Author: obo $ $Date: 2006-10-12 13:40:49 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -213,7 +213,7 @@ sal_Bool OWizColumnSelect::LeavePage()
if ( m_pParent->GetPressedButton() == OCopyTableWizard::WIZARD_NEXT
|| m_pParent->GetPressedButton() == OCopyTableWizard::WIZARD_FINISH
)
- return m_pParent->getDestColumns()->size();
+ return m_pParent->getDestColumns()->size() != 0;
else
return sal_True;
}
@@ -391,10 +391,10 @@ void OWizColumnSelect::moveColumn( ListBox* _pRight,
const ODatabaseExport::TColumnVector* pSrcVector = m_pParent->getSrcVector();
ODatabaseExport::TColumnVector::const_iterator aPos = ::std::find(pSrcVector->begin(),pSrcVector->end(),aSrcIter);
OSL_ENSURE( aPos != pSrcVector->end(),"Invalid position for the iterator here!");
- USHORT nPos = (aPos - pSrcVector->begin()) - adjustColumnPosition(_pLeft, _sColumnName, (aPos - pSrcVector->begin()), _aCase);
+ ODatabaseExport::TColumnVector::size_type nPos = (aPos - pSrcVector->begin()) - adjustColumnPosition(_pLeft, _sColumnName, (aPos - pSrcVector->begin()), _aCase);
m_pParent->removeColumnNameFromNameMap(_sColumnName);
- _pRight->SetEntryData( _pRight->InsertEntry( (*aIter).first, nPos),aSrcIter->second );
+ _pRight->SetEntryData( _pRight->InsertEntry( (*aIter).first, sal::static_int_cast< USHORT >(nPos)),aSrcIter->second );
_rRightColumns.push_back((*aIter).first);
m_pParent->removeColumnNameFromNameMap(_sColumnName);
}
@@ -407,7 +407,7 @@ void OWizColumnSelect::moveColumn( ListBox* _pRight,
// algorithm employed in moveColumn().
USHORT OWizColumnSelect::adjustColumnPosition( ListBox* _pLeft,
const ::rtl::OUString& _sColumnName,
- USHORT nCurrentPos,
+ ODatabaseExport::TColumnVector::size_type nCurrentPos,
const ::comphelper::TStringMixEqualFunctor& _aCase)
{
USHORT nAdjustedPos = 0;
@@ -439,7 +439,7 @@ USHORT OWizColumnSelect::adjustColumnPosition( ListBox* _pLeft,
// we need also the old position of this column to insert it back on that position again
const ODatabaseExport::TColumnVector* pSrcVector = m_pParent->getSrcVector();
ODatabaseExport::TColumnVector::const_iterator aPos = ::std::find(pSrcVector->begin(),pSrcVector->end(),aSrcIter);
- USHORT nPos = aPos - pSrcVector->begin();
+ ODatabaseExport::TColumnVector::size_type nPos = aPos - pSrcVector->begin();
if( nPos < nCurrentPos)
{
nAdjustedPos++;