aboutsummaryrefslogtreecommitdiff
path: root/src/array.h
diff options
context:
space:
mode:
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