Handle _error becoming a smart pointer thingy

This should be fixed nicer in apt, so that we can use _error again somehow, as
_GetErrorObj() is not really part of the API (but the ABI).

Gbp-Pq: Name 05_error
This commit is contained in:
Julian Andres Klode 2022-07-16 17:55:59 +08:00 committed by Lu zhiping
parent e5674ffa9d
commit 40fe90834c
1 changed files with 1 additions and 1 deletions

View File

@ -1154,7 +1154,7 @@ int main(int argc, char *argv[])
{
// Connect up the "please consume errors" routine for the
// command-line.
consume_errors.connect(sigc::mem_fun(_error, (void (GlobalError::*)()) &GlobalError::DumpErrors));
consume_errors.connect(sigc::mem_fun(_GetErrorObj(), (void (GlobalError::*)()) &GlobalError::DumpErrors));
if(update_only || install_only || autoclean_only || clean_only)
{