Manager: Use constructor over auto
This commit is contained in:
+3
-4
@@ -13,10 +13,9 @@
|
|||||||
|
|
||||||
Machine::Machine(s)
|
Machine::Machine(s)
|
||||||
{
|
{
|
||||||
auto osRelease = Util::File("/etc/os-release");
|
Util::File osRelease("/etc/os-release");
|
||||||
auto stream = std::istringstream(osRelease.data());
|
std::istringstream stream(osRelease.data());
|
||||||
std::string line;
|
for (std::string line; std::getline(stream, line);) {
|
||||||
while (std::getline(stream, line)) {
|
|
||||||
if (line.find("ID=") == 0) {
|
if (line.find("ID=") == 0) {
|
||||||
m_distroId = line.substr(3);
|
m_distroId = line.substr(3);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user