modernize: Replace most remaining old-style connects by PMF ones
[quassel.git] / src / core / coreuserinputhandler.cpp
index d060ada..0b3b2b0 100644 (file)
@@ -144,7 +144,7 @@ void CoreUserInputHandler::banOrUnban(const BufferInfo &bufferInfo, const QStrin
             return;
         }
 
-        static QRegExp ipAddress("\\d+\\.\\d+\\.\\d+\\.\\d+");
+        static QRegExp ipAddress(R"(\d+\.\d+\.\d+\.\d+)");
         if (ipAddress.exactMatch(generalizedHost))    {
             int lastDotPos = generalizedHost.lastIndexOf('.') + 1;
             generalizedHost.replace(lastDotPos, generalizedHost.length() - lastDotPos, '*');