Update bar.cpp