openbsd-ports/devel/cryptopp/patches/patch-smartptr_h
dcoppa 6a1ea1cc3c Update to cryptopp-5.6.1
'go for it' espie@
2011-06-24 07:55:17 +00:00

15 lines
509 B
Plaintext

$OpenBSD: patch-smartptr_h,v 1.2 2011/06/24 07:55:18 dcoppa Exp $
--- smartptr.h.orig Wed Jun 18 13:41:43 2008
+++ smartptr.h Wed Jun 18 13:42:09 2008
@@ -189,8 +189,8 @@ template <class T> counted_ptr<T> & counted_ptr<T>::op
template <class T> class vector_member_ptrs
{
public:
- vector_member_ptrs(size_t size=0)
- : m_size(size), m_ptr(new member_ptr<T>[size]) {}
+ vector_member_ptrs(size_t sz=0)
+ : m_size(sz), m_ptr(new member_ptr<T>[sz]) {}
~vector_member_ptrs()
{delete [] this->m_ptr;}