mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
Kernel: Make ProcessorInfo::build_foo_string() private
This commit is contained in:
parent
afce63fffc
commit
f6181cd47e
Notes:
sideshowbarker
2024-07-17 14:30:43 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/f6181cd47e Pull-request: https://github.com/SerenityOS/serenity/pull/13482 Reviewed-by: https://github.com/bgianfo ✅
|
@ -20,10 +20,6 @@ class ProcessorInfo {
|
||||||
public:
|
public:
|
||||||
ProcessorInfo(Processor const& processor);
|
ProcessorInfo(Processor const& processor);
|
||||||
|
|
||||||
static NonnullOwnPtr<KString> build_vendor_id_string();
|
|
||||||
static NonnullOwnPtr<KString> build_brand_string();
|
|
||||||
static NonnullOwnPtr<KString> build_features_string(Processor const&);
|
|
||||||
|
|
||||||
StringView vendor_id_string() const { return m_vendor_id_string->view(); }
|
StringView vendor_id_string() const { return m_vendor_id_string->view(); }
|
||||||
StringView brand_string() const { return m_brand_string->view(); }
|
StringView brand_string() const { return m_brand_string->view(); }
|
||||||
StringView features_string() const { return m_features_string->view(); }
|
StringView features_string() const { return m_features_string->view(); }
|
||||||
|
@ -36,6 +32,10 @@ public:
|
||||||
void set_apic_id(u32 apic_id) { m_apic_id = apic_id; }
|
void set_apic_id(u32 apic_id) { m_apic_id = apic_id; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
static NonnullOwnPtr<KString> build_vendor_id_string();
|
||||||
|
static NonnullOwnPtr<KString> build_brand_string();
|
||||||
|
static NonnullOwnPtr<KString> build_features_string(Processor const&);
|
||||||
|
|
||||||
NonnullOwnPtr<KString> m_vendor_id_string;
|
NonnullOwnPtr<KString> m_vendor_id_string;
|
||||||
NonnullOwnPtr<KString> m_brand_string;
|
NonnullOwnPtr<KString> m_brand_string;
|
||||||
NonnullOwnPtr<KString> m_features_string;
|
NonnullOwnPtr<KString> m_features_string;
|
||||||
|
|
Loading…
Reference in a new issue