mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
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:
parent
b254178702
commit
668e38191c
@ -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); }
|
||||
};
|
||||
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user