summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar comex2020-12-06 19:24:23 -0500
committerGravatar comex2020-12-06 19:25:48 -0500
commit2dce2be1387fea3e4bf85f98b09f45d7d682e591 (patch)
treebeb8ec2a367f3278f0abc26c5f88925c2779ddb7 /src
parentMerge pull request #5155 from comex/xx-default (diff)
downloadyuzu-2dce2be1387fea3e4bf85f98b09f45d7d682e591.tar.gz
yuzu-2dce2be1387fea3e4bf85f98b09f45d7d682e591.tar.xz
yuzu-2dce2be1387fea3e4bf85f98b09f45d7d682e591.zip
configure_motion_touch: Fix unescaped backslash in regex
Since this is inside a string literal, backslashes that are part of regex syntax have to be escaped. But that's ugly, so convert to a raw string instead.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/configure_motion_touch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_motion_touch.cpp b/src/yuzu/configuration/configure_motion_touch.cpp
index 2afac591a..c2a7113da 100644
--- a/src/yuzu/configuration/configure_motion_touch.cpp
+++ b/src/yuzu/configuration/configure_motion_touch.cpp
@@ -183,8 +183,8 @@ void ConfigureMotionTouch::ConnectEvents() {
183} 183}
184 184
185void ConfigureMotionTouch::OnUDPAddServer() { 185void ConfigureMotionTouch::OnUDPAddServer() {
186 QRegExp re(tr("^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[" 186 QRegExp re(tr(R"re(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4]"
187 "0-9][0-9]?)$")); // a valid ip address 187 "[0-9]|[01]?[0-9][0-9]?)$)re")); // a valid ip address
188 bool ok; 188 bool ok;
189 QString port_text = ui->udp_port->text(); 189 QString port_text = ui->udp_port->text();
190 QString server_text = ui->udp_server->text(); 190 QString server_text = ui->udp_server->text();