History

Fixed Ubuntu warnings.

NissimHadar committed 7 years ago

Commit 56ee91d1 parent 1e8e6331 file · +7 −1Browse files

Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

interface/src/scripting/PlatformInfoScriptingInterface.cpp+7−1
@@ -64,6 +64,8 @@ QString PlatformInfoScriptingInterface::getCPUBrand() { · 63 unmodified lines
6464 }
6565
6666 return QString::fromStdString(hostStream.str());
67+#else
68+ return QString("NO IMPLEMENTED");
6769 #endif
6870 }
6971
@@ -91,6 +93,8 @@ int PlatformInfoScriptingInterface::getTotalSystemMemoryMB() { · 21 unmodified lines
9193 QString result = QString::fromStdString(hostStream.str());
9294 QStringList parts = result.split(' ');
9395 return (int)(parts[1].toDouble() / 1024 / 1024);
96+#else
97+ return -1;
9498 #endif
9599 }
96100
@@ -115,7 +119,9 @@ QString PlatformInfoScriptingInterface::getGraphicsCardType() { · 18 unmodified lines
115119 }
116120 }
117121
122+ // unkown graphics card
118123 return "UNKNOWN";
124+#else
125+ return QString("NO IMPLEMENTED");
119126 #endif
120−
121127 }