Hadn't see this empty_docstring() thing before. Very useful.

Add a comment to strfwd.h.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36355 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-17 22:11:33 +00:00
parent 67a4b590aa
commit d764a97cf4
2 changed files with 3 additions and 1 deletions

View File

@ -193,7 +193,7 @@ public:
/// returns the text to be used as tooltip
/// \param prefix: a string that will preced the tooltip,
/// e.g., "Index: ".
docstring toolTipText(docstring prefix = from_ascii("")) const;
docstring toolTipText(docstring prefix = empty_docstring()) const;
///
virtual docstring contextMenu(BufferView const & bv, int x, int y) const;

View File

@ -67,8 +67,10 @@ typedef std::basic_ostream<char_type, std::char_traits<char_type> > odocstream;
extern odocstream & operator<<(odocstream &, char);
#endif
// defined in lstrings.cpp
docstring const & empty_docstring();
std::string const & empty_string();
// defined in docstring.cpp
bool operator==(docstring const &, char const *);
} // namespace lyx