diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-11 16:37:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-11 20:18:19 +0000 |
commit | 3a81e90a45e361bef3dbacf533f6a5ddf7e901fa (patch) | |
tree | 467702c91dc60d5e159d1650109b46e34b62f5d1 /dbaccess/source/ui/tabledesign/TEditControl.cxx | |
parent | f8f18871b0293e8a8b5a9fa24a99e44902946ff4 (diff) |
longparas: lift 16bit max edit length
Change-Id: Ide74f0a48f06cbe9539f16ef6c6d04bba043dcf9
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TEditControl.cxx')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TEditControl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx index 6156cd366c56..820ba0f279d0 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.cxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx @@ -219,7 +219,7 @@ void OTableEditorCtrl::InitCellController() { DBG_CHKTHIS(OTableEditorCtrl,NULL); // Cell Field name - xub_StrLen nMaxTextLen = EDIT_NOLIMIT; + sal_Int32 nMaxTextLen = EDIT_NOLIMIT; OUString sExtraNameChars; Reference<XConnection> xCon; try @@ -227,7 +227,7 @@ void OTableEditorCtrl::InitCellController() xCon = GetView()->getController().getConnection(); Reference< XDatabaseMetaData> xMetaData = xCon.is() ? xCon->getMetaData() : Reference< XDatabaseMetaData>(); - nMaxTextLen = ((xub_StrLen)xMetaData.is() ? static_cast<xub_StrLen>(xMetaData->getMaxColumnNameLength()) : 0); + nMaxTextLen = xMetaData.is() ? xMetaData->getMaxColumnNameLength() : 0; if( nMaxTextLen == 0 ) nMaxTextLen = EDIT_NOLIMIT; @@ -312,7 +312,7 @@ sal_Bool OTableEditorCtrl::SetDataPtr( long nRow ) if(nRow == -1) return sal_False; - OSL_ENSURE((xub_StrLen)nRow < m_pRowList->size(),"Row is greater than size!"); + OSL_ENSURE(nRow < (long)m_pRowList->size(),"Row is greater than size!"); if(nRow >= (long)m_pRowList->size()) return sal_False; pActRow = (*m_pRowList)[nRow]; @@ -806,7 +806,7 @@ OUString OTableEditorCtrl::GenerateName( const OUString& rName ) Reference<XConnection> xCon = GetView()->getController().getConnection(); Reference< XDatabaseMetaData> xMetaData = xCon.is() ? xCon->getMetaData() : Reference< XDatabaseMetaData>(); - xub_StrLen nMaxTextLen((xub_StrLen)( xMetaData.is() ? xMetaData->getMaxColumnNameLength() : 0)); + sal_Int32 nMaxTextLen(xMetaData.is() ? xMetaData->getMaxColumnNameLength() : 0); if( (rName.getLength()+2) >nMaxTextLen ) aBaseName = rName.copy( 0, nMaxTextLen-2 ); |