From 1cd3340e040535548918dd775a581f558e29e4f9 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Sun, 16 Nov 2014 11:24:10 +0100 Subject: [PATCH] QString() is a much faster version of "" --- src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp | 2 +- src/libtomahawk/database/DatabaseCommand_SocialAction.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp b/src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp index f812a0eeb..cf3674333 100644 --- a/src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp +++ b/src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp @@ -40,7 +40,7 @@ DatabaseCommand_ShareTrack::DatabaseCommand_ShareTrack( QObject* parent ) DatabaseCommand_ShareTrack::DatabaseCommand_ShareTrack( const Tomahawk::trackdata_ptr& track, const QString& recipientDbid, QObject* parent ) - : DatabaseCommand_SocialAction( track, "Inbox", "", parent ) + : DatabaseCommand_SocialAction( track, "Inbox", QString(), parent ) , m_recipient( recipientDbid ) {} diff --git a/src/libtomahawk/database/DatabaseCommand_SocialAction.h b/src/libtomahawk/database/DatabaseCommand_SocialAction.h index 903e4c009..6bbce7a78 100644 --- a/src/libtomahawk/database/DatabaseCommand_SocialAction.h +++ b/src/libtomahawk/database/DatabaseCommand_SocialAction.h @@ -72,7 +72,7 @@ public: * * Constructor which creates a new database command for the specified social action. */ - explicit DatabaseCommand_SocialAction( const Tomahawk::trackdata_ptr& track, QString action, QString comment = "", QObject* parent = 0 ) + explicit DatabaseCommand_SocialAction( const Tomahawk::trackdata_ptr& track, QString action, QString comment = QString(), QObject* parent = 0 ) : DatabaseCommandLoggable( parent ) , m_track( track ) , m_comment( comment )