commit cfd19d86be61e6e4a3d66daf4dc1bac3642a202f
Author: Richard Kimberly Heck <[email protected]>
Date: Mon Nov 2 11:45:09 2020 -0500
whitespace and style
---
src/Author.cpp | 3 ++-
src/frontends/qt/Menus.cpp | 2 +-
src/insets/InsetBibtex.cpp | 2 +-
src/insets/InsetLayout.h | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/Author.cpp b/src/Author.cpp
index 9007863..ffb1298 100644
--- a/src/Author.cpp
+++ b/src/Author.cpp
@@ -120,11 +120,12 @@ int AuthorList::record(Author const & a)
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;
}
}
diff --git a/src/frontends/qt/Menus.cpp b/src/frontends/qt/Menus.cpp
index b6a0a42..e8734b7 100644
--- a/src/frontends/qt/Menus.cpp
+++ b/src/frontends/qt/Menus.cpp
@@ -358,7 +358,7 @@ public:
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();
diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp
index bb57811..469429d 100644
--- a/src/insets/InsetBibtex.cpp
+++ b/src/insets/InsetBibtex.cpp
@@ -311,7 +311,7 @@ void InsetBibtex::latex(otexstream & os, OutputParams const
& runparams) const
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")
diff --git a/src/insets/InsetLayout.h b/src/insets/InsetLayout.h
index 2dea790..8cc83dd 100644
--- a/src/insets/InsetLayout.h
+++ b/src/insets/InsetLayout.h
@@ -31,7 +31,7 @@ class TextClass;
class InsetLayout {
public:
///
- InsetLayout() { labelfont_.setColor(Color_error); }
+ InsetLayout() { labelfont_.setColor(Color_error); }
///
enum InsetDecoration {
CLASSIC,
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs