Found by gcc: operation on 'preview_ptr' may be undefined [-Wsequence-point]
This commit is contained in:
Georg Baum 2015-10-09 21:37:43 +02:00
parent ad8e7bb56f
commit 3602baa40c

View File

@ -617,7 +617,7 @@ void InsetExternal::setParams(InsetExternalParams const & p)
break;
case PREVIEW_INSTANT: {
renderer_.reset(new RenderMonitoredPreview(this));
RenderMonitoredPreview * preview_ptr = preview_ptr = renderer_->asMonitoredPreview();
RenderMonitoredPreview * preview_ptr = renderer_->asMonitoredPreview();
preview_ptr->fileChanged(bind(&InsetExternal::fileChanged, this));
if (preview_ptr->monitoring())
preview_ptr->stopMonitoring();