freebsd-ports/www/suphp/files/patch-src_SmartPtr.hpp
Dima Panov 6e7e349ec2 - Unbroke with clang/gcc47+ by use restrictive C++ construction
- Declare that code use gnu89 style
- No PORTREVISION bump, users with base gcc not affected

PR:		168579
Submitted by:	myself
Approved by:	maintainer timeout (> 2 weeks)
Obtained from:	PkgSrc repo
2012-06-20 01:30:36 +00:00

15 lines
417 B
C++

$NetBSD: patch-src_SmartPtr.hpp,v 1.1 2011/09/21 12:54:16 adam Exp $
Fix C++ syntax
--- src/SmartPtr.hpp.orig 2011-09-21 12:48:02.000000000 +0000
+++ src/SmartPtr.hpp
@@ -150,7 +150,7 @@ namespace suPHP {
template<class T>
const SmartPtr<T>& suPHP::SmartPtr<T>::operator=(
const SmartPtr<T>& ref) {
- this.reset(ref.ptr);
+ this->reset(ref.ptr);
return *this;
}