coverity#1219801 Uncaught exception

Change-Id: I372c1891e41510c24daf256d00f3ca98e8a374a9
This commit is contained in:
Caolán McNamara
2014-06-03 16:49:15 +01:00
parent c087b60b0d
commit 0301abbbc3
4 changed files with 17 additions and 3 deletions

View File

@@ -206,6 +206,8 @@ namespace dbaui
void IndexFieldsControl::Init(const Sequence< OUString >& _rAvailableFields)
{
fprintf(stderr, " _rAvailableFields len is %d\n", _rAvailableFields.getLength());
RemoveColumns();
// for the width: both columns together should be somewhat smaller than the whole window (without the scrollbar)
@@ -235,6 +237,9 @@ namespace dbaui
m_pSortingCell->InsertEntry(m_sAscendingText);
m_pSortingCell->InsertEntry(m_sDescendingText);
m_pSortingCell->SetHelpId( HID_DLGINDEX_INDEXDETAILS_SORTORDER );
m_pSortingCell->Show();
fprintf(stderr, "created m_pSortingCell %p\n", m_pSortingCell);
nFieldNameWidth -= nSortOrderColumnWidth;
}
@@ -253,7 +258,11 @@ namespace dbaui
const OUString* pFields = _rAvailableFields.getConstArray();
const OUString* pFieldsEnd = pFields + _rAvailableFields.getLength();
for (;pFields < pFieldsEnd; ++pFields)
{
fprintf(stderr, "foo is %s\n", OUStringToOString(*pFields, RTL_TEXTENCODING_UTF8).getStr());
m_pFieldNameCell->InsertEntry(*pFields);
}
m_pFieldNameCell->Show();
}
CellController* IndexFieldsControl::GetController(long _nRow, sal_uInt16 _nColumnId)