aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-10 00:38:16 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-10 00:38:16 +0000
commit96a0e186d535d761d6b24ef3e929a6710e4b0cea (patch)
treeb6303e0f63226af70af97fc93941a5a2b91d4fbd
parent22e51abaebd4f0c194e505d879f9b6a2fc31890d (diff)
downloadlibbu++-96a0e186d535d761d6b24ef3e929a6710e4b0cea.tar.gz
libbu++-96a0e186d535d761d6b24ef3e929a6710e4b0cea.tar.bz2
libbu++-96a0e186d535d761d6b24ef3e929a6710e4b0cea.tar.xz
libbu++-96a0e186d535d761d6b24ef3e929a6710e4b0cea.zip
Fixed another Atom bug.
Diffstat (limited to '')
-rw-r--r--src/atom.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/atom.h b/src/atom.h
index ecda2a0..75ebf22 100644
--- a/src/atom.h
+++ b/src/atom.h
@@ -25,7 +25,8 @@ namespace Bu
25 Atom( const MyType &oth ) : 25 Atom( const MyType &oth ) :
26 pData( NULL ) 26 pData( NULL )
27 { 27 {
28 set( *oth.pData ); 28 if( oth.pData )
29 set( *oth.pData );
29 } 30 }
30 31
31 Atom( const t &oth ) : 32 Atom( const t &oth ) :
@@ -98,7 +99,8 @@ namespace Bu
98 99
99 MyType &operator =( const MyType &oth ) 100 MyType &operator =( const MyType &oth )
100 { 101 {
101 set( *oth.pData ); 102 if( oth.pData )
103 set( *oth.pData );
102 104
103 return *this; 105 return *this;
104 } 106 }