mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 20:09:59 +00:00
Avoid compiler warning about overloaded virtual function.
This commit is contained in:
parent
4bb8725c69
commit
a93ac27450
@ -538,7 +538,7 @@ Inset * readInset(Lexer & lex, Buffer * buf)
|
||||
//Worst case, we could put it in each case below. Better, we could
|
||||
//pass the lexer to the constructor and let the params be built there.
|
||||
InsetCommandParams inscmd(code);
|
||||
inscmd.read(lex, buf);
|
||||
inscmd.Read(lex, buf);
|
||||
|
||||
switch (code) {
|
||||
case BIBITEM_CODE:
|
||||
|
@ -195,7 +195,8 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
|
||||
void InsetBibitem::read(Lexer & lex)
|
||||
{
|
||||
InsetCommand::read(lex, &buffer());
|
||||
InsetCommandParams * icp = const_cast<InsetCommandParams *>(¶ms());
|
||||
icp->Read(lex, &buffer());
|
||||
|
||||
if (prefixIs(getParam("key"), key_prefix)) {
|
||||
int const key = convert<int>(getParam("key").substr(key_prefix.length()));
|
||||
|
@ -244,7 +244,7 @@ bool InsetCommand::string2params(string const & data,
|
||||
lex.setContext("InsetCommand::string2params");
|
||||
lex >> name.c_str(); // check for name
|
||||
lex >> "CommandInset";
|
||||
params.read(lex, 0);
|
||||
params.read(lex);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
///
|
||||
void write(std::ostream & os) const { p_.write(os); }
|
||||
///
|
||||
void read(Lexer & lex, Buffer const * buf) { p_.read(lex, buf); }
|
||||
void read(Lexer & lex) { p_.Read(lex, &buffer()); }
|
||||
///
|
||||
void doDispatch(Cursor & cur, FuncRequest & cmd);
|
||||
///
|
||||
|
@ -275,7 +275,13 @@ void InsetCommandParams::setCmdName(string const & name)
|
||||
}
|
||||
|
||||
|
||||
void InsetCommandParams::read(Lexer & lex, Buffer const * buffer)
|
||||
void InsetCommandParams::read(Lexer & lex)
|
||||
{
|
||||
Read(lex, 0);
|
||||
}
|
||||
|
||||
|
||||
void InsetCommandParams::Read(Lexer & lex, Buffer const * buffer)
|
||||
{
|
||||
lex.setContext("InsetCommandParams::read");
|
||||
lex >> insetName(insetCode_).c_str();
|
||||
|
@ -113,9 +113,10 @@ public:
|
||||
std::string insetType() const;
|
||||
///
|
||||
InsetCode code() const { return insetCode_; }
|
||||
///
|
||||
void read(Lexer &, Buffer const *);
|
||||
/// Parse the command
|
||||
void read(Lexer &);
|
||||
///
|
||||
void Read(Lexer &, Buffer const *);
|
||||
///
|
||||
void write(std::ostream &) const;
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user