Get rid of casting in test file.

http://sourceforge.net/apps/trac/cppcheck/ticket/1242
This commit is contained in:
Reijo Tomperi 2010-01-12 21:24:44 +02:00
parent 374def4a53
commit 913ede45aa
1 changed files with 2 additions and 6 deletions

View File

@ -22,10 +22,6 @@
#include <cstring>
#ifdef __BORLANDC__
#include <stdint.h> // intptr_t
#endif
extern std::ostringstream errout;
class TestTOKEN : public TestFixture
{
@ -121,9 +117,9 @@ private:
Token *tokensBack = 0;
Token tok(&tokensBack);
tok.insertToken("aba");
ASSERT_EQUALS((intptr_t)tok.next(), (intptr_t)tokensBack);
ASSERT_EQUALS(true, tokensBack == tok.next());
tok.deleteNext();
ASSERT_EQUALS((intptr_t)&tok, (intptr_t)tokensBack);
ASSERT_EQUALS(true, tokensBack == &tok);
}
};