return it - beg;
if (it->bufferId() == a.bufferId()) {
int const id = it - beg;
- if (!it->valid())
+ if (!it->valid()) {
// we need to handle the case of a valid author being registered
// after an invalid one. For instance, because "buffer-reload"
// does not clear the buffer's author list.
record(id, a);
+ }
return id;
}
}
void expandFloatInsert(Buffer const * buf);
void expandFlexInsert(Buffer const * buf, InsetLayout::InsetLyXType type);
void expandTocSubmenu(std::string const & type, Toc const & toc_list);
- void expandToc2(Toc const & toc_list, size_t from, size_t to, int depth, const string &toc_type);
+ void expandToc2(Toc const & toc_list, size_t from, size_t to, int depth, const string & toc_type);
void expandToc(Buffer const * buf);
void expandPasteRecent(Buffer const * buf);
void expandToolbars();
buffer().prepareBibFilePaths(runparams, getBibFiles(), false);
vector<docstring> db_out;
db_out.reserve(dbs.size());
- for (pair<docstring, string> const & db : dbs)
+ for (pair<docstring, string> const & db : dbs)
db_out.push_back(db.first);
// Style options
if (style == "default")
class InsetLayout {
public:
///
- InsetLayout() { labelfont_.setColor(Color_error); }
+ InsetLayout() { labelfont_.setColor(Color_error); }
///
enum InsetDecoration {
CLASSIC,