Kaydet (Commit) 8a9bc476 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735883 Unchecked dynamic_cast

Change-Id: I4dec526d78dfaa1d894ab1be205e58e1224fbf72
üst a7e1ffc2
...@@ -1124,12 +1124,12 @@ void TableModel::merge( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nColSpan, sal_ ...@@ -1124,12 +1124,12 @@ void TableModel::merge( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nColSpan, sal_
// merge first cell // merge first cell
CellRef xOriginCell( dynamic_cast< Cell* >( getCellByPosition( nCol, nRow ).get() ) ); CellRef xOriginCell( dynamic_cast< Cell* >( getCellByPosition( nCol, nRow ).get() ) );
if( xOriginCell.is() ) if(!xOriginCell.is())
{ return;
if( bUndo ) if( bUndo )
xOriginCell->AddUndo(); xOriginCell->AddUndo();
xOriginCell->merge( nColSpan, nRowSpan ); xOriginCell->merge( nColSpan, nRowSpan );
}
sal_Int32 nTempCol = nCol + 1; sal_Int32 nTempCol = nCol + 1;
...@@ -1151,9 +1151,6 @@ void TableModel::merge( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nColSpan, sal_ ...@@ -1151,9 +1151,6 @@ void TableModel::merge( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nColSpan, sal_
} }
} }
void TableModel::updateRows() void TableModel::updateRows()
{ {
sal_Int32 nRow = 0; sal_Int32 nRow = 0;
...@@ -1164,8 +1161,6 @@ void TableModel::updateRows() ...@@ -1164,8 +1161,6 @@ void TableModel::updateRows()
} }
} }
void TableModel::updateColumns() void TableModel::updateColumns()
{ {
sal_Int32 nColumn = 0; sal_Int32 nColumn = 0;
...@@ -1176,8 +1171,6 @@ void TableModel::updateColumns() ...@@ -1176,8 +1171,6 @@ void TableModel::updateColumns()
} }
} }
} } } }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment