Skip to content
Snippets Groups Projects
  • Steven Murray's avatar
    860cdc00
    ArchiveFileItor::next() is no longer const. · 860cdc00
    Steven Murray authored
    Woah!  Got carried away with const.  This commit Removes the const
    qualifier from the ArchiveFileItor::next() method because next()
    modifies the iterator.
    
    To loop through an ArchiveFileItor:
    
      auto itor = catalogue.getArchiveFilesForRepackItor(vid, startFSeq);
      while(itor.hasMore()) {
        const auto archiveFile = itor.next();
        // Do something with archiveFile
      }
    860cdc00
    History
    ArchiveFileItor::next() is no longer const.
    Steven Murray authored
    Woah!  Got carried away with const.  This commit Removes the const
    qualifier from the ArchiveFileItor::next() method because next()
    modifies the iterator.
    
    To loop through an ArchiveFileItor:
    
      auto itor = catalogue.getArchiveFilesForRepackItor(vid, startFSeq);
      while(itor.hasMore()) {
        const auto archiveFile = itor.next();
        // Do something with archiveFile
      }