kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #26464
PATCH: change KICADMODEL declaration
The attached patch changes the KICADMODEL declaration
from struct to class to maintain coding consistency and
appease clang.
- Cirilo
From 349bbcc74ef844eeecb9e2df02d265b066b37e44 Mon Sep 17 00:00:00 2001
From: Cirilo Bernardo <cirilo.bernardo@xxxxxxxxx>
Date: Tue, 27 Sep 2016 10:29:05 +1000
Subject: [PATCH] Change KICADMODEL definition from struct to class for
consistency
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------2.9.3"
This is a multi-part message in MIME format.
--------------2.9.3
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
---
utils/kicad2step/pcb/kicadmodel.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--------------2.9.3
Content-Type: text/x-patch; name="0001-Change-KICADMODEL-definition-from-struct-to-class-fo.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="0001-Change-KICADMODEL-definition-from-struct-to-class-fo.patch"
diff --git a/utils/kicad2step/pcb/kicadmodel.h b/utils/kicad2step/pcb/kicadmodel.h
index a087c3b..f34fbac 100644
--- a/utils/kicad2step/pcb/kicadmodel.h
+++ b/utils/kicad2step/pcb/kicadmodel.h
@@ -31,8 +31,9 @@
#include "base.h"
-struct KICADMODEL
+class KICADMODEL
{
+public:
KICADMODEL();
virtual ~KICADMODEL();
--------------2.9.3--
Follow ups