OSDN Git Service

[denncoCreator] fixed a crash bug.
[dennco/denncoCreator.git] / Source / dccell.h
index 25fa565..b47c95d 100644 (file)
@@ -37,7 +37,7 @@ class DCCell : public QObject, public TKCell
 {
     Q_OBJECT
 
-    friend class DCComponentUtil;
+    friend struct DCComponentUtil;
     friend class DCContainer;
 
     DCCell(DCContainer *container, std::string location, std::string name, std::string type, bool canInputInterface, bool canOutputInterface);
@@ -70,7 +70,7 @@ class DCCell : public QObject, public TKCell
 public:
     virtual ~DCCell();
 
-    virtual bool        doTick(float time) {return false;}
+    virtual bool        doTick(float time) { (void) time; return false;}
     virtual bool        doInit() {return false;}
     virtual bool        doDestroy() {return false;}
     virtual bool        setCellCode(TKCellCode *code, const void *data);