[vlmc-devel] MediaCellView: Remove unused default parameter
Hugo Beauzée-Luyssen
git at videolan.org
Mon Feb 24 20:09:39 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 00:53:37 2014 +0200| [edf05f4509afd80b3cb89d86acdf70c961598d46] | committer: Hugo Beauzée-Luyssen
MediaCellView: Remove unused default parameter
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=edf05f4509afd80b3cb89d86acdf70c961598d46
---
src/Gui/library/MediaCellView.cpp | 7 ++-----
src/Gui/library/MediaCellView.h | 2 +-
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/Gui/library/MediaCellView.cpp b/src/Gui/library/MediaCellView.cpp
index 9bf4e5f..064cc5b 100644
--- a/src/Gui/library/MediaCellView.cpp
+++ b/src/Gui/library/MediaCellView.cpp
@@ -255,13 +255,10 @@ MediaCellView::arrowButtonClicked( QWidget*, QMouseEvent* )
}
void
-MediaCellView::setLength( qint64 length, bool mSecs )
+MediaCellView::setLength( qint64 length )
{
QTime duration;
- if ( mSecs )
- duration = duration.addMSecs( length );
- else
- duration = duration.addSecs( length );
+ duration = duration.addMSecs( length );
m_ui->length->setText( duration.toString( "hh:mm:ss" ) );
}
diff --git a/src/Gui/library/MediaCellView.h b/src/Gui/library/MediaCellView.h
index 810a9ae..ef5c9cb 100644
--- a/src/Gui/library/MediaCellView.h
+++ b/src/Gui/library/MediaCellView.h
@@ -51,7 +51,7 @@ public:
* \brief Set the length displayed in the cell
* \param length The media length, in ms.
*/
- void setLength( qint64 length, bool mSecs = true );
+ void setLength( qint64 length );
QString title() const;
const QUuid &uuid() const;
const Clip* clip() const;
More information about the Vlmc-devel
mailing list