} // anon namespace
-docstring const BibTeXInfo::getInfo(BibTeXInfo const * const xref) const
+docstring const & BibTeXInfo::getInfo(BibTeXInfo const * const xref) const
{
if (!info_.empty())
return info_;
}
// FIXME
- // This could be made a lot better using the entryType
+ // This could be made a lot better using the entry_type_
// field to customize the output based upon entry type.
// Search for all possible "required" fields
}
// This should never happen (or at least be very unusual!)
- return docstring();
+ static docstring e = docstring();
+ return e;
}
docstring const getXRef() const;
/// \return formatted BibTeX data suitable for framing.
/// \param pointer to crossref information
- docstring const getInfo(BibTeXInfo const * const xref = 0) const;
+ docstring const & getInfo(BibTeXInfo const * const xref = 0) const;
///
int count(docstring const & f) const { return bimap_.count(f); }
///