summaryrefslogtreecommitdiff
path: root/src/array.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-20 21:31:11 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-20 21:31:11 +0000
commit96e6c35ec13aa4982a90d78a24617cf5110842da (patch)
tree526bb491fa688bd638ab41d5840081ba885f527c /src/array.h
parentda38bfc4ed4d6714a5d9f1b42e002fe8221ae268 (diff)
downloadlibbu++-96e6c35ec13aa4982a90d78a24617cf5110842da.tar.gz
libbu++-96e6c35ec13aa4982a90d78a24617cf5110842da.tar.bz2
libbu++-96e6c35ec13aa4982a90d78a24617cf5110842da.tar.xz
libbu++-96e6c35ec13aa4982a90d78a24617cf5110842da.zip
Added some tweaks to array and fbasicstring.
Diffstat (limited to 'src/array.h')
-rw-r--r--src/array.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/array.h b/src/array.h
index 029bc26..604f8a6 100644
--- a/src/array.h
+++ b/src/array.h
@@ -172,7 +172,7 @@ namespace Bu
172 core->clear(); 172 core->clear();
173 } 173 }
174 174
175 void append( const value &rVal ) 175 MyType &append( const value &rVal )
176 { 176 {
177 _hardCopy(); 177 _hardCopy();
178 if( core->iSize == core->iCapacity ) 178 if( core->iSize == core->iCapacity )
@@ -181,6 +181,8 @@ namespace Bu
181 } 181 }
182 182
183 core->va.construct( &core->pData[core->iSize++], rVal ); 183 core->va.construct( &core->pData[core->iSize++], rVal );
184
185 return *this;
184 } 186 }
185 187
186 //operator 188 //operator