GNOME Bugzilla – Bug 776653
PATCH: ProcInfo reform
Last modified: 2017-05-22 16:36:08 UTC
This patch set contains refactoring of ProcInfo class: - Storage of ProcInfo is moved to a separate ProcTable (owned by GsmApplication) out of ProcInfo itself. It makes the code aligned with single responsibility principle and eases future refactoring. ProcTable's interface is modelled after std::map. - ProcInfo now uses std::string for its information fields. Less memory management, more safety. - Copy and copy assignment constructors are explicitly deleted (as they should be with C++11)
Created attachment 342659 [details] [review] 0001-Use-ProcInfo-all-directly.patch
Created attachment 342660 [details] [review] 0002-ProcInfos-owned-by-ProcInfo-all-ProcInfo-find-return.patch
Created attachment 342661 [details] [review] 0003-Deleted-ProcInfo-s-copy-and-copy-assignment-construc.patch
Created attachment 342662 [details] [review] 0004-Moved-process-list-into-separate-class-now-owned-by-.patch
Created attachment 342663 [details] [review] 0005-ProcInfo-now-has-std-string-fields.patch
NOTE: while each patch should be standalone (if applied in original order), I have only extensively tested the full patch set. Feel free to squash the set if necessary.
Thanks, this seems to work, let's land this early (well, not very early, but still) to have some more testing and iron out issues (if any).