From 668e38191cfe82d08c3833d339349665043e8687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 8 Apr 2008 20:19:23 +0000 Subject: [PATCH] canonical clone() also for InsetHyperlink git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24182 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetHyperlink.h | 11 ++++------- src/insets/RenderPreview.cpp | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/insets/InsetHyperlink.h b/src/insets/InsetHyperlink.h index 11e7ebfda8..186b7567fc 100644 --- a/src/insets/InsetHyperlink.h +++ b/src/insets/InsetHyperlink.h @@ -12,21 +12,18 @@ #ifndef INSET_HYPERLINK_H #define INSET_HYPERLINK_H - #include "InsetCommand.h" namespace lyx { -class LaTeXFeatures; - /** The hyperlink inset */ -class InsetHyperlink : public InsetCommand { +class InsetHyperlink : public InsetCommand +{ public: /// - explicit - InsetHyperlink(InsetCommandParams const &); + explicit InsetHyperlink(InsetCommandParams const &); /// InsetCode lyxCode() const { return HYPERLINK_CODE; } /// @@ -55,7 +52,7 @@ public: /// Force inset into LTR environment if surroundings are RTL? bool forceLTR() const { return true; } private: - Inset * clone() const { return new InsetHyperlink(params()); } + Inset * clone() const { return new InsetHyperlink(*this); } }; diff --git a/src/insets/RenderPreview.cpp b/src/insets/RenderPreview.cpp index 1d4fb9d6a5..dfa6d3abac 100644 --- a/src/insets/RenderPreview.cpp +++ b/src/insets/RenderPreview.cpp @@ -60,8 +60,8 @@ RenderPreview::RenderPreview(RenderPreview const & other, RenderPreview::~RenderPreview() { - if (ploader_connection_.connected()) - ploader_connection_.disconnect(); + if (ploader_connection_.connected()) + ploader_connection_.disconnect(); }