summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-02-15 09:56:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-02-15 10:31:48 +0100
commitddb682f6f7955595065df97b5d13497c08e38389 (patch)
tree13e27e651729a68bcd1d44ecb3ef65fd4508f99b /include/svx
parent2029fb151855fba2f812403fbb96b0db1965bcf6 (diff)
return by const& from SdrObject::GetName
shaves some small amount off the profile of loading a large chart Change-Id: I24c99a68382663e52baccd34e22b63bf16fa1eb4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129954 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/svdobj.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx
index ebcad8a002b4..c6e394d7b539 100644
--- a/include/svx/svdobj.hxx
+++ b/include/svx/svdobj.hxx
@@ -375,7 +375,7 @@ public:
// or SdrOle2Obj.
// It may also have a Title and a Description for accessibility purposes.
void SetName(const OUString& rStr, const bool bSetChanged = true);
- OUString GetName() const;
+ const OUString & GetName() const;
void MakeNameUnique();
void MakeNameUnique(std::unordered_set<OUString>& rNameSet);
void SetTitle(const OUString& rStr);