| Server IP : 82.208.35.60 / Your IP : 216.73.217.103 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/sysutils/zbackup/files/ |
Upload File : |
--- sptr.hh.orig 2015-09-16 07:28:04 UTC
+++ sptr.hh
@@ -25,9 +25,9 @@ class sptr_base
public:
- sptr_base(): p( 0 ), count( 0 ) {}
+ sptr_base(): p( nullptr ), count( nullptr ) {}
- sptr_base( T * p_ ): p( p_ ), count( p ? new unsigned( 1 ) : 0 )
+ sptr_base( T * p_ ): p( p_ ), count( p ? new unsigned( 1 ) : nullptr )
{
}
@@ -48,27 +48,27 @@ class sptr_base
{
delete count;
- count = 0;
+ count = nullptr;
if ( p )
{
T * p_ = p;
- p = 0;
+ p = nullptr;
delete p_;
}
}
else
{
- p = 0;
- count = 0;
+ p = nullptr;
+ count = nullptr;
}
}
}
unsigned use_count() const
- { return count; }
+ { return *count; }
sptr_base & operator = ( sptr_base const & other )
{ if ( &other != this ) { reset(); p = other.p; count = other.count; increment(); }