summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-05-03 13:07:28 +0200
committerraveit65 <[email protected]>2019-05-07 15:26:02 +0200
commitb50be537ac909b220f667a32de38aa158bdca804 (patch)
tree1a640e1cab1afa5722fb9a3693041cf2c16a6834
parent1c5ee6ada91d944fc6a0600e8f9255e45aa2b8d3 (diff)
downloadmate-system-monitor-b50be537ac909b220f667a32de38aa158bdca804.tar.bz2
mate-system-monitor-b50be537ac909b220f667a32de38aa158bdca804.tar.xz
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.
-rw-r--r--src/sysinfo.cpp6
1 files 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;