X Tutup
Skip to content

Commit 06c2025

Browse files
committed
Added dot at end of stringLiteralWrite message
1 parent 2a5206a commit 06c2025

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/checkstring.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void CheckString::stringLiteralWriteError(const Token *tok, const Token *strValu
6666
s = s.substr(0,13) + "..";
6767
errmsg += " \"" + s + "\"";
6868
}
69-
errmsg += " directly or indirectly is undefined behaviour";
69+
errmsg += " directly or indirectly is undefined behaviour.";
7070

7171
reportError(callstack, Severity::error, "stringLiteralWrite", errmsg);
7272
}

test/teststring.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ class TestString : public TestFixture {
7676
" char *abc = \"abc\";\n"
7777
" abc[0] = 'a';\n"
7878
"}");
79-
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:2]: (error) Modifying string literal \"abc\" directly or indirectly is undefined behaviour\n", errout.str());
79+
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:2]: (error) Modifying string literal \"abc\" directly or indirectly is undefined behaviour.\n", errout.str());
8080

8181
check("void f() {\n"
8282
" char *abc = \"abc\";\n"
8383
" *abc = 'a';\n"
8484
"}");
85-
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:2]: (error) Modifying string literal \"abc\" directly or indirectly is undefined behaviour\n", errout.str());
85+
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:2]: (error) Modifying string literal \"abc\" directly or indirectly is undefined behaviour.\n", errout.str());
8686

8787
check("void f() {\n"
8888
" QString abc = \"abc\";\n"

0 commit comments

Comments
 (0)
X Tutup