diff options
| author | 2023-10-04 11:25:05 +0200 | |
|---|---|---|
| committer | 2023-10-18 10:26:35 +0200 | |
| commit | 29e92a939647612842b2f583ce0a43dd572b1345 (patch) | |
| tree | be091f42ad1c2ff70d670bd8bba597b9bbf8aae1 /src/modules/pythoncore | |
| parent | Qt6 is stricter when casting numericals and chars. Add an explicit cast/conve... (diff) | |
| download | KVIrc-29e92a939647612842b2f583ce0a43dd572b1345.tar.gz KVIrc-29e92a939647612842b2f583ce0a43dd572b1345.tar.bz2 KVIrc-29e92a939647612842b2f583ce0a43dd572b1345.zip | |
Port from QRegExp (unavailable on qt6) to KviRegExp, based on QRegularExpression
Method str_kvs_fnc_split() had to be replaced with the original version, since the newer one relied on Qt5's QStringRef
Diffstat (limited to 'src/modules/pythoncore')
| -rw-r--r-- | src/modules/pythoncore/libkvipythoncore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/pythoncore/libkvipythoncore.cpp b/src/modules/pythoncore/libkvipythoncore.cpp index 11a60bd0b..11645bdcb 100644 --- a/src/modules/pythoncore/libkvipythoncore.cpp +++ b/src/modules/pythoncore/libkvipythoncore.cpp @@ -30,6 +30,7 @@ #include "kvi_settings.h" #include "KviModule.h" #include "KviLocale.h" +#include "KviRegExp.h" #ifdef COMPILE_PYTHON_SUPPORT #include "pythoncoreinterface.h" @@ -136,7 +137,7 @@ bool KviPythonInterpreter::execute(QString szCode, QStringList & lArgs, PyRun_SimpleString(szVarCode.toUtf8().data()); // clean "cr" from the python code (ticket #1028) - szCode.replace(QRegExp("\r\n?"), "\n"); + szCode.replace(KviRegExp("\r\n?"), "\n"); int retVal = PyRun_SimpleString(szCode.toUtf8().data()); |
