X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetInclude.h;h=c844075489f7034c65ae87ab42f912cf93920674;hb=e4c46abeb7385960c9dd42494e3c7c1f3e699b56;hp=ce93c7104c0eb321eec2f4e2f2ae789ad788933c;hpb=d5a5fbb8ee87d4a8ae1c55f9ba72819251bb6fb7;p=lyx.git diff --git a/src/insets/InsetInclude.h b/src/insets/InsetInclude.h index ce93c7104c..c844075489 100644 --- a/src/insets/InsetInclude.h +++ b/src/insets/InsetInclude.h @@ -17,7 +17,8 @@ #include "RenderButton.h" -#include +#include "support/unique_ptr.h" + namespace lyx { @@ -35,6 +36,10 @@ namespace support { /// for including tex/lyx files class InsetInclude : public InsetCommand { + // Disable assignment operator, since it is not used, and cannot be + // implemented consistently with the copy constructor, because + // include_label is const. + InsetInclude & operator=(InsetInclude const &); public: /// InsetInclude(Buffer * buf, InsetCommandParams const &); @@ -160,7 +165,7 @@ private: docstring const include_label; /// The pointer never changes although *preview_'s contents may. - boost::scoped_ptr const preview_; + unique_ptr const preview_; /// mutable bool failedtoload_;