use pointers to strings

This commit is contained in:
2025-12-14 15:14:23 +01:00
parent e5e123f6f8
commit fbf2a64684
4 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ struct cpuSensors {
uint32_t avg_freq = 0;
};
void detectHwmon(cpuSensors* target, std::string pci);
void detectHwmon(cpuSensors* target, const std::string& pci);
void update(cpuSensors* g);
} // namespace cpu

View File

@@ -43,7 +43,7 @@ struct gpuSensors {
// uint64_t vram_total = 0;
};
void detectHwmon(gpuSensors* target, std::string pci);
void detectHwmon(gpuSensors* target, const std::string& pci);
void update(gpuSensors* g);
} // namespace gpu