diff options
1 files changed, 2 insertions, 1 deletions
| -rw-r--r-- | Sem. 09/StringPool/StringPool.cpp | 3 |
diff --git a/Sem. 09/StringPool/StringPool.cpp b/Sem. 09/StringPool/StringPool.cpp index ffe8f5c..425519b 100644 --- a/Sem. 09/StringPool/StringPool.cpp +++ b/Sem. 09/StringPool/StringPool.cpp @@ -1,5 +1,6 @@ #include "StringPool.h"
+//definitely not the best algorithmic approach. Used as an example for array of pointers.
void StringPool::copyFrom(const StringPool& other)
{
data = new MyString * [other.count];
@@ -139,4 +140,4 @@ StringPool& StringPool::operator=(const StringPool& other) StringPool::~StringPool()
{
free();
-}
\ No newline at end of file +}
|
