File indexing completed on 2024-04-28 05:38:44
0001 #include <QtCore/QString> 0002 #include <QtCore/QRegularExpression> 0003 0004 0005 void test() 0006 { 0007 QRegularExpression e("[a-z]"); 0008 QString h = "hello"; 0009 static const QRegularExpression staticRegex("[a-z]"); 0010 0011 h.splitRef(QRegularExpression("[hel]")); // Warn 0012 h.splitRef(e); // Warn 0013 h.splitRef(staticRegex); // Ok 0014 }