CMake: Remove odd but unused assignment

Change-Id: I052baddc82b7bef24e656c35be1a4edd97a85007
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
hjk
2023-04-20 13:35:03 +02:00
parent 900dc154be
commit 7e919a07b6

View File

@@ -23,7 +23,6 @@ struct cmListFileParser
bool AddArgument(cmListFileLexer_Token* token, bool AddArgument(cmListFileLexer_Token* token,
cmListFileArgument::Delimiter delim); cmListFileArgument::Delimiter delim);
cmListFile* ListFile; cmListFile* ListFile;
const char* FileName = nullptr;
cmListFileLexer* Lexer; cmListFileLexer* Lexer;
std::string FunctionName; std::string FunctionName;
long FunctionLine; long FunctionLine;
@@ -57,10 +56,8 @@ void cmListFileParser::IssueError(const std::string& text) const
} }
bool cmListFileParser::ParseString(const std::string &str, bool cmListFileParser::ParseString(const std::string &str,
const std::string &virtual_filename) const std::string &/*virtual_filename*/)
{ {
this->FileName = virtual_filename.c_str();
if (!cmListFileLexer_SetString(this->Lexer, str.c_str(), (int)str.size())) { if (!cmListFileLexer_SetString(this->Lexer, str.c_str(), (int)str.size())) {
this->IssueError("cmListFileCache: cannot allocate buffer."); this->IssueError("cmListFileCache: cannot allocate buffer.");
return false; return false;