Fix #656 (Improve const-correctness)
http://sourceforge.net/apps/trac/cppcheck/ticket/656 Applied slightly modified patch from elfring
This commit is contained in:
parent
908aaff1fa
commit
a6c809226e
|
@ -139,7 +139,7 @@ int Tokenizer::sizeOfType(const char type[]) const
|
|||
// InsertTokens - Copy and insert tokens
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void Tokenizer::insertTokens(Token *dest, Token *src, unsigned int n)
|
||||
void Tokenizer::insertTokens(Token *dest, const Token *src, unsigned int n)
|
||||
{
|
||||
while (n > 0)
|
||||
{
|
||||
|
|
|
@ -279,7 +279,7 @@ private:
|
|||
*/
|
||||
void simplifyTemplates();
|
||||
|
||||
void insertTokens(Token *dest, Token *src, unsigned int n);
|
||||
void insertTokens(Token *dest, const Token *src, unsigned int n);
|
||||
|
||||
/**
|
||||
* Setup links for tokens so that one can call Token::link().
|
||||
|
|
Loading…
Reference in New Issue