From b50be537ac909b220f667a32de38aa158bdca804 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 3 May 2019 13:07:28 +0200 Subject: Make SysInfo::get_os_type a static function The member function '::SysInfo::get_os_type' can be static, since it is not attached to any particular object, no 'this' instance is passed to the function. --- src/sysinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp index 2d7324f..65e2e07 100644 --- a/src/sysinfo.cpp +++ b/src/sysinfo.cpp @@ -81,13 +81,13 @@ namespace { * the second one is the architecture, 32 or 64-bit */ markup = g_strdup_printf(_("Release %s %s"), this->distro_release.c_str(), - this->get_os_type().c_str()); + SysInfo::get_os_type().c_str()); } else { /* Translators: The string parameter is the architecture, 32 or 64-bit */ markup = g_strdup_printf(_("%s Version"), - this->get_os_type().c_str()); + SysInfo::get_os_type().c_str()); } #else /* Translators: The string parameter is release version (codename) */ @@ -123,7 +123,7 @@ namespace { this->memory_bytes = mem.total; } - string get_os_type () + static string get_os_type () { int bits; -- cgit v1.2.1