[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [amarok/spotify] src/core-impl/collections/spotifycollection: spotify: replace uname call with QHost
From: Edward Hades <edward.hades () gmail ! com>
Date: 2012-10-28 13:56:56
Message-ID: 20121028135656.F3019A6078 () git ! kde ! org
[Download RAW message or body]
Git commit cd3eddcae9a25d4430267abe3ccc098247b9b7dc by Edward Hades.
Committed on 28/10/2012 at 14:56.
Pushed by hades into branch 'spotify'.
spotify: replace uname call with QHostInfo
M +2 -8 src/core-impl/collections/spotifycollection/SpotifyConfig.cpp
http://commits.kde.org/amarok/cd3eddcae9a25d4430267abe3ccc098247b9b7dc
diff --git a/src/core-impl/collections/spotifycollection/SpotifyConfig.cpp \
b/src/core-impl/collections/spotifycollection/SpotifyConfig.cpp index \
3a4b81f..f9bee56 100644
--- a/src/core-impl/collections/spotifycollection/SpotifyConfig.cpp
+++ b/src/core-impl/collections/spotifycollection/SpotifyConfig.cpp
@@ -25,7 +25,7 @@
#include <KStandardDirs>
#include <KWallet/Wallet>
-#include <sys/utsname.h>
+#include <QHostInfo>
const QString SpotifyConfig::m_resolverDownloadUrl = "http://ofan.me/";
@@ -166,13 +166,7 @@ SpotifyConfig::reset()
const QString
SpotifyConfig::defaultResolverName()
{
- utsname buf;
- int res = uname( &buf );
- QString name = "spotify_resolver_";
- if( !res )
- name.append( buf.machine );
-
- return name;
+ return QString("spotify_resolver_%1").arg( QHostInfo::localHostName() );
}
#include "SpotifyConfig.moc"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic