Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitbbc72cd3e81616c71f2ff05c1b88b8823279f36f (patch)
Author
 Angel Dimitriev <angel_dimitriev@abv.bg>
2022-04-19 20:29:17 +0300
Committer
 GitHub <noreply@github.com>
2022-04-19 20:29:17 +0300
Files7f9dbd61fafec88834cbd497ecaddd7e8a0de83e
Object-oriented_programming_FMI-bbc72cd3e81616c71f2ff05c1b88b8823279f36f.tar
Object-oriented_programming_FMI-bbc72cd3e81616c71f2ff05c1b88b8823279f36f.tar.gz
Object-oriented_programming_FMI-bbc72cd3e81616c71f2ff05c1b88b8823279f36f.zip
Parenteab66ad55d57ed3238755fcecf05e0aa58b79f00 (diff)
Update StringPool.cpp
1 files changed, 2 insertions, 1 deletions
-rw-r--r--Sem. 09/StringPool/StringPool.cpp3
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
+}