From 7cc1bdd06e68ab81612e8feee2a1dedf0e392886 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 13 Sep 2025 17:40:42 +0300 Subject: fix: Replace C-style casts with C++ static/reinterpret casts C-style casts should be replaced with appropriate C++ cast operators for better type safety and code clarity. This change fixes cppcheck style warnings about C-style pointer casting by using: - static_cast for simple pointer type conversions - reinterpret_cast for memory buffer pointer arithmetic The changes maintain identical functionality while following modern C++ best practices for explicit casting. --- kms++/src/blob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kms++/src/blob.cpp') diff --git a/kms++/src/blob.cpp b/kms++/src/blob.cpp index 431863a..69914f6 100644 --- a/kms++/src/blob.cpp +++ b/kms++/src/blob.cpp @@ -38,7 +38,7 @@ vector Blob::data() if (!blob) throw invalid_argument("Blob data not available"); - uint8_t* data = (uint8_t*)blob->data; + uint8_t* data = static_cast(blob->data); auto v = vector(data, data + blob->length); -- cgit v1.2.3