From 7a90b36cca3ccfb683e42441e554c53cbd19fc0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Tue, 11 Aug 2015 13:47:48 +0200 Subject: [PATCH] CheckVaarg::va_start_subsequentCallsError: fix spelling "inbetween" -> "in between" --- lib/checkvaarg.cpp | 2 +- test/testvaarg.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/checkvaarg.cpp b/lib/checkvaarg.cpp index 522daa631..d50837507 100644 --- a/lib/checkvaarg.cpp +++ b/lib/checkvaarg.cpp @@ -146,5 +146,5 @@ void CheckVaarg::va_list_usedBeforeStartedError(const Token *tok, const std::str void CheckVaarg::va_start_subsequentCallsError(const Token *tok, const std::string& varname) { reportError(tok, Severity::error, - "va_start_subsequentCalls", "va_start() or va_copy() called subsequently on '" + varname + "' without va_end() inbetween."); + "va_start_subsequentCalls", "va_start() or va_copy() called subsequently on '" + varname + "' without va_end() in between."); } diff --git a/test/testvaarg.cpp b/test/testvaarg.cpp index 23c4a8daa..bec15268d 100644 --- a/test/testvaarg.cpp +++ b/test/testvaarg.cpp @@ -207,7 +207,7 @@ private: " va_start(arg_ptr, szBuffer);\n" " va_end(arg_ptr);\n" "}"); - ASSERT_EQUALS("[test.cpp:4]: (error) va_start() or va_copy() called subsequently on 'arg_ptr' without va_end() inbetween.\n", errout.str()); + ASSERT_EQUALS("[test.cpp:4]: (error) va_start() or va_copy() called subsequently on 'arg_ptr' without va_end() in between.\n", errout.str()); check("void Format(char* szFormat, char (*szBuffer)[_Size], ...) {\n" " va_list vl1;\n" @@ -215,7 +215,7 @@ private: " va_copy(vl1, vl1);\n" " va_end(vl1);\n" "}"); - ASSERT_EQUALS("[test.cpp:4]: (error) va_start() or va_copy() called subsequently on 'vl1' without va_end() inbetween.\n", errout.str()); + ASSERT_EQUALS("[test.cpp:4]: (error) va_start() or va_copy() called subsequently on 'vl1' without va_end() in between.\n", errout.str()); check("void Format(char* szFormat, char (*szBuffer)[_Size], ...) {\n" " va_list arg_ptr;\n"