summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdobj.cxx')
-rw-r--r--svx/source/svdraw/svdobj.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index cdae6b949c43..cb89a2fc5555 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -800,14 +800,16 @@ void SdrObject::SetName(const OUString& rStr, const bool bSetChanged)
}
}
-OUString SdrObject::GetName() const
+const OUString & SdrObject::GetName() const
{
+ static const OUString EMPTY = u"";
+
if(m_pPlusData)
{
return m_pPlusData->aObjName;
}
- return OUString();
+ return EMPTY;
}
void SdrObject::SetTitle(const OUString& rStr)