Skip to content

Commit e6771df

Browse files
committed
csv-parser: use using instead of typedef
1 parent 8be44c2 commit e6771df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lib/csv-parser.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020 Red Hat, Inc.
2+
* Copyright (C) 2020-2023 Red Hat, Inc.
33
*
44
* This file is part of csdiff.
55
*
@@ -49,8 +49,8 @@ bool AbstractCsvParser::parse(InStream &ins)
4949
std::string line;
5050
for (d->lineno = 1; std::getline(str, line); d->lineno++) {
5151
// initialize tokenizer
52-
typedef boost::escaped_list_separator<char> TSeparator;
53-
typedef boost::tokenizer<TSeparator> TTokenizer;
52+
using TSeparator = boost::escaped_list_separator<char>;
53+
using TTokenizer = boost::tokenizer<TSeparator>;
5454
TTokenizer tok(line);
5555

5656
// break the current line into fields

src/lib/csv-parser.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020 Red Hat, Inc.
2+
* Copyright (C) 2020-2023 Red Hat, Inc.
33
*
44
* This file is part of csdiff.
55
*
@@ -36,7 +36,7 @@ class AbstractCsvParser {
3636
}
3737

3838
protected:
39-
typedef std::vector<std::string> TStringList;
39+
using TStringList = std::vector<std::string>;
4040

4141
virtual bool /* continue */ handleLine(const TStringList &) = 0;
4242
void parseError(const std::string &msg);

0 commit comments

Comments
 (0)