]> git.lyx.org Git - features.git/commitdiff
whitespace and style
authorRichard Kimberly Heck <rikiheck@lyx.org>
Mon, 2 Nov 2020 16:45:09 +0000 (11:45 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Mon, 2 Nov 2020 16:45:09 +0000 (11:45 -0500)
src/Author.cpp
src/frontends/qt/Menus.cpp
src/insets/InsetBibtex.cpp
src/insets/InsetLayout.h

index 9007863e51f744893c8e39159360ba39a38ad3b8..ffb12983f050bc8c4bacca4d9b495bfff9de16ba 100644 (file)
@@ -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;
                }
        }
index b6a0a424eed22bb73d6451f6170152aabe5cf815..e8734b72c71384d098905aba5cc18e0579da872e 100644 (file)
@@ -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();
index bb578117e2de311b035499f9940787be8c10befe..469429d0364ead9f6b4e7cc56dc919e58b3be7e3 100644 (file)
@@ -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")
index 2dea79078a0e2f094d3ba676e2cdee1d621787a1..8cc83ddaaacee68e1e76fc460e3e373ba457b2d1 100644 (file)
@@ -31,7 +31,7 @@ class TextClass;
 class InsetLayout {
 public:
        ///
-    InsetLayout() { labelfont_.setColor(Color_error); }
+       InsetLayout() { labelfont_.setColor(Color_error); }
        ///
        enum InsetDecoration {
                CLASSIC,