Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
8061:f819e8992367 | 8062:e04a4beeb283 |
---|---|
1947 figure::properties::get_title (void) const | 1947 figure::properties::get_title (void) const |
1948 { | 1948 { |
1949 if (is_numbertitle ()) | 1949 if (is_numbertitle ()) |
1950 { | 1950 { |
1951 std::ostringstream os; | 1951 std::ostringstream os; |
1952 std::string name = get_name (); | 1952 std::string nm = get_name (); |
1953 | 1953 |
1954 os << "Figure " << __myhandle__.value (); | 1954 os << "Figure " << __myhandle__.value (); |
1955 if (! name.empty ()) | 1955 if (! nm.empty ()) |
1956 os << ": " << get_name (); | 1956 os << ": " << get_name (); |
1957 | 1957 |
1958 return os.str (); | 1958 return os.str (); |
1959 } | 1959 } |
1960 else | 1960 else |