[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sc/source
Aron Budea (via logerrit)
logerrit at kemper.freedesktop.org
Fri Feb 21 07:43:12 UTC 2020
sc/source/ui/view/gridwin.cxx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
New commits:
commit 341cc6b29bffa477f3b1fcbb4184f7503478efbf
Author: Aron Budea <aron.budea at collabora.com>
AuthorDate: Fri Feb 21 07:01:15 2020 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Feb 21 08:42:38 2020 +0100
Blind build fix for Android
After 9bfa939f87f28cdaed2a24c3dc5f9a21004b19da
Also, replace chained OStringBuffer::append() with operator+
Change-Id: I7012667b3c4173cc0193720e0197992e5942bc7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89164
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 1232a8fa3626..8946dfc204b4 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -2204,13 +2204,8 @@ void ScGridWindow::MouseButtonUp( const MouseEvent& rMEvt )
OString aCursor = pForTabView->GetViewData().describeCellCursorAt(nPosX, nPosY);
double fPPTX = pForTabView->GetViewData().GetPPTX();
int mouseX = aPos.X() / fPPTX;
- OStringBuffer aBuf;
- aBuf.append(aUrl.toUtf8().getStr());
- aBuf.append(" coordinates: ");
- aBuf.append(aCursor);
- aBuf.append(", ");
- aBuf.append(mouseX);
- pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_HYPERLINK_CLICKED, aBuf.makeStringAndClear().getStr());
+ OString aMsg(aUrl.toUtf8() + " coordinates: " + aCursor + ", " + OString::number(mouseX));
+ pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_HYPERLINK_CLICKED, aMsg.getStr());
} else
ScGlobal::OpenURL(aUrl, aTarget);
}
More information about the Libreoffice-commits
mailing list