Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port the project to C++11 - Part 2 #72

Merged
merged 12 commits into from
Sep 26, 2022
Prev Previous commit
Next Next commit
csfilter: use using instead of typedef
lzaoral committed Sep 26, 2022
commit 796457479bda2c926391665e26d75b58cca8929f
2 changes: 1 addition & 1 deletion src/csfilter.cc
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ struct MsgReplace {
}
};

typedef std::vector<MsgReplace> TMsgReplaceList;
using TMsgReplaceList = std::vector<MsgReplace>;

struct MsgFilter::Private {
bool ignorePath = false;
6 changes: 3 additions & 3 deletions src/csfilter.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2011 Red Hat, Inc.
* Copyright (C) 2011-2022 Red Hat, Inc.
*
* This file is part of csdiff.
*
@@ -26,8 +26,8 @@
#include <string>
#include <vector>

typedef std::vector<std::string> TStringList;
typedef std::map<std::string, std::string> TSubstMap;
using TStringList = std::vector<std::string>;
using TSubstMap = std::map<std::string, std::string>;

class MsgFilter {
public: