Skip to content
Snippets Groups Projects
Commit c2587cf2 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen
Browse files

Helper: Take uuid as QUuid

parent dee2915f
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,7 @@
#include <QVariant>
Clip::Clip( QSharedPointer<Media> media, qint64 begin /*= 0*/, qint64 end /*= Backend::IInput::EndOfMedia */, const QUuid& uuid /*= QString()*/ ) :
//FIXME: uuid -> QString conversion should be removed, since the helper stores the UUID as a QUuid
Workflow::Helper( uuid.toString() ),
Workflow::Helper( uuid ),
m_media( media ),
m_input( media->input()->cut( begin, end ) ),
m_isLinked( false )
......
......@@ -28,9 +28,9 @@
using namespace Workflow;
Helper::Helper( const QString &uuid/* = QString()*/ )
Helper::Helper( const QUuid& uuid/* = QUuid()*/ )
{
if ( uuid.isEmpty() == true )
if ( uuid.isNull() == true )
m_uuid = QUuid::createUuid();
else
m_uuid = uuid;
......
......@@ -34,7 +34,7 @@ namespace Workflow
Q_OBJECT
protected: //This class is not meant to be used by itself.
Helper( const QString &uuid = QStringLiteral() );
Helper( const QUuid &uuid = QUuid() );
~Helper();
public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment