canonical clone() also for InsetHyperlink

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24182 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-04-08 20:19:23 +00:00
parent b254178702
commit 668e38191c
2 changed files with 6 additions and 9 deletions

View File

@ -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); }
};

View File

@ -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();
}