diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-09-13 18:28:25 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-12-18 12:23:57 +0200 |
| commit | de2346e9ba06d15d5839fe0a3b3f61f474c5bedb (patch) | |
| tree | ff6d2f4bd3fbbf174daba4c3e57150f2b6bb8bdf /utils | |
| parent | 00a14befa954162723142571caf301f9679c6059 (diff) | |
fix: Add explicit keyword to single-argument constructors
This commit addresses cppcheck warnings about constructors with single
arguments that are not marked as explicit (noExplicitConstructor).
Single-argument constructors can perform implicit type conversions which
may lead to unexpected behavior and bugs. Marking them as explicit prevents
these implicit conversions and makes the code more predictable.
Changes made:
- kmscube/cube-egl.h: Added explicit keyword to EglState constructor
- kmscube/cube-gbm.cpp: Added explicit keyword to GbmDevice constructor
These changes improve type safety by requiring explicit construction calls
and preventing unintended implicit conversions.
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions
