int InsetCommand::plaintext(Buffer const &, odocstream & os,
OutputParams const &) const
{
- docstring str = "[" + _("LaTeX Command: ") + from_utf8(getCmdName()) + "]";
+ docstring const str = "[" + _("LaTeX Command: ") + from_utf8(getCmdName()) + "]";
os << str;
return str.size();
}
// FIXME UNICODE
// FIXME: We have no idea what the encoding of the filename is
- docstring str = bformat(_("Graphics file: %1$s"),
- from_utf8(params().filename.absFilename()));
+ docstring const str = bformat(_("Graphics file: %1$s"),
+ from_utf8(params().filename.absFilename()));
os << '<' << str << '>';
return 2 + str.size();
os << "\n]";
return PLAINTEXT_NEWLINE + 1; // one char on a separate line
} else {
- docstring str = '[' + getScreenLabel(buffer) + ']';
+ docstring const str = '[' + getScreenLabel(buffer) + ']';
os << str;
return str.size();
}
int InsetLabel::plaintext(Buffer const &, odocstream & os,
OutputParams const &) const
{
- docstring str = getParam("name");
+ docstring const str = getParam("name");
os << '<' << str << '>';
return 2 + str.size();
}
int InsetQuotes::plaintext(Buffer const & buf, odocstream & os,
OutputParams const &) const
{
- docstring str = dispString(buf.params().language);
+ docstring const str = dispString(buf.params().language);
os << str;
return str.size();
}
int InsetRef::plaintext(Buffer const &, odocstream & os,
OutputParams const &) const
{
- docstring str = getParam("reference");
+ docstring const str = getParam("reference");
os << '[' << str << ']';
return 2 + str.size();
}
else
oss << "||" << getParam("name") << ']';
- docstring str = oss.str();
+ docstring const str = oss.str();
os << str;
return str.size();
}