# # # patch "asciik.cc" # from [6aae7dc89b1e940cf260a226ad541696439e2428] # to [b87007365ea839ef1e1891debf74b33d526b6226] # # patch "asciik.hh" # from [34b0dd929dce8878e88a7a21e45df9e94566f7e4] # to [3ee4ae18281eedd799f1c98094c0cf0b762d6a35] # ============================================================ --- asciik.cc 6aae7dc89b1e940cf260a226ad541696439e2428 +++ asciik.cc b87007365ea839ef1e1891debf74b33d526b6226 @@ -147,10 +147,8 @@ static revision_id ghost; // valid but e static revision_id ghost; // valid but empty revision_id to be used as ghost value -asciik::asciik(size_t min_width, ostream & os) +asciik::asciik(size_t min_width, ostream & os) : width(min_width), output(os) { - width = min_width; - output = &os; } void @@ -248,10 +246,10 @@ asciik::draw(const size_t curr_items, co lines.push_back(string("")); // prints it out - *output << line << " " << lines[0] << '\n'; - *output << interline << " " << lines[1] << '\n'; + output << line << " " << lines[0] << '\n'; + output << interline << " " << lines[1] << '\n'; for (int i = 2; i < num_lines; ++i) - *output << interline2 << " " << lines[i] << '\n'; + output << interline2 << " " << lines[i] << '\n'; } bool ============================================================ --- asciik.hh 34b0dd929dce8878e88a7a21e45df9e94566f7e4 +++ asciik.hh 3ee4ae18281eedd799f1c98094c0cf0b762d6a35 @@ -25,7 +25,7 @@ private: const string & annotation) const; // internal state size_t width; - std::ostream * output; + std::ostream & output; std::vector curr_row; };