diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-05 21:56:04 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-07 20:59:43 +0100 |
| commit | 601af4e8adac4cdd57a031db5d073f61fc1033dc (patch) | |
| tree | 32ca92297c28cf83dd2bcb6fb6da094aa3cbad5d /apt-pkg/solver3.h | |
| parent | 9b482fb51ed28ac75b6d4847729f72717f2ea431 (diff) | |
solver3: Refactor Dump() to toString()
This vastly simplifies the code at the expense of performance,
lol.
Diffstat (limited to 'apt-pkg/solver3.h')
| -rw-r--r-- | apt-pkg/solver3.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h index 118ea5e28..fc68a5cef 100644 --- a/apt-pkg/solver3.h +++ b/apt-pkg/solver3.h @@ -317,8 +317,7 @@ struct APT::Solver::Clause inline Clause(Var reason, Group group, bool optional = false, bool negative = false) : reason(reason), group(group), optional(optional), negative(negative) {} - // \brief Dump the clause to std::cerr - void Dump(pkgCache &cache); + std::string toString(pkgCache &cache); }; /** @@ -352,8 +351,7 @@ struct APT::Solver::Work bool erased{false}; bool operator<(APT::Solver::Work const &b) const; - // \brief Dump the work item to std::cerr - void Dump(pkgCache &cache); + std::string toString(pkgCache &cache); inline Work(Clause clause, depth_type depth) : clause(std::move(clause)), depth(depth) {} }; |
