Oops, I forgot to return a reference in operator+=. This patch fixes that.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15276 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-10-08 09:59:17 +00:00
parent 6b887d8b0f
commit 3836ff77f0
2 changed files with 4 additions and 4 deletions

View File

@ -122,7 +122,7 @@ lyx::docstring operator+(char l, lyx::docstring const & r)
}
lyx::docstring operator+=(lyx::docstring & l, char const * r)
lyx::docstring & operator+=(lyx::docstring & l, char const * r)
{
for (char const * c = r; *c; ++c) {
BOOST_ASSERT(static_cast<unsigned char>(*c) < 0x80);
@ -132,7 +132,7 @@ lyx::docstring operator+=(lyx::docstring & l, char const * r)
}
lyx::docstring operator+=(lyx::docstring & l, char r)
lyx::docstring & operator+=(lyx::docstring & l, char r)
{
BOOST_ASSERT(static_cast<unsigned char>(r) < 0x80);
l.push_back(r);

View File

@ -64,10 +64,10 @@ lyx::docstring operator+(lyx::docstring const & l, char r);
lyx::docstring operator+(char l, lyx::docstring const & r);
/// Append a C string of ASCII characters to a docstring
lyx::docstring operator+=(lyx::docstring &, char const *);
lyx::docstring & operator+=(lyx::docstring &, char const *);
/// Append a single ASCII character to a docstring
lyx::docstring operator+=(lyx::docstring & l, char r);
lyx::docstring & operator+=(lyx::docstring & l, char r);
#if SIZEOF_WCHAR_T != 4 && defined(__GNUC__) && defined(__GNUC_MINOR__) && __GNUC__ == 3 && __GNUC_MINOR__ < 4