From ac9ab687403a2bbd4689ac14da3fc6f6594da7a1 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 21 Sep 2018 13:52:37 +0200 Subject: [PATCH] Fix incorrect grammar in 'does not exists' Change-Id: I790d9bbdfc170808ff66e70be0f81d1c292c0bcb Reviewed-by: Eike Ziller Reviewed-by: Marco Bubke --- src/libs/clangsupport/filepathexceptions.h | 4 ++-- src/libs/sqlite/sqlstatementbuilder.cpp | 2 +- src/plugins/cppeditor/fileandtokenactions_test.cpp | 4 ++-- src/tools/clangbackend/source/clangexceptions.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libs/clangsupport/filepathexceptions.h b/src/libs/clangsupport/filepathexceptions.h index 32142c084c6..80bded0c662 100644 --- a/src/libs/clangsupport/filepathexceptions.h +++ b/src/libs/clangsupport/filepathexceptions.h @@ -43,7 +43,7 @@ class SourceNameIdDoesNotExists : std::exception public: const char *what() const noexcept override { - return "The source name id does not exists in the database!"; + return "The source name id does not exist in the database!"; } }; @@ -52,7 +52,7 @@ class DirectoryPathIdDoesNotExists : std::exception public: const char *what() const noexcept override { - return "The directory path id does not exists in the database!"; + return "The directory path id does not exist in the database!"; } }; diff --git a/src/libs/sqlite/sqlstatementbuilder.cpp b/src/libs/sqlite/sqlstatementbuilder.cpp index cfa08a2b7b3..3ead80b8d40 100644 --- a/src/libs/sqlite/sqlstatementbuilder.cpp +++ b/src/libs/sqlite/sqlstatementbuilder.cpp @@ -226,7 +226,7 @@ void SqlStatementBuilder::clearSqlStatement() void SqlStatementBuilder::checkIfPlaceHolderExists(Utils::SmallStringView name) const { if (name.size() < 2 || !name.startsWith('$') || !m_sqlTemplate.contains(name)) - throwException("SqlStatementBuilder::bind: placeholder name does not exists!", name.data()); + throwException("SqlStatementBuilder::bind: placeholder name does not exist!", name.data()); } void SqlStatementBuilder::checkIfNoPlaceHoldersAynmoreExists() const diff --git a/src/plugins/cppeditor/fileandtokenactions_test.cpp b/src/plugins/cppeditor/fileandtokenactions_test.cpp index 73f995c3d2b..89275d3d6ab 100644 --- a/src/plugins/cppeditor/fileandtokenactions_test.cpp +++ b/src/plugins/cppeditor/fileandtokenactions_test.cpp @@ -320,7 +320,7 @@ class FollowSymbolUnderCursorTokenAction : public TestActionsTestCase::AbstractA { public: /// Follow symbol under cursor - /// Warning: May block if file does not exists (e.g. a not generated ui_* file). + /// Warning: May block if file does not exist (e.g. a not generated ui_* file). void run(CppEditorWidget *editorWidget); }; @@ -511,7 +511,7 @@ void CppEditorPlugin::test_moveTokenWiseThroughEveryFile() TestActionsTestCase(singleAction(ActionPointer(new NoOpTokenAction))); } -/// May block if file does not exists (e.g. a not generated ui_* file). +/// May block if file does not exist (e.g. a not generated ui_* file). void CppEditorPlugin::test_moveTokenWiseThroughEveryFileAndFollowSymbol() { TestActionsTestCase(singleAction(ActionPointer(new FollowSymbolUnderCursorTokenAction))); diff --git a/src/tools/clangbackend/source/clangexceptions.cpp b/src/tools/clangbackend/source/clangexceptions.cpp index 62527b6ce77..5fff38fe81a 100644 --- a/src/tools/clangbackend/source/clangexceptions.cpp +++ b/src/tools/clangbackend/source/clangexceptions.cpp @@ -58,7 +58,7 @@ DocumentDoesNotExistException::DocumentDoesNotExistException(const Utf8String &f + filePath + Utf8StringLiteral("' with the project part id '") + projectPartId - + Utf8StringLiteral("' does not exists!"); + + Utf8StringLiteral("' does not exist!"); } DocumentFileDoesNotExistException::DocumentFileDoesNotExistException(