[vlmc-devel] Helper: Use QStringLiteral
Yikai Lu
git at videolan.org
Sat Jul 23 18:13:07 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Jul 24 01:03:53 2016 +0900| [eddb91b90c5090f49ef36f2291c94d4ab4f235ea] | committer: Yikai Lu
Helper: Use QStringLiteral
> https://code.videolan.org/videolan/vlmc/commit/eddb91b90c5090f49ef36f2291c94d4ab4f235ea
---
src/Workflow/Helper.cpp | 2 +-
src/Workflow/Helper.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Workflow/Helper.cpp b/src/Workflow/Helper.cpp
index d9d633e..4fe0c60 100644
--- a/src/Workflow/Helper.cpp
+++ b/src/Workflow/Helper.cpp
@@ -26,7 +26,7 @@ using namespace Workflow;
Helper::Helper( const QString &uuid/* = QString()*/ )
{
- if ( uuid.isNull() == true )
+ if ( uuid.isEmpty() == true )
m_uuid = QUuid::createUuid();
else
m_uuid = uuid;
diff --git a/src/Workflow/Helper.h b/src/Workflow/Helper.h
index 18525b9..8f390d2 100644
--- a/src/Workflow/Helper.h
+++ b/src/Workflow/Helper.h
@@ -34,7 +34,7 @@ namespace Workflow
Q_OBJECT
protected: //This class is not meant to be used by itself.
- Helper( const QString &uuid = QString() );
+ Helper( const QString &uuid = QStringLiteral() );
~Helper();
public:
More information about the Vlmc-devel
mailing list