]> git.stg.codes - stg.git/commitdiff
Ticket 26. if (&set == this) checking removed in the operator().
authorElena Mamontova <helenh463@gmail.com>
Wed, 10 Feb 2016 13:28:02 +0000 (15:28 +0200)
committerElena Mamontova <helenh463@gmail.com>
Wed, 10 Feb 2016 13:28:02 +0000 (15:28 +0200)
projects/stargazer/settings_impl.cpp

index ca343bd5e20464c690479aac9004391cafe8ec81..a50a0a657ec708f37accbc0d5adfa7ab1d3ad218 100644 (file)
@@ -101,9 +101,6 @@ SETTINGS_IMPL::SETTINGS_IMPL(const SETTINGS_IMPL & rval)
 //-----------------------------------------------------------------------------
 SETTINGS_IMPL & SETTINGS_IMPL::operator=(const SETTINGS_IMPL & set)
 {
-    if (&set == this)
-        return *this;
-
     modulesPath = set.modulesPath;
     dirName = set.dirName;
     confDir = set.confDir;