]> git.lyx.org Git - features.git/commitdiff
Oops, I forgot to return a reference in operator+=. This patch fixes that.
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 8 Oct 2006 09:59:17 +0000 (09:59 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 8 Oct 2006 09:59:17 +0000 (09:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15276 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/docstring.C
src/support/docstring.h

index ceffbc3832a2a0079352b9a8c0a511ddea71d41a..7fd34ed9a949227926a6ec6d699910b2dbe2523d 100644 (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);
index 1cff5109a0d22bb4bf5c1c71c7ca284f394b5a0c..072e76155b03660a9e9c43bb8659948eff751bc3 100644 (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