Commit 7708d43f authored by hjk's avatar hjk

Fixes: compile creator with QT_NO_CAST_FROM_BYTEARRAY

parent a8300b3f
......@@ -10,9 +10,6 @@ include(../../plugins/texteditor/texteditor.pri)
include(../../plugins/cpptools/cpptools.pri)
include(../../libs/cplusplus/cplusplus.pri)
# DEFINES += QT_NO_CAST_FROM_ASCII
DEFINES += QT_NO_CAST_TO_ASCII
QT += gui network script
HEADERS += attachexternaldialog.h \
......
......@@ -40,6 +40,9 @@ DEPENDPATH += \
LIBS += -L$$IDE_LIBRARY_PATH
# DEFINES += QT_NO_CAST_FROM_ASCII
DEFINES += QT_NO_CAST_TO_ASCII
unix {
debug:OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared
release:OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared
......
......@@ -112,7 +112,12 @@ QString CGI::decodeURL(const QString &urlText)
dec.append(' ');
break;
default:
dec.append(*it);
if (ch < 256) {
dec.append(ch);
} else {
// should not happen with proper URLs but stay on the safe side
dec.append(QString(*it).toUtf8());
}
break;
}
++it;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment