Commit e3b9a511 authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊

[systeminformation] Fix cpp17+ compatibility

Makes copileable whenever cpp17 flags are setted. Thanks to Harald Sitter
parent c302c5a7
......@@ -210,7 +210,7 @@ QString SystemInformation::fetchOSDetailInformation() const
auto unameFunc = &uname;
if (m_infoConfig.unameFunc) {
unameFunc = (int (*)(utsname*))m_infoConfig.unameFunc;
unameFunc = (decltype(&uname))m_infoConfig.unameFunc;
}
if ((*unameFunc)(&buf) == -1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment