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
64 }64 }
65 65
66 return QString::fromStdString(hostStream.str());66 return QString::fromStdString(hostStream.str());
67#else
68 return QString("NO IMPLEMENTED");
67#endif69#endif
68}70}
69 71
@@ -91,6 +93,8 @@ int PlatformInfoScriptingInterface::getTotalSystemMemoryMB() { · 21 unmodified lines
91 QString result = QString::fromStdString(hostStream.str());93 QString result = QString::fromStdString(hostStream.str());
92 QStringList parts = result.split(' ');94 QStringList parts = result.split(' ');
93 return (int)(parts[1].toDouble() / 1024 / 1024);95 return (int)(parts[1].toDouble() / 1024 / 1024);
96#else
97 return -1;
94#endif98#endif
95}99}
96 100
@@ -115,7 +119,9 @@ QString PlatformInfoScriptingInterface::getGraphicsCardType() { · 18 unmodified lines
115 }119 }
116 }120 }
117 121
122 // unkown graphics card
118 return "UNKNOWN";123 return "UNKNOWN";
124#else
125 return QString("NO IMPLEMENTED");
119#endif126#endif
120
121}127}