[Libreoffice-commits] online.git: loolwsd/test
Tor Lillqvist
tml at collabora.com
Mon Sep 19 11:03:32 UTC 2016
loolwsd/test/httpwstest.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit f24417127cf6e650c518773362586f9a2185902d
Author: Tor Lillqvist <tml at collabora.com>
Date: Mon Sep 19 14:02:05 2016 +0300
Avoid a couple of pointless const variables used just once
I truly cannot understand what purpose using these variables served.
diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index 14ecd3d..858f58d 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -1438,9 +1438,7 @@ void HTTPWSTest::testCalcEditRendering()
const auto testname = "calcEditRendering ";
auto socket = loadDocAndGetSocket("calc_render.xls", _uri, testname);
- const std::string x = "5000";
- const std::string y = "5";
- sendTextFrame(socket, "mouse type=buttondown x=" + x + " y=" + y + " count=1 buttons=1 modifier=0");
+ sendTextFrame(socket, "mouse type=buttondown x=5000 y=5 count=1 buttons=1 modifier=0");
sendTextFrame(socket, "key type=input char=97 key=0");
sendTextFrame(socket, "key type=input char=98 key=0");
sendTextFrame(socket, "key type=input char=99 key=0");
More information about the Libreoffice-commits
mailing list