forked from qt-creator/qt-creator
Work around MSVC error initializing QString from const char *
This deals with the error while compiling with MSVC 2017: fossilclient.cpp(398): error C2440: 'initializing': cannot convert from 'const char *' to 'QString' fossilclient.cpp(398): note: No constructor could take the source type, or constructor overload resolution was ambiguous No problem building that with gcc. Change-Id: Iddb9754cd5010505b182ca9b81e390a7c3b8fdda Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -393,7 +393,7 @@ RevisionInfo FossilClient::synchronousRevisionQuery(const QString &workingDirect
|
|||||||
QTC_ASSERT(idRx.isValid(), return RevisionInfo());
|
QTC_ASSERT(idRx.isValid(), return RevisionInfo());
|
||||||
|
|
||||||
const QString hashToken =
|
const QString hashToken =
|
||||||
(supportedFeatures().testFlag(InfoHashFeature) ? "hash: " : "uuid: ");
|
QString::fromUtf8(supportedFeatures().testFlag(InfoHashFeature) ? "hash: " : "uuid: ");
|
||||||
|
|
||||||
for (const QString &l : output.split('\n', QString::SkipEmptyParts)) {
|
for (const QString &l : output.split('\n', QString::SkipEmptyParts)) {
|
||||||
if (l.startsWith("checkout: ", Qt::CaseInsensitive)
|
if (l.startsWith("checkout: ", Qt::CaseInsensitive)
|
||||||
|
|||||||
Reference in New Issue
Block a user