diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-19 12:51:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-19 12:51:57 +0200 |
commit | a61e55a2c8b1c555de905986834462f3ce31621c (patch) | |
tree | 83d87d80e6e2cfa2a20dbf82d597ea625d340c88 /sd | |
parent | 859c2874ca24343d5cffca410bbc46483411824a (diff) |
loplugin:passstuffbyref
Change-Id: Ic889efaca00ad9600b1b5c8452aa7ee819e63c89
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/inc/ViewShell.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/viewshel.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/inc/ViewShell.hxx b/sd/source/ui/inc/ViewShell.hxx index d3dfadb891af..b0a868282453 100644 --- a/sd/source/ui/inc/ViewShell.hxx +++ b/sd/source/ui/inc/ViewShell.hxx @@ -452,7 +452,7 @@ public: /// Allows adjusting the point or mark of the selection to a document coordinate. void SetCursorMm100Position(const Point& rPosition, bool bPoint, bool bClearMark); /// Gets the currently selected text. - OString GetTextSelection(OString aMimeType); + OString GetTextSelection(const OString& aMimeType); /// Allows starting or ending a graphic move or resize action. void SetGraphicMm100Position(bool bStart, const Point& rPosition); diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index c66405b47e2a..e3b83144db49 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -553,7 +553,7 @@ void ViewShell::SetCursorMm100Position(const Point& rPosition, bool bPoint, bool } } -OString ViewShell::GetTextSelection(OString aMimeType) +OString ViewShell::GetTextSelection(const OString& _aMimeType) { SdrView* pSdrView = GetView(); if (!pSdrView) @@ -568,6 +568,7 @@ OString ViewShell::GetTextSelection(OString aMimeType) // Take care of UTF-8 text here. bool bConvert = false; sal_Int32 nIndex = 0; + OString aMimeType = _aMimeType; if (aMimeType.getToken(0, ';', nIndex) == "text/plain") { if (aMimeType.getToken(0, ';', nIndex) == "charset=utf-8") |