Initialize BibTeXInfo modifier to zero, always.

This commit is contained in:
Julien Rioux 2013-05-13 20:26:46 +02:00
parent 8b858d113f
commit 75ffcc8e86

View File

@ -45,10 +45,10 @@ public:
/// and the values are the associated field values. /// and the values are the associated field values.
typedef std::map<docstring, docstring>::const_iterator const_iterator; typedef std::map<docstring, docstring>::const_iterator const_iterator;
/// ///
BibTeXInfo() : is_bibtex_(true) {} BibTeXInfo() : is_bibtex_(true), modifier_(0) {}
/// argument sets isBibTeX_, so should be false only if it's coming /// argument sets isBibTeX_, so should be false only if it's coming
/// from a bibliography environment /// from a bibliography environment
BibTeXInfo(bool ib) : is_bibtex_(ib) {} BibTeXInfo(bool ib) : is_bibtex_(ib), modifier_(0) {}
/// constructor that sets the entryType /// constructor that sets the entryType
BibTeXInfo(docstring const & key, docstring const & type); BibTeXInfo(docstring const & key, docstring const & type);
/// \return the short form of an authorlist, used for sorting /// \return the short form of an authorlist, used for sorting