summaryrefslogtreecommitdiff
path: root/src/action.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-10-19 11:45:12 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-10-24 22:42:07 +0800
commit62e557ec650006f2d3dd614f84804ed1b5cd4349 (patch)
tree369b8c0d95bb3235eaacd520cc6c7aba1d0f5568 /src/action.cpp
parent6f4cb23385f8818f4373c939f241f1a20596870a (diff)
downloadunity-window-decorator-62e557ec650006f2d3dd614f84804ed1b5cd4349.tar.gz
unity-window-decorator-62e557ec650006f2d3dd614f84804ed1b5cd4349.tar.bz2
core: general code cleanup (static analysis)
Diffstat (limited to 'src/action.cpp')
-rw-r--r--src/action.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/action.cpp b/src/action.cpp
index f487ec9..ab8cfb5 100644
--- a/src/action.cpp
+++ b/src/action.cpp
@@ -484,6 +484,9 @@ CompAction::operator== (const CompAction& val)
CompAction &
CompAction::operator= (const CompAction &action)
{
+ if (this == &action)
+ return *this;
+
delete priv;
priv = new PrivateAction (*action.priv);