diff options
author | Michael Stahl <mst@openoffice.org> | 2009-10-30 17:35:08 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2009-10-30 17:35:08 +0100 |
commit | 056dc50fac724d5c2782688504b9363d6ae19f61 (patch) | |
tree | 51da764623c2129a279506fc4e0d347ef30980c0 /framework | |
parent | d76b686cf064df423f85adf591b93fffa405fb01 (diff) |
#i105295#: fix aliased memcpy() reported by valgrind in:
LayoutManager::UIElement::operator=()
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index fb10e4fae24c..ab6c79a89aa3 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -249,6 +249,7 @@ bool LayoutManager::UIElement::operator< ( const LayoutManager::UIElement& aUIEl LayoutManager::UIElement& LayoutManager::UIElement::operator= ( const LayoutManager::UIElement& rUIElement ) { + if (this == &rUIElement) { return *this; } m_aType = rUIElement.m_aType; m_aName = rUIElement.m_aName; m_aUIName = rUIElement.m_aUIName; |