# HG changeset patch # User John W. Eaton # Date 1219772294 14400 # Node ID e04a4beeb28316f09a61953d329ddfc38dc82609 # Parent f819e89923670e5eddf7c1626eaed4ce05b718bb graphics.cc (figure::properties::get_title): avoid gcc warning diff --git a/src/graphics.cc b/src/graphics.cc --- 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 ();