accepted more suggestions from sonarcloud
This commit is contained in:
parent
455c254462
commit
d9e656db97
2 changed files with 4 additions and 9 deletions
|
|
@ -848,12 +848,7 @@ void
|
||||||
XWindowsScreen::fakeMouseRelativeMove(SInt32 dx, SInt32 dy) const
|
XWindowsScreen::fakeMouseRelativeMove(SInt32 dx, SInt32 dy) const
|
||||||
{
|
{
|
||||||
// FIXME -- ignore xinerama for now
|
// FIXME -- ignore xinerama for now
|
||||||
// if (false && m_xinerama && m_xtestIsXineramaUnaware) {
|
|
||||||
// XWarpPointer(m_display, None, m_root, 0, 0, 0, 0, x, y);
|
|
||||||
// }
|
|
||||||
// else {
|
|
||||||
XTestFakeRelativeMotionEvent(m_display, dx, dy, CurrentTime);
|
XTestFakeRelativeMotionEvent(m_display, dx, dy, CurrentTime);
|
||||||
// }
|
|
||||||
XFlush(m_display);
|
XFlush(m_display);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -220,12 +220,12 @@ TEST(ArgParserTests, parseToolArgs_matches_correspondingly)
|
||||||
for (auto const &test: tests) {
|
for (auto const &test: tests) {
|
||||||
ToolArgs toolArgs;
|
ToolArgs toolArgs;
|
||||||
EXPECT_FALSE(test.second(toolArgs));
|
EXPECT_FALSE(test.second(toolArgs));
|
||||||
const char *twoArgs[2] {"syntool", test.first};
|
std::array<const char *, 2> twoArgs {"syntool", test.first};
|
||||||
EXPECT_TRUE(parser.parseToolArgs(toolArgs, 2, twoArgs));
|
EXPECT_TRUE(parser.parseToolArgs(toolArgs, 2, twoArgs.data()));
|
||||||
EXPECT_TRUE(test.second(toolArgs));
|
EXPECT_TRUE(test.second(toolArgs));
|
||||||
}
|
}
|
||||||
ToolArgs toolArgs;
|
ToolArgs toolArgs;
|
||||||
const char *twoArgs[2] {"syntool", "--garbage"};
|
std::array<const char *, 2> twoArgs {"syntool", "--garbage"};
|
||||||
EXPECT_FALSE(parser.parseToolArgs(toolArgs, 2, twoArgs));
|
EXPECT_FALSE(parser.parseToolArgs(toolArgs, 2, twoArgs.data()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue