Skip to content

Commit c8b2e1b

Browse files
minor cleanup
1 parent e9cc773 commit c8b2e1b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pub/cppprog.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ class CppProgram
117117
CppCompoundArray fileAsts_; ///< Array of all top level ASTs corresponding to files.
118118
CppTypeTreeNode cppTypeTreeRoot_; ///< Repository of all compound objects arranged as type-tree.
119119
CppObjToTypeNodeMap cppObjToTypeNode_;
120-
CppParser parser_;
121120
};
122121

123122
inline const CppCompoundArray& CppProgram::getFileAsts() const

src/cppprog.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@
3535
//////////////////////////////////////////////////////////////////////////
3636

3737
CppProgram::CppProgram(const std::vector<std::string>& files, CppParser parser)
38-
: parser_(std::move(parser))
3938
{
4039
cppObjToTypeNode_[nullptr] = &cppTypeTreeRoot_;
4140

4241
for (const auto& f : files)
4342
{
4443
std::cout << "INFO\t Parsing '" << f << "'\n";
45-
auto cppAst = parser_.parseFile(f.c_str());
44+
auto cppAst = parser.parseFile(f.c_str());
4645
if (cppAst)
4746
addCppAst(std::move(cppAst));
4847
}

0 commit comments

Comments
 (0)