Skip to content

Commit

Permalink
preprocessor.cpp: fixed performance-unnecessary-copy-initialization
Browse files Browse the repository at this point in the history
… clang-tidy warning
  • Loading branch information
firewave committed Jan 13, 2024
1 parent 6a6bcd3 commit 3f6e93a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/preprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,7 @@ void Preprocessor::missingInclude(const std::string &filename, unsigned int line

void Preprocessor::getErrorMessages(ErrorLogger *errorLogger, const Settings &settings)
{
Settings settings2(settings);
Preprocessor preprocessor(settings2, errorLogger);
Preprocessor preprocessor(settings, errorLogger);
preprocessor.missingInclude(emptyString, 1, emptyString, UserHeader);
preprocessor.missingInclude(emptyString, 1, emptyString, SystemHeader);
preprocessor.error(emptyString, 1, "#error message"); // #error ..
Expand Down

0 comments on commit 3f6e93a

Please sign in to comment.