]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetExternal.cpp
Fix trailing whitespace in cpp files.
[lyx.git] / src / insets / InsetExternal.cpp
index 8efdd3e97e3972c693123789f8141dc4ba3bb99e..32075d4cf52fe13ad9a7c5b0d49ba60e3f68bd3a 100644 (file)
@@ -39,7 +39,6 @@
 
 #include "graphics/PreviewLoader.h"
 
-#include "support/bind.h"
 #include "support/convert.h"
 #include "support/debug.h"
 #include "support/ExceptionMessage.h"
@@ -103,7 +102,7 @@ TempName & TempName::operator=(TempName const & other)
                        tempname_.removeFile();
                support::TempFile f("lyxextXXXXXX.tmp");
                f.setAutoRemove(false);
-               tempname_ = f.name(); 
+               tempname_ = f.name();
        }
        return *this;
 }
@@ -171,7 +170,7 @@ void InsetExternalParams::settemplate(string const & name)
        clearIfNotFound(resizedata,   external::Resize, ids);
        clearIfNotFound(rotationdata, external::Rotate, ids);
 
-       // 
+       //
        preview_mode = et->preview_mode;
 }
 
@@ -428,7 +427,6 @@ InsetExternal::InsetExternal(Buffer * buf)
 // Mouse hover is not copied and remains empty
 InsetExternal::InsetExternal(InsetExternal const & other)
        : Inset(other),
-         boost::signals2::trackable(),
          params_(other.params_),
          renderer_(other.renderer_->clone(this))
 {}
@@ -635,6 +633,7 @@ void InsetExternal::setParams(InsetExternalParams const & p)
        case PREVIEW_INSTANT: {
                renderer_ = make_unique<RenderMonitoredPreview>(this);
                RenderMonitoredPreview * preview_ptr = renderer_->asMonitoredPreview();
+               // This connection is closed at the same time as this is destroyed.
                preview_ptr->connect([=]() { fileChanged(); });
                add_preview_and_start_loading(*preview_ptr, *this, buffer());
                break;