Preprocessor: Get rid of an unused parameter
This commit is contained in:
parent
08cd1894ee
commit
e29ead375f
|
@ -159,13 +159,13 @@ void CppCheck::check()
|
||||||
{
|
{
|
||||||
// File content was given as a string
|
// File content was given as a string
|
||||||
std::istringstream iss( _fileContents[ _filenames[c] ] );
|
std::istringstream iss( _fileContents[ _filenames[c] ] );
|
||||||
preprocessor.preprocess(iss, fname, filedata, configurations );
|
preprocessor.preprocess(iss, filedata, configurations );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Only file name was given, read the content from file
|
// Only file name was given, read the content from file
|
||||||
std::ifstream fin( fname.c_str() );
|
std::ifstream fin( fname.c_str() );
|
||||||
preprocessor.preprocess(fin, fname, filedata, configurations );
|
preprocessor.preprocess(fin, filedata, configurations );
|
||||||
}
|
}
|
||||||
|
|
||||||
int checkCount = 0;
|
int checkCount = 0;
|
||||||
|
|
Loading…
Reference in New Issue