Kaydet (Commit) a61e55a2 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:passstuffbyref

Change-Id: Ic889efaca00ad9600b1b5c8452aa7ee819e63c89
üst 859c2874
......@@ -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);
......
......@@ -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")
......
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