Juergen Vigna <[EMAIL PROTECTED]> writes:

| On 19-Sep-2000 Marko Vendelin wrote:
| > 
| > Hi!
| 
| Hi Marko!
| 
| > 
| > the first part of this patch adds TOC, ViewFormats, UpdateFormats, and
| > ExportFormats to Gnome menu. TOC is updated by "Refresh" button, as
| > suggested by Jürgen earlier. 
| 
| I get an error in Menubar_pimpl.C:327 code when compiling your patch:
| 
|       case MenuItem::Toc: {
|         toc_.push_back();
|         toc_[toc_.size()-1].path = path;
|         break;
|       }
| 
| There is something that vector does not have a push_back() function but
| only a push_back(something) function.
| 
| For now I just commented this code out!

If I guess correctly this should be written as:

        case MenuItem::Toc:
        {
                TocItem tit;
                tit.path = path;
                toc_.push_back(tit);
                break;
        }

On another note, we dont use toc_[toc_size() -1 ] we use toc_.back()

        Lgb

Reply via email to