# # patch "cvs_repository.cc" # from [f32171f07fe8b5e6f0832d8c81c8e3cfd06ebc76] # to [89a933a975b5bed9867a334aa2d6c5e7836b2499] # # patch "cvs_sync.hh" # from [09d0a18ffd2a9575fe7cdc105cb18f0ef4f80541] # to [76440c40c5e7a65035c98886b4b159599ef6cdc5] # --- cvs_repository.cc +++ cvs_repository.cc @@ -212,10 +212,9 @@ } while(begin!=std::string::npos); }; -const cvs_revision_nr &cvs_revision_nr::operator++(int) -{ if (parts.empty()) return *this; +void cvs_revision_nr::operator++() +{ if (parts.empty()) return; parts.back()++; - return *this; } std::string cvs_revision_nr::get_string() const @@ -1345,7 +1344,7 @@ { file_state fs; fs.since_when=i->time; cvs_revision_nr rev=j->second->cvs_version; - rev++; + ++rev; fs.cvs_version=rev.get_string(); fs.log_msg=i->changelog; fs.author=i->author; --- cvs_sync.hh +++ cvs_sync.hh @@ -18,7 +18,7 @@ { std::vector parts; cvs_revision_nr(const std::string &x); - const cvs_revision_nr &operator++(int); + void operator++(); std::string get_string() const; bool is_branch() const; bool is_parent_of(const cvs_revision_nr &child) const;