mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-30 15:21:16 -03:00
[clang-tidy] use using instead of typedef
Found with modernize-use-using Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Fabian Homborg
parent
dd704ae30c
commit
aae9ebfbd4
@@ -460,7 +460,7 @@ static wcstring truncate_command(const wcstring &cmd) {
|
||||
}
|
||||
|
||||
/// Format information about job status for the user to look at.
|
||||
typedef enum { JOB_STOPPED, JOB_ENDED } job_status_t;
|
||||
using job_status_t = enum { JOB_STOPPED, JOB_ENDED };
|
||||
static void print_job_status(const job_t *j, job_status_t status) {
|
||||
const wchar_t *msg = L"Job %d, '%ls' has ended"; // this is the most common status msg
|
||||
if (status == JOB_STOPPED) msg = L"Job %d, '%ls' has stopped";
|
||||
|
||||
Reference in New Issue
Block a user