Fix #656 (Improve const-correctness)

http://sourceforge.net/apps/trac/cppcheck/ticket/656
Applied slightly modified patch from elfring
This commit is contained in:
Reijo Tomperi 2009-09-10 00:25:58 +03:00
parent 908aaff1fa
commit a6c809226e
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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().