From 9c8ff5b89c7abf26f572ffa138f79971fded1945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 13 Jan 2016 19:04:30 +0100 Subject: [PATCH] TestIO: Use std::strcmp() to compare strings instead of std::string() --- test/testio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testio.cpp b/test/testio.cpp index 4a08839b9..7adac7273 100644 --- a/test/testio.cpp +++ b/test/testio.cpp @@ -19,7 +19,7 @@ #include "checkio.h" #include "testsuite.h" #include "tokenize.h" - +#include class TestIO : public TestFixture { public: @@ -728,7 +728,7 @@ private: ? "[test.cpp:1]: (warning) " FORMAT " in format string (no. 1) requires '" FORMATSTR " *' but the argument type is '" TYPE " *'.\n" \ : "") #define TEST_SCANF_ERR_AKA(FORMAT,FORMATSTR,TYPE,AKATYPE) \ - ((std::string(FORMATSTR) != std::string(TYPE) && std::string("std::" FORMATSTR) != std::string(TYPE)) \ + ((std::strcmp(FORMATSTR,TYPE)!=0 && std::strcmp("std::" FORMATSTR,TYPE)!=0) \ ? "[test.cpp:1]: (warning) " FORMAT " in format string (no. 1) requires '" FORMATSTR " *' but the argument type is '" TYPE " * {aka " AKATYPE " *}'.\n" \ : "")