diff options
Diffstat (limited to 'svtools/source/table')
-rw-r--r-- | svtools/source/table/cellvalueconversion.cxx | 2 | ||||
-rw-r--r-- | svtools/source/table/gridtablerenderer.cxx | 4 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/table/cellvalueconversion.cxx b/svtools/source/table/cellvalueconversion.cxx index 6f1b477bc517..3c4728e652d0 100644 --- a/svtools/source/table/cellvalueconversion.cxx +++ b/svtools/source/table/cellvalueconversion.cxx @@ -378,7 +378,7 @@ namespace svt else o_formatter = pos->second; - return !!o_formatter; + return bool(o_formatter); } } diff --git a/svtools/source/table/gridtablerenderer.cxx b/svtools/source/table/gridtablerenderer.cxx index 5098a48e84cf..a3d6e84ddb1b 100644 --- a/svtools/source/table/gridtablerenderer.cxx +++ b/svtools/source/table/gridtablerenderer.cxx @@ -246,8 +246,8 @@ namespace svt { namespace table OUString sHeaderText; PColumnModel const pColumn = m_pImpl->rModel.getColumnModel( _nCol ); - DBG_ASSERT( !!pColumn, "GridTableRenderer::PaintColumnHeader: invalid column model object!" ); - if ( !!pColumn ) + DBG_ASSERT( pColumn, "GridTableRenderer::PaintColumnHeader: invalid column model object!" ); + if ( pColumn ) sHeaderText = pColumn->getName(); Color const textColor = lcl_getEffectiveColor( m_pImpl->rModel.getTextColor(), _rStyle, &StyleSettings::GetFieldTextColor ); diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index b16677314e92..d74de8e2a9df 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -257,7 +257,7 @@ namespace svt { namespace table { SuppressCursor aHideCursor( *this ); - if ( !!m_pModel ) + if ( m_pModel ) m_pModel->removeTableModelListener( shared_from_this() ); m_pModel = _pModel; @@ -1659,8 +1659,8 @@ namespace svt { namespace table void TableControl_Impl::impl_ni_doSwitchCursor( bool _bShow ) { - PTableRenderer pRenderer = !!m_pModel ? m_pModel->getRenderer() : PTableRenderer(); - if ( !!pRenderer ) + PTableRenderer pRenderer = m_pModel ? m_pModel->getRenderer() : PTableRenderer(); + if ( pRenderer ) { tools::Rectangle aCellRect; impl_getCellRect( m_nCurColumn, m_nCurRow, aCellRect ); |