diff --git a/gui/resultstree.h b/gui/resultstree.h index 74334955f..60281b9f0 100644 --- a/gui/resultstree.h +++ b/gui/resultstree.h @@ -306,7 +306,7 @@ protected: /** * @brief Hides/shows full file path on all error file items according to mShowFullPath - * @param item Parent item whose childrens paths to change + * @param item Parent item whose children's paths to change */ void refreshFilePaths(QStandardItem *item); diff --git a/gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp b/gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp index 713b90f2a..71ebb0394 100644 --- a/gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp +++ b/gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp @@ -82,7 +82,7 @@ void TestCppcheckLibraryData::podtypeValid() loadCfgFile(":/files/podtype_valid.cfg", fileLibraryData, result); QCOMPARE(result.isNull(), true); - // Swap libray data read from file to other object + // Swap library data read from file to other object libraryData.swap(fileLibraryData); // Do size and content checks against swapped data. @@ -125,7 +125,7 @@ void TestCppcheckLibraryData::typechecksValid() loadCfgFile(":/files/typechecks_valid.cfg", fileLibraryData, result); QCOMPARE(result.isNull(), true); - // Swap libray data read from file to other object + // Swap library data read from file to other object libraryData.swap(fileLibraryData); // Do size and content checks against swapped data. @@ -173,7 +173,7 @@ void TestCppcheckLibraryData::smartPointerValid() loadCfgFile(":/files/smartptr_valid.cfg", fileLibraryData, result); QCOMPARE(result.isNull(), true); - // Swap libray data read from file to other object + // Swap library data read from file to other object libraryData.swap(fileLibraryData); // Do size and content checks against swapped data. @@ -205,7 +205,7 @@ void TestCppcheckLibraryData::platformTypeValid() loadCfgFile(":/files/platform_type_valid.cfg", fileLibraryData, result); QCOMPARE(result.isNull(), true); - // Swap libray data read from file to other object + // Swap library data read from file to other object libraryData.swap(fileLibraryData); // Do size and content checks against swapped data. @@ -263,7 +263,7 @@ void TestCppcheckLibraryData::memoryResourceValid() loadCfgFile(":/files/memory_resource_valid.cfg", fileLibraryData, result); QCOMPARE(result.isNull(), true); - // Swap libray data read from file to other object + // Swap library data read from file to other object libraryData.swap(fileLibraryData); // Do size and content checks against swapped data. @@ -363,7 +363,7 @@ void TestCppcheckLibraryData::defineValid() loadCfgFile(":/files/define_valid.cfg", fileLibraryData, result); QCOMPARE(result.isNull(), true); - // Swap libray data read from file to other object + // Swap library data read from file to other object libraryData.swap(fileLibraryData); // Do size and content checks against swapped data. @@ -398,7 +398,7 @@ void TestCppcheckLibraryData::undefineValid() loadCfgFile(":/files/undefine_valid.cfg", fileLibraryData, result); QCOMPARE(result.isNull(), true); - // Swap libray data read from file to other object + // Swap library data read from file to other object libraryData.swap(fileLibraryData); // Do size and content checks against swapped data. @@ -428,7 +428,7 @@ void TestCppcheckLibraryData::reflectionValid() loadCfgFile(":/files/reflection_valid.cfg", fileLibraryData, result); QCOMPARE(result.isNull(), true); - // Swap libray data read from file to other object + // Swap library data read from file to other object libraryData.swap(fileLibraryData); // Do size and content checks against swapped data. @@ -471,7 +471,7 @@ void TestCppcheckLibraryData::markupValid() loadCfgFile(":/files/markup_valid.cfg", fileLibraryData, result); QCOMPARE(result.isNull(), true); - // Swap libray data read from file to other object + // Swap library data read from file to other object libraryData.swap(fileLibraryData); // Do size and content checks against swapped data. diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index fd5585cdd..ea6d8a379 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -4060,7 +4060,7 @@ static std::list truncateValues(std::list va const size_t sz = ValueFlow::getSizeOf(*valueType, settings); for (ValueFlow::Value &value : values) { - // Dont truncate impossible values since those can be outside of the valid range + // Don't truncate impossible values since those can be outside of the valid range if (value.isImpossible()) continue; if (value.isFloatValue()) {