Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
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;
}