Hi, On Sonntag, 21. Jänner 2018 20:43:42 CET Ben Cooksley wrote: > Hi Martin, > > Looks like your latest commit to ksshaskpass doesn't build. > Could you please take a look?
I don't understand this. Why does my new line fail QRegularExpression re3a("^(Password|Username) for \"(.*?)\"$"); and all the others don't QRegularExpression re3("^(Password|Username) for (.*?)[:] $"); QRegularExpression re2("^Bad passphrase, try again for (.*?)( \\(will confirm each use\\))?: $"); etc. All of these use QString(const char*) Is the define QT_NO_CAST_FROM_ASCII used during compilation ? If so, all QRegularExpression's should fail. I can of course now wrap all strings in QLatin1String() but first I'd like to understand why only my new line fails. > /home/jenkins/workspace/Plasma ksshaskpass kf5-qt5 SUSEQt5.9/src/main.cpp: > In function 'void parsePrompt(const QString&, QString&, bool&)': > /home/jenkins/workspace/Plasma ksshaskpass kf5-qt5 > SUSEQt5.9/src/main.cpp:73:70: error: 'QString::QString(const char*)' is > private within this context > QRegularExpression re3a("^(Password|Username) for \"(.*?)\"$"); > ^ > In file included from /usr/include/qt5/QtCore/qbytearray.h:687:0, > from /usr/include/qt5/QtCore/qbytearraylist.h:47, > from /usr/include/qt5/QtCore/qlist.h:1093, > from /usr/include/qt5/QtCore/qstringlist.h:41, > from /usr/include/qt5/QtCore/QStringList:1, > from /home/jenkins/install-prefix/include/KF5/KWallet/kwallet.h:24, > from /home/jenkins/workspace/Plasma ksshaskpass kf5-qt5 > SUSEQt5.9/src/main.cpp:23: > /usr/include/qt5/QtCore/qstring.h:793:5: note: declared private here > QString(const char *ch); > ^~~~~~~ -- Best regards/Schöne Grüße Martin A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? () ascii ribbon campaign - against html e-mail /\ - against proprietary attachments Geschenkideen, Accessoires, Seifen, Kulinarisches: www.lillehus.at