diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-09-01 15:25:00 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-09-01 15:27:14 (GMT) |
commit | 8bc0dce2c74c28acd36daa73e84f7c9d79760e4a (patch) | |
tree | 30e71af7768f3a4718459ea0acadb2c94790999b /src | |
parent | abcfda3554ef2d1c1ab994a5215a9aa6b107c64a (diff) | |
download | Qt-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.zip Qt-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.tar.gz Qt-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.tar.bz2 |
QString usage cleanups
- tr() already returns a QString, duh
- use multi-arg arg() (heh)
Diffstat (limited to 'src')
-rw-r--r-- | src/3rdparty/phonon/gstreamer/mediaobject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/phonon/gstreamer/mediaobject.cpp b/src/3rdparty/phonon/gstreamer/mediaobject.cpp index 3e0addc..23a60c0 100644 --- a/src/3rdparty/phonon/gstreamer/mediaobject.cpp +++ b/src/3rdparty/phonon/gstreamer/mediaobject.cpp @@ -219,9 +219,9 @@ void MediaObject::noMorePadsAvailable () if ( status != GST_INSTALL_PLUGINS_STARTED_OK ) { if( status == GST_INSTALL_PLUGINS_HELPER_MISSING ) - setError(QString(tr("Missing codec helper script assistant.")), Phonon::FatalError ); + setError(tr("Missing codec helper script assistant."), Phonon::FatalError ); else - setError(QString(tr("Plugin codec installation failed for codec: %0")) + setError(tr("Plugin codec installation failed for codec: %0") .arg(m_missingCodecs[0].split("|")[3]), error); } m_missingCodecs.clear(); @@ -232,7 +232,7 @@ void MediaObject::noMorePadsAvailable () m_hasVideo = false; emit hasVideoChanged(false); } - setError(QString(tr("A required codec is missing. You need to install the following codec(s) to play this content: %0")).arg(codecs), error); + setError(tr("A required codec is missing. You need to install the following codec(s) to play this content: %0").arg(codecs), error); m_missingCodecs.clear(); #endif } |