Index: src/libchcore/TObsoleteFiles.cpp =================================================================== diff -u -re96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3 -ra6834b56f41e9e4a44a2869ffdad1599da9b24c4 --- src/libchcore/TObsoleteFiles.cpp (.../TObsoleteFiles.cpp) (revision e96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3) +++ src/libchcore/TObsoleteFiles.cpp (.../TObsoleteFiles.cpp) (revision a6834b56f41e9e4a44a2869ffdad1599da9b24c4) @@ -22,7 +22,7 @@ namespace chcore { - ObsoleteFileInfo::ObsoleteFileInfo(TSmartPath path, bool bAdded) : + ObsoleteFileInfo::ObsoleteFileInfo(const TSmartPath& path, bool bAdded) : m_path(path), m_bAdded(bAdded) { Index: src/libchcore/TObsoleteFiles.h =================================================================== diff -u -re96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3 -ra6834b56f41e9e4a44a2869ffdad1599da9b24c4 --- src/libchcore/TObsoleteFiles.h (.../TObsoleteFiles.h) (revision e96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3) +++ src/libchcore/TObsoleteFiles.h (.../TObsoleteFiles.h) (revision a6834b56f41e9e4a44a2869ffdad1599da9b24c4) @@ -31,7 +31,7 @@ struct ObsoleteFileInfo { ObsoleteFileInfo(); - ObsoleteFileInfo(TSmartPath path, bool bAdded); + ObsoleteFileInfo(const TSmartPath& path, bool bAdded); TSmartPath m_path; mutable bool m_bAdded; Index: src/libchcore/TSQLiteSerializerRowData.cpp =================================================================== diff -u -r4fe995b304ea342b50293f92d3c1992b43b820f7 -ra6834b56f41e9e4a44a2869ffdad1599da9b24c4 --- src/libchcore/TSQLiteSerializerRowData.cpp (.../TSQLiteSerializerRowData.cpp) (revision 4fe995b304ea342b50293f92d3c1992b43b820f7) +++ src/libchcore/TSQLiteSerializerRowData.cpp (.../TSQLiteSerializerRowData.cpp) (revision a6834b56f41e9e4a44a2869ffdad1599da9b24c4) @@ -153,6 +153,7 @@ throw TSerializerException(eErr_InvalidArgument, _T("Invalid argument type provided"), LOCATION); BOOST_STATIC_ASSERT(sizeof(double) == sizeof(unsigned long long)); + // cppcheck-suppress invalidPointerCast ModifyColumnData(stColIndex) = *(unsigned long long*)&dValue; return *this; } @@ -470,6 +471,7 @@ case IColumnsDefinition::eType_double: { + // cppcheck-suppress invalidPointerCast double dValue = *(double*)(unsigned long long*)&GetDataForColumn(stColumn); DBTRACE1_D(_T("- param(double): %f\n"), dValue); tStatement.BindValue(iSQLiteColumnNumber++, dValue);