1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 19:47:42 +00:00

Kernel: Rename ProcessorInfo::{m_brandstr => m_brand}

There's no need to specify the type of the member in it's name,
especially not in shorthand format.
This commit is contained in:
Idan Horowitz 2022-01-11 13:49:09 +02:00
parent be81278634
commit f9528f1882
4 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ class Processor;
class ProcessorInfo {
Processor& m_processor;
String m_cpuid;
String m_brandstr;
String m_brand;
NonnullOwnPtr<KString> m_features;
u32 m_display_model;
u32 m_display_family;
@ -32,7 +32,7 @@ public:
ProcessorInfo(Processor& processor);
const String& cpuid() const { return m_cpuid; }
const String& brandstr() const { return m_brandstr; }
const String& brand() const { return m_brand; }
StringView features() const { return m_features->view(); }
u32 display_model() const { return m_display_model; }
u32 display_family() const { return m_display_family; }

View file

@ -69,7 +69,7 @@ ProcessorInfo::ProcessorInfo(Processor& processor)
copy_brand_string_part_to_buffer(0);
copy_brand_string_part_to_buffer(1);
copy_brand_string_part_to_buffer(2);
m_brandstr = buffer;
m_brand = buffer;
}
}

View file

@ -572,7 +572,7 @@ private:
obj.add("model", info.display_model());
obj.add("stepping", info.stepping());
obj.add("type", info.type());
obj.add("brandstr", info.brandstr());
obj.add("brand", info.brand());
});
array.finish();
return {};

View file

@ -577,7 +577,7 @@ NonnullRefPtr<GUI::Widget> build_hardware_tab()
Vector<GUI::JsonArrayModel::FieldSpec> processors_field;
processors_field.empend("processor", "Processor", Gfx::TextAlignment::CenterRight);
processors_field.empend("cpuid", "CPUID", Gfx::TextAlignment::CenterLeft);
processors_field.empend("brandstr", "Brand", Gfx::TextAlignment::CenterLeft);
processors_field.empend("brand", "Brand", Gfx::TextAlignment::CenterLeft);
processors_field.empend("Features", Gfx::TextAlignment::CenterLeft, [](auto& object) {
StringBuilder builder;
auto features = object.get("features").as_array();