cppcheck and executor, fixed compiling error
This commit is contained in:
parent
6d7a0e65b3
commit
2f27bf09b8
|
@ -62,7 +62,7 @@ void CppCheck::addFile( const std::string &path, const std::string &content )
|
|||
_fileContents[ path ] = content;
|
||||
}
|
||||
|
||||
std::string CppCheck::parseFromArgs( int argc, const char* argv[] )
|
||||
std::string CppCheck::parseFromArgs( int argc, const char* const argv[] )
|
||||
{
|
||||
std::vector<std::string> pathnames;
|
||||
bool Recursive = false;
|
||||
|
|
|
@ -89,7 +89,7 @@ class CppCheck : public ErrorLogger
|
|||
* string containing "help" text if no files were found to be
|
||||
* checked.
|
||||
*/
|
||||
std::string parseFromArgs( int argc, const char* argv[] );
|
||||
std::string parseFromArgs( int argc, const char* const argv[] );
|
||||
|
||||
private:
|
||||
void checkFile(const std::string &code, const char FileName[]);
|
||||
|
|
|
@ -30,7 +30,7 @@ CppCheckExecutor::~CppCheckExecutor()
|
|||
//dtor
|
||||
}
|
||||
|
||||
void CppCheckExecutor::check( int argc, const char* argv[] )
|
||||
void CppCheckExecutor::check( int argc, const char* const argv[] )
|
||||
{
|
||||
CppCheck cppCheck( *this );
|
||||
std::string result = cppCheck.parseFromArgs( argc, argv );
|
||||
|
|
|
@ -47,7 +47,7 @@ public:
|
|||
* @param argc from main()
|
||||
* @param argv from main()
|
||||
*/
|
||||
void check( int argc, const char* argv[] );
|
||||
void check( int argc, const char* const argv[] );
|
||||
|
||||
/**
|
||||
* Errors and warnings are directed here. This should be
|
||||
|
|
Loading…
Reference in New Issue