mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fixed Ubuntu warnings.
This commit is contained in:
parent
1e8e633025
commit
56ee91dc60
1 changed files with 7 additions and 1 deletions
|
@ -64,6 +64,8 @@ QString PlatformInfoScriptingInterface::getCPUBrand() {
|
|||
}
|
||||
|
||||
return QString::fromStdString(hostStream.str());
|
||||
#else
|
||||
return QString("NO IMPLEMENTED");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -91,6 +93,8 @@ int PlatformInfoScriptingInterface::getTotalSystemMemoryMB() {
|
|||
QString result = QString::fromStdString(hostStream.str());
|
||||
QStringList parts = result.split(' ');
|
||||
return (int)(parts[1].toDouble() / 1024 / 1024);
|
||||
#else
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -115,7 +119,9 @@ QString PlatformInfoScriptingInterface::getGraphicsCardType() {
|
|||
}
|
||||
}
|
||||
|
||||
// unkown graphics card
|
||||
return "UNKNOWN";
|
||||
#else
|
||||
return QString("NO IMPLEMENTED");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue