Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Solutions Sem. 08 / ex3 / WordCollection.cpp
diff options
context:
space:
mode:
Commit33153fb1da042f5604f195c296e2b82e9a6b9da6 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-04-16 18:38:21 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-04-16 18:38:21 +0300
Files0d136702bd90ce06277c0e693e71a602bb49a5c5 /Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp
uni-projects-33153fb1da042f5604f195c296e2b82e9a6b9da6.tar
uni-projects-33153fb1da042f5604f195c296e2b82e9a6b9da6.tar.gz
uni-projects-33153fb1da042f5604f195c296e2b82e9a6b9da6.zip
Parent763b3710e26fc1e58669927ba59efa5ea2ebc89e (diff)
Improved comment
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp2
diff --git a/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp b/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp
index cd651b4..4cfdbb5 100644
--- a/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp
+++ b/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp
@@ -16,7 +16,7 @@ void WordCollection::copyFrom(const WordCollection& other) {
words = new DynStr[length];
sortedPos = new int[length];
- for (int i = 0; i < length; i++) { // Must be < length, since we can have valid items outside the count range in words
+ for (int i = 0; i < length; i++) { // Must be < length, since storedWordsCount could be > count
words[i] = other.words[i];
sortedPos[i] = other.sortedPos[i];
}