Skip to content

Commit

Permalink
Small fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
olabetskyi committed Jun 18, 2024
1 parent 6840923 commit b4618dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/preprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ Directive::Directive(std::string _file, const int _linenr, const std::string &_s
str(trim(_str))
{}

Directive::DirectiveToken::DirectiveToken(const std::string & _str, int _line, int _column) :
Directive::DirectiveToken::DirectiveToken(std::string _str, int _line, int _column) :
line(_line),
column(_column),
tokStr(_str)
tokStr(std::move(_str))
{}

char Preprocessor::macroChar = char(1);
Expand Down
2 changes: 1 addition & 1 deletion lib/preprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct CPPCHECKLIB Directive {
std::string str;

struct DirectiveToken {
explicit DirectiveToken(const std::string & _str, int _line, int _column);
explicit DirectiveToken(std::string _str, int _line, int _column);
int line;
int column;
std::string tokStr;
Expand Down

0 comments on commit b4618dc

Please sign in to comment.