Correct sonar bugs and address smells
[ric-plt/xapp-frame-cpp.git] / src / messaging / msg_component.hpp
index 40662a2..95e445c 100644 (file)
@@ -47,7 +47,7 @@ namespace xapp {
        such a smart pointer, and does _nothing_ when called.
 */
 typedef struct {
-       void operator()( unsigned char * p ){}
+       void operator()( unsigned char * p ) const { /* empty to prevent free */ }
 } unfreeable;
 
 /*