From 29050546497f56da3c5febb0f2e4af6fbbc89536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= Date: Fri, 4 Nov 2016 21:17:41 +0100 Subject: [PATCH] N2kCANMsg: Proper C++ style initialization of class members --- N2kCANMsg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/N2kCANMsg.h b/N2kCANMsg.h index 86eebf7b..f7a0c5e2 100644 --- a/N2kCANMsg.h +++ b/N2kCANMsg.h @@ -28,6 +28,10 @@ Author: Timo Lappalainen class tN2kCANMsg { public: + tN2kCANMsg() + : Ready(false),FreeMsg(true),SystemMessage(false) { + N2kMsg.Clear(); + } tN2kMsg N2kMsg; bool Ready; // Ready for handling bool FreeMsg; // Msg is free for fill up