Skip to content

Code cleanup: Partial conversion of source code towards idiomatic C++ code

Ghost User requested to merge (removed):master into master

List of changes:

  • Convert variables from untyped GLib collections to typed C++ equivalents
  • Simplify RC configuration read/write code by using xfce4::Rc
  • Move default configuration values inside/into the declaration of struct CpuFreqPluginOptions
  • Remove unused cpufreq_get_normal_freq()
  • Replace char* with std::string
  • Use std::set<string> to sort governors, instead of Bubble sort
  • Add xfce4::join(strings)
  • Replace cpuinfo_free() with CpuInfo's C++ destructor
  • Use xfce4::sprintf() in order to avoid explicit calls to g_free()

Merge request reports