From bbc72cd3e81616c71f2ff05c1b88b8823279f36f Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Tue, 19 Apr 2022 20:29:17 +0300 Subject: Update StringPool.cpp --- Sem. 09/StringPool/StringPool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +} -- cgit v1.3.1-23-gd82d