Mercurial > hg > octave-lojdl
changeset 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 |
files | src/graphics.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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 ();