Kaydet (Commit) 4c5ad241 authored tarafından Mike Kaganski's avatar Mike Kaganski

tdf#120703 (PVS): redundant nullptr check

V668 There is no sense in testing the 'm_spNumberFormatterWrapper' pointer
     against null, as the memory was allocated using the 'new' operator.
     The exception will be generated in the case of memory allocation error.

Change-Id: Id9e89bfcb412c6034ac3c06f67236a77d335c9fc
Reviewed-on: https://gerrit.libreoffice.org/62127
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 33a8afed
......@@ -819,8 +819,7 @@ void DataBrowser::SetDataFromModel(
new NumberFormatterWrapper(
Reference< util::XNumberFormatsSupplier >( m_xChartDoc, uno::UNO_QUERY )));
if( m_spNumberFormatterWrapper.get() )
m_aNumberEditField->SetFormatter( m_spNumberFormatterWrapper->getSvNumberFormatter() );
m_aNumberEditField->SetFormatter( m_spNumberFormatterWrapper->getSvNumberFormatter() );
RenewTable();
......
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