mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Some cleanup
* removed audio utils from blackmiscfreefunctions (we wanna give it up) * comments * formatting
This commit is contained in:
@@ -60,7 +60,6 @@ uint BlackMisc::calculateHash(const QList<int> &values, const char *className)
|
||||
uint s = 0;
|
||||
foreach(int i, values)
|
||||
{
|
||||
|
||||
if (i >= 0)
|
||||
{
|
||||
list.append(static_cast<uint>(i));
|
||||
@@ -74,20 +73,8 @@ uint BlackMisc::calculateHash(const QList<int> &values, const char *className)
|
||||
return calculateHash(list, className);
|
||||
}
|
||||
|
||||
const QString &BlackMisc::localHostName()
|
||||
{
|
||||
static const QString hostName = QHostInfo::localHostName();
|
||||
return hostName;
|
||||
}
|
||||
|
||||
const QString &BlackMisc::localHostNameEnvVariable()
|
||||
{
|
||||
static const QString hostName = QProcessEnvironment::systemEnvironment().value("COMPUTERNAME", QProcessEnvironment::systemEnvironment().value("HOSTNAME"));
|
||||
return hostName;
|
||||
}
|
||||
|
||||
bool BlackMisc::Audio::startWindowsMixer()
|
||||
{
|
||||
QStringList parameterlist;
|
||||
return QProcess::startDetached("SndVol.exe", parameterlist);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user