From 748fa2945501ba05567634ebf81b57dfe990504d Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 24 Aug 2004 09:46:15 +0100 Subject: [PATCH] trouble.texi (C++ misunderstandings): Fix example code. 2004-08-24 Jonathan Wakely * doc/trouble.texi (C++ misunderstandings): Fix example code. From-SVN: r86470 --- gcc/ChangeLog | 4 ++++ gcc/doc/trouble.texi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6a1db2c21e..00888c0e992 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-08-24 Jonathan Wakely + + * doc/trouble.texi (C++ misunderstandings): Fix example code. + 2004-08-24 Nick Clifton * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate defintion diff --git a/gcc/doc/trouble.texi b/gcc/doc/trouble.texi index 39273c33e02..a546183737c 100644 --- a/gcc/doc/trouble.texi +++ b/gcc/doc/trouble.texi @@ -1064,7 +1064,7 @@ forces it to remain until the end of the scope of the name. For example: @smallexample -string& tmp = strfunc (); +const string& tmp = strfunc (); charfunc (tmp.c_str ()); @end smallexample -- 2.30.2