We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f36c7c1 commit 1e8c0abCopy full SHA for 1e8c0ab
lib/preprocessor.h
@@ -62,10 +62,10 @@ struct CPPCHECKLIB Directive {
62
63
class CPPCHECKLIB RemarkComment {
64
public:
65
- RemarkComment(const std::string &file, const unsigned int lineNumber, const std::string &str)
66
- : file(file)
+ RemarkComment(std::string file, unsigned int lineNumber, std::string str)
+ : file(std::move(file))
67
, lineNumber(lineNumber)
68
- , str(str)
+ , str(std::move(str))
69
{}
70
71
/** name of file */
0 commit comments