[vlmc-devel] Library: Always fetch a clip using a QUuid
Hugo Beauzée-Luyssen
git at videolan.org
Fri Aug 19 02:41:46 CEST 2016
vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Aug 19 02:07:26 2016 +0200| [1bbb54767d4f457e93acc85fbc32a69dde13babc] | committer: Hugo Beauzée-Luyssen
Library: Always fetch a clip using a QUuid
> https://code.videolan.org/videolan/vlmc/commit/1bbb54767d4f457e93acc85fbc32a69dde13babc
---
src/Library/Library.cpp | 7 +------
src/Library/Library.h | 1 -
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index 50b8144..27bfa00 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -117,15 +117,10 @@ Library::media( qint64 mediaId )
}
Clip*
-Library::clip( const QString& uuid )
+Library::clip( const QUuid& uuid )
{
return m_clips.value( uuid );
-}
-Clip*
-Library::clip( const QUuid& uuid )
-{
- return clip( uuid.toString() );
}
void
diff --git a/src/Library/Library.h b/src/Library/Library.h
index ffaa0e0..4d170d2 100644
--- a/src/Library/Library.h
+++ b/src/Library/Library.h
@@ -61,7 +61,6 @@ public:
* @return The clip if it exists, or nullptr
* This can be any clip, the given UUID doesn't have to refer to a root clip
*/
- Clip* clip( const QString& uuid );
Clip* clip( const QUuid& uuid );
void clear();
More information about the Vlmc-devel
mailing list