Mercurial > hg > octave-nkf
diff src/graphics.cc @ 8062:e04a4beeb283
graphics.cc (figure::properties::get_title): avoid gcc warning
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 26 Aug 2008 13:38:14 -0400 |
parents | f819e8992367 |
children | 41bc700ff642 |
line wrap: on
line diff
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -1949,10 +1949,10 @@ if (is_numbertitle ()) { std::ostringstream os; - std::string name = get_name (); + std::string nm = get_name (); os << "Figure " << __myhandle__.value (); - if (! name.empty ()) + if (! nm.empty ()) os << ": " << get_name (); return os.str ();