浏览代码

ImVector: Revert 6172e932728a0fa629d910c1a1534d66a59e386a actually problematic with our current use (because we don't construct the instances).

omar 7 年之前
父节点
当前提交
e9ceef4762
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      imgui.h

+ 2 - 4
imgui.h

@@ -1018,10 +1018,8 @@ public:
     typedef value_type*         iterator;
     typedef value_type*         iterator;
     typedef const value_type*   const_iterator;
     typedef const value_type*   const_iterator;
 
 
-    inline ImVector()                                           { Size = Capacity = 0; Data = NULL; }
-    inline ~ImVector()                                          { if (Data) ImGui::MemFree(Data); }
-    inline ImVector(const ImVector<T>& rhs)                     { Size = Capacity = 0; Data = NULL; if (rhs.Size) { resize(rhs.Size); memcpy(Data, rhs.Data, (size_t)rhs.Size * sizeof(T)); } }
-    inline ImVector<T>& operator=(const ImVector<T>& rhs)       { resize(rhs.Size); if (rhs.Size) memcpy(Data, rhs.Data, (size_t)rhs.Size * sizeof(T)); return *this; }
+    inline ImVector()           { Size = Capacity = 0; Data = NULL; }
+    inline ~ImVector()          { if (Data) ImGui::MemFree(Data); }
 
 
     inline bool                 empty() const                   { return Size == 0; }
     inline bool                 empty() const                   { return Size == 0; }
     inline int                  size() const                    { return Size; }
     inline int                  size() const                    { return Size; }