class InsetLabelBox : public InsetMathNest {
public:
///
- InsetLabelBox(Buffer * buf, MathAtom const & atom, docstring label,
+ InsetLabelBox(Buffer * buf, MathAtom const & atom, docstring const & label,
InsetMathMacroTemplate const & parent, bool frame = false);
- InsetLabelBox(Buffer * buf, docstring label, InsetMathMacroTemplate const & parent,
+ InsetLabelBox(Buffer * buf, docstring const & label, InsetMathMacroTemplate const & parent,
bool frame = false);
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
};
-InsetLabelBox::InsetLabelBox(Buffer * buf, MathAtom const & atom, docstring label,
+InsetLabelBox::InsetLabelBox(Buffer * buf, MathAtom const & atom, docstring const & label,
InsetMathMacroTemplate const & parent, bool frame)
: InsetMathNest(buf, 1), parent_(parent), label_(label), frame_(frame)
{
}
-InsetLabelBox::InsetLabelBox(Buffer * buf, docstring label,
+InsetLabelBox::InsetLabelBox(Buffer * buf, docstring const & label,
InsetMathMacroTemplate const & parent, bool frame)
: InsetMathNest(buf, 1), parent_(parent), label_(label), frame_(frame)
{
class InsetDisplayLabelBox : public InsetLabelBox {
public:
///
- InsetDisplayLabelBox(Buffer * buf, MathAtom const & atom, docstring label,
+ InsetDisplayLabelBox(Buffer * buf, MathAtom const & atom, docstring const & label,
InsetMathMacroTemplate const & parent);
///
InsetDisplayLabelBox::InsetDisplayLabelBox(Buffer * buf, MathAtom const & atom,
- docstring label,
+ docstring const & label,
InsetMathMacroTemplate const & parent)
: InsetLabelBox(buf, atom, label, parent, true)
{