From: John F. <jo...@us...> - 2012-12-20 10:18:20
|
Update of /cvsroot/ingex/ingex/common In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv555 Modified Files: Timecode.cpp Timecode.h Log Message: Tidied Index: Timecode.h =================================================================== RCS file: /cvsroot/ingex/ingex/common/Timecode.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Timecode.h 5 Nov 2012 16:09:52 -0000 1.8 --- Timecode.h 20 Dec 2012 10:18:17 -0000 1.9 *************** *** 114,117 **** --- 114,118 ---- friend unsigned int operator-(const Timecode & lhs, const Timecode & rhs); void operator+=(unsigned int frames); + void operator+=(int frames); void operator-=(unsigned int frames); Index: Timecode.cpp =================================================================== RCS file: /cvsroot/ingex/ingex/common/Timecode.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** Timecode.cpp 5 Nov 2012 16:09:52 -0000 1.15 --- Timecode.cpp 20 Dec 2012 10:18:17 -0000 1.16 *************** *** 707,710 **** --- 707,722 ---- /** + Add/subtract a number of frames. + */ + void Timecode::operator+=(int frames) + { + if (!IsNull()) + { + mFramesSinceMidnight += frames; + UpdateHoursMinsEtc(); + } + } + + /** Subtract a number of frames. */ |