mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 01:01:57 +00:00
These don't seem to be causing crashes at the moment, but as a matter of long-term stability, it seems worth cloning them the "canonical" way.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23360 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7b09292cb0
commit
1becd75946
@ -45,7 +45,7 @@ public:
|
|||||||
///
|
///
|
||||||
void validate(LaTeXFeatures & features) const;
|
void validate(LaTeXFeatures & features) const;
|
||||||
private:
|
private:
|
||||||
Inset * clone() const { return new InsetLine; }
|
Inset * clone() const { return new InsetLine(*this); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ public:
|
|||||||
virtual ColorCode ColorName() const { return Color_eolmarker; }
|
virtual ColorCode ColorName() const { return Color_eolmarker; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Inset * clone() const { return new InsetNewline; }
|
Inset * clone() const { return new InsetNewline(*this); }
|
||||||
};
|
};
|
||||||
|
|
||||||
class InsetLinebreak : public InsetNewline {
|
class InsetLinebreak : public InsetNewline {
|
||||||
@ -70,10 +70,7 @@ public:
|
|||||||
ColorCode ColorName() const { return Color_pagebreak; }
|
ColorCode ColorName() const { return Color_pagebreak; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual Inset * clone() const
|
virtual Inset * clone() const { return new InsetLinebreak(*this); }
|
||||||
{
|
|
||||||
return new InsetLinebreak;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -228,9 +228,4 @@ void InsetSpace::textString(odocstream & os) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Inset * InsetSpace::clone() const
|
|
||||||
{
|
|
||||||
return new InsetSpace(kind_);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
@ -84,7 +84,7 @@ public:
|
|||||||
// a line separator)?
|
// a line separator)?
|
||||||
bool isSpace() const { return true; }
|
bool isSpace() const { return true; }
|
||||||
private:
|
private:
|
||||||
virtual Inset * clone() const;
|
virtual Inset * clone() const { return new InsetSpace(*this); }
|
||||||
|
|
||||||
/// And which kind is this?
|
/// And which kind is this?
|
||||||
Kind kind_;
|
Kind kind_;
|
||||||
|
@ -291,12 +291,6 @@ void InsetSpecialChar::textString(odocstream & os) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Inset * InsetSpecialChar::clone() const
|
|
||||||
{
|
|
||||||
return new InsetSpecialChar(kind_);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void InsetSpecialChar::validate(LaTeXFeatures & features) const
|
void InsetSpecialChar::validate(LaTeXFeatures & features) const
|
||||||
{
|
{
|
||||||
if (kind_ == MENU_SEPARATOR)
|
if (kind_ == MENU_SEPARATOR)
|
||||||
|
@ -80,7 +80,7 @@ public:
|
|||||||
// should we break lines after this inset?
|
// should we break lines after this inset?
|
||||||
bool isLineSeparator() const;
|
bool isLineSeparator() const;
|
||||||
private:
|
private:
|
||||||
Inset * clone() const;
|
Inset * clone() const { return new InsetSpecialChar(*this); };
|
||||||
|
|
||||||
/// And which kind is this?
|
/// And which kind is this?
|
||||||
Kind kind_;
|
Kind kind_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user