Kaydet (Commit) c50cd967 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:returnconstant in reportdesign

Change-Id: I3a198faad8f4dff607b1a7e1a06afda0225b4f9a
Reviewed-on: https://gerrit.libreoffice.org/58964
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 22c7ae97
......@@ -42,7 +42,7 @@ namespace rptui
private:
/// does late initializations, return whether or not successful
bool impl_lateInit_nothrow();
void impl_lateInit_nothrow();
void impl_adjustFormatConditions_nothrow(
const css::uno::Reference< css::report::XReportControlModel >& _rxRptControlModel,
......
......@@ -52,8 +52,7 @@ namespace rptui
void ConditionUpdater::notifyPropertyChange( const PropertyChangeEvent& _rEvent )
{
if ( !impl_lateInit_nothrow() )
return;
impl_lateInit_nothrow();
Reference< XReportControlModel > xRptControlModel( _rEvent.Source, UNO_QUERY );
if ( xRptControlModel.is() && _rEvent.PropertyName == "DataField" )
......@@ -66,13 +65,12 @@ namespace rptui
}
bool ConditionUpdater::impl_lateInit_nothrow()
void ConditionUpdater::impl_lateInit_nothrow()
{
if ( !m_aConditionalExpressions.empty() )
return true;
return;
ConditionalExpressionFactory::getKnownConditionalExpressions( m_aConditionalExpressions );
return true;
}
......
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