diff options
author | Maho Nakata <maho@FreeBSD.org> | 2003-08-02 02:36:11 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2003-08-02 02:36:11 +0000 |
commit | c2d82a9ad673ccef3c783db5a09b71a1f88036e0 (patch) | |
tree | 81e11a9f97e19fded46d8a8934c871e69bec40af /x11-toolkits/viewklass/files/patch-Vk::VkComponentList.h | |
parent | Update to 2.0.36. (diff) |
Fix build on gcc-3.3.x
Submitted by: Simon Barner <barner@in.tum.de>
Notes
Notes:
svn path=/head/; revision=86172
Diffstat (limited to 'x11-toolkits/viewklass/files/patch-Vk::VkComponentList.h')
-rw-r--r-- | x11-toolkits/viewklass/files/patch-Vk::VkComponentList.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/x11-toolkits/viewklass/files/patch-Vk::VkComponentList.h b/x11-toolkits/viewklass/files/patch-Vk::VkComponentList.h new file mode 100644 index 000000000000..b61f4825a811 --- /dev/null +++ b/x11-toolkits/viewklass/files/patch-Vk::VkComponentList.h @@ -0,0 +1,24 @@ +--- ./Vk/VkComponentList.h.orig Wed Jul 23 02:09:51 2003 ++++ ./Vk/VkComponentList.h Wed Jul 23 02:18:22 2003 +@@ -41,6 +41,8 @@ + + #include <Vk/VkConfig.h> + ++using std::vector; ++ + class VkComponent; + + class VkComponentList { +@@ -59,10 +61,10 @@ + VkComponent* operator[](int indx) const { return elements[indx]; } + + void insert(int pos, VkComponent* c) +- { elements.insert(&elements[pos], c); } ++ { elements.insert(elements.begin () + pos, c); } + + void remove(int pos) +- { elements.erase(&elements[pos]); } ++ { elements.erase(elements.begin () + pos); } + + private: + vector<VkComponent*> elements; |