@@ -330,28 +330,28 @@ class KeyframeContainer {
330
330
331
331
/* *
332
332
* Erase all elements after the given element.
333
- *
334
- * @param last_valid Location of the last element to keep.
335
- *
336
- * @return Location (index) of the last element that was kept.
333
+ *
334
+ * @param last_valid Location of the last element to keep.
335
+ *
336
+ * @return Location (index) of the last element that was kept.
337
337
*/
338
338
elem_ptr erase_after (elem_ptr last_valid);
339
339
340
340
/* *
341
341
* Erase a single element from the container.
342
- *
343
- * @param it Location of the element to erase.
344
- *
345
- * @return Location (index) of the next element after the erased one.
342
+ *
343
+ * @param it Location of the element to erase.
344
+ *
345
+ * @return Location (index) of the next element after the erased one.
346
346
*/
347
347
elem_ptr erase (elem_ptr it);
348
348
349
349
/* *
350
350
* Erase all elements with given time. Starts the search at the end of the container.
351
351
*
352
- * @param time Time of the elements to erase.
353
- *
354
- * @return Location (index) of the next element after the erased one.
352
+ * @param time Time of the elements to erase.
353
+ *
354
+ * @return Location (index) of the next element after the erased one.
355
355
*/
356
356
elem_ptr erase (const time::time_t &time) {
357
357
return this ->erase (time, this ->container .size ());
@@ -361,9 +361,9 @@ class KeyframeContainer {
361
361
* Erase all element with given time. Include a hint where to start the search.
362
362
*
363
363
* @param time Time of the elements to erase.
364
- * @param hint Index of the approximate element location.
365
- *
366
- * @return Location (index) of the next element after the erased one.
364
+ * @param hint Index of the approximate element location.
365
+ *
366
+ * @return Location (index) of the next element after the erased one.
367
367
*/
368
368
elem_ptr erase (const time::time_t &time,
369
369
const elem_ptr &hint) {
@@ -633,7 +633,7 @@ KeyframeContainer<T>::sync(const KeyframeContainer<O> &other,
633
633
const std::function<T(const O &)> &converter,
634
634
const time::time_t &start) {
635
635
// Delete elements after start time
636
- elem_ptr at = this ->last_before (start, this -> container . size () );
636
+ elem_ptr at = this ->last_before (start);
637
637
at = this ->erase_after (at);
638
638
639
639
// Find the last element before the start time in the other container
0 commit comments