Kaydet (Commit) f66ecf00 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: passing OUString by value, rather pass by reference

Change-Id: Ic6842bdb382c05912399db86aa08765d8653a019
üst 2f5cfa06
...@@ -1989,7 +1989,7 @@ void SdrTextObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus ) ...@@ -1989,7 +1989,7 @@ void SdrTextObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus )
/* Begin chaining code */ /* Begin chaining code */
// XXX: Make it a method somewhere? // XXX: Make it a method somewhere?
SdrObject *ImpGetObjByName(SdrObjList *pObjList, OUString aObjName) SdrObject *ImpGetObjByName(SdrObjList *pObjList, OUString const& aObjName)
{ {
// scan the whole list // scan the whole list
size_t nObjCount = pObjList->GetObjCount(); size_t nObjCount = pObjList->GetObjCount();
...@@ -2005,7 +2005,7 @@ SdrObject *ImpGetObjByName(SdrObjList *pObjList, OUString aObjName) ...@@ -2005,7 +2005,7 @@ SdrObject *ImpGetObjByName(SdrObjList *pObjList, OUString aObjName)
} }
// XXX: Make it a (private) method of SdrTextObj // XXX: Make it a (private) method of SdrTextObj
void ImpUpdateChainLinks(SdrTextObj *pTextObj, OUString aNextLinkName) void ImpUpdateChainLinks(SdrTextObj *pTextObj, OUString const& aNextLinkName)
{ {
// XXX: Current implementation constraints text boxes to be on the same page // XXX: Current implementation constraints text boxes to be on the same page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment