Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 10
diff options
context:
space:
mode:
Commit5d5d09286fd6cb20941b9c50d38a4c97e23dd000 (patch)
Author
 Angel Dimitriev <angel_dimitriev@abv.bg>
2022-05-03 22:30:12 +0300
Committer
 GitHub <noreply@github.com>
2022-05-03 22:30:12 +0300
Files1655540dc6887758df8d85182592bcba3fe677ef /Sem. 10
Object-oriented_programming_FMI-5d5d09286fd6cb20941b9c50d38a4c97e23dd000.tar
Object-oriented_programming_FMI-5d5d09286fd6cb20941b9c50d38a4c97e23dd000.tar.gz
Object-oriented_programming_FMI-5d5d09286fd6cb20941b9c50d38a4c97e23dd000.zip
Parent3b072ec453b3eeaa2af1f4c2db1e887c42a9a9d9 (diff)
Update README.md
1 files changed, 4 insertions, 4 deletions
-rw-r--r--Sem. 10/README.md8
diff --git a/Sem. 10/README.md b/Sem. 10/README.md
index e10bc85..b06d4a6 100644
--- a/Sem. 10/README.md
+++ b/Sem. 10/README.md
@@ -69,13 +69,13 @@ public:
}
A& operator=(const A& other)
{
- nestedObject= other.nestedObject;
- size = other.size;
-
+
if (this != &other)
{
free();
- copyFrom(other);
+ nestedObject= other.nestedObject;
+ size = other.size;
+ copyFrom(other);
}
return *this;
}