mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
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:
parent
6b887d8b0f
commit
3836ff77f0
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user