From d764a97cf4df8007368a318b7e2aa76ec6454652 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 17 Nov 2010 22:11:33 +0000 Subject: [PATCH] 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 --- src/insets/InsetText.h | 2 +- src/support/strfwd.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index 35904398a8..3c242fd4f9 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -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; diff --git a/src/support/strfwd.h b/src/support/strfwd.h index fcd97f5685..069357ff9c 100644 --- a/src/support/strfwd.h +++ b/src/support/strfwd.h @@ -67,8 +67,10 @@ typedef std::basic_ostream > 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 -- 2.39.2