Created
May 22, 2018 16:27
-
-
Save sulkingpotato/506fe0364f4949224ecc46d455fdcac8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
09:10:48: Running steps for project untitled2... | |
compiling main.cpp | |
/usr/bin/g++ -g -O0 -Wall -Wextra -m64 -pipe -fexceptions -fvisibility=default -fPIC -DQT_DEPRECATED_WARNINGS -DQT_CORE_LIB -I/home/howardchen/Qt/5.10.1/gcc_64/include -I/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore -I/home/howardchen/Qt/5.10.1/gcc_64/mkspecs/linux-g++ -I/home/howardchen/Learning/qt/build-untitled2-Desktop_Qt_5_10_1_GCC_64bit-Debug/qtc_Desktop_Qt_5_10_1_GCC_64bit_Debug/untitled2.57dd9e61/qt.headers -std=c++11 -o /home/howardchen/Learning/qt/build-untitled2-Desktop_Qt_5_10_1_GCC_64bit-Debug/qtc_Desktop_Qt_5_10_1_GCC_64bit_Debug/untitled2.57dd9e61/3a52ce780950d4d9/main.cpp.o -c /home/howardchen/Learning/qt/untitled2/main.cpp | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:212:21: error: redefinition of ‘class QString’ | |
class Q_CORE_EXPORT QString | |
^~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: note: previous definition of ‘class QString’ | |
class QString | |
^~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘QString QStringView::toString() const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:910:64: error: no matching function for call to ‘QString::QString(QStringView::const_pointer, int)’ | |
{ return Q_ASSERT(size() == length()), QString(data(), length()); } | |
^ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:99:21: note: candidate: QString::QString(const QByteArray&) | |
inline explicit QString(const QByteArray &s) Q_DECL_NOTHROW : m_size(int(qstrnlen(s.constData(), s.size()))), m_data(s.constData()) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:99:21: note: candidate expects 1 argument, 2 provided | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:98:38: note: candidate: constexpr QString::QString(const char*, int) | |
Q_DECL_CONSTEXPR inline explicit QString(const char *s, int sz) Q_DECL_NOTHROW : m_size(sz), m_data(s) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:98:38: note: no known conversion for argument 1 from ‘QStringView::const_pointer {aka const QChar*}’ to ‘const char*’ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:96:31: note: candidate: constexpr QString::QString(const char*, const char*) | |
Q_DECL_CONSTEXPR explicit QString(const char *f, const char *l) | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:96:31: note: no known conversion for argument 1 from ‘QStringView::const_pointer {aka const QChar*}’ to ‘const char*’ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:95:38: note: candidate: constexpr QString::QString(const char*) | |
Q_DECL_CONSTEXPR inline explicit QString(const char *s) Q_DECL_NOTHROW : m_size(s ? int(strlen(s)) : 0), m_data(s) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:95:38: note: candidate expects 1 argument, 2 provided | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:94:29: note: candidate: constexpr QString::QString() | |
Q_DECL_CONSTEXPR inline QString() Q_DECL_NOTHROW : m_size(0), m_data(Q_NULLPTR) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:94:29: note: candidate expects 0 arguments, 2 provided | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: note: candidate: constexpr QString::QString(const QString&) | |
class QString | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: note: candidate expects 1 argument, 2 provided | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: note: candidate: constexpr QString::QString(QString&&) | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: note: candidate expects 1 argument, 2 provided | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: At global scope: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:915:8: error: prototype for ‘QString::QString(QString)’ does not match any in class ‘QString’ | |
inline QString::QString(QString aLatin1) : d(fromLatin1_helper(aLatin1.latin1(), aLatin1.size())) | |
^~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: error: candidates are: constexpr QString::QString(QString&&) | |
class QString | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: error: constexpr QString::QString(const QString&) | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:99:21: error: QString::QString(const QByteArray&) | |
inline explicit QString(const QByteArray &s) Q_DECL_NOTHROW : m_size(int(qstrnlen(s.constData(), s.size()))), m_data(s.constData()) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:98:38: error: constexpr QString::QString(const char*, int) | |
Q_DECL_CONSTEXPR inline explicit QString(const char *s, int sz) Q_DECL_NOTHROW : m_size(sz), m_data(s) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:96:31: error: constexpr QString::QString(const char*, const char*) | |
Q_DECL_CONSTEXPR explicit QString(const char *f, const char *l) | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:95:38: error: constexpr QString::QString(const char*) | |
Q_DECL_CONSTEXPR inline explicit QString(const char *s) Q_DECL_NOTHROW : m_size(s ? int(strlen(s)) : 0), m_data(s) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:94:29: error: constexpr QString::QString() | |
Q_DECL_CONSTEXPR inline QString() Q_DECL_NOTHROW : m_size(0), m_data(Q_NULLPTR) {} | |
^~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:917:30: error: no ‘int QString::length() const’ member function declared in class ‘QString’ | |
inline int QString::length() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:919:20: error: prototype for ‘const QChar QString::at(int) const’ does not match any in class ‘QString’ | |
inline const QChar QString::at(int i) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:108:34: error: candidate is: constexpr QLatin1Char QString::at(int) const | |
Q_DECL_CONSTEXPR QLatin1Char at(int i) const | |
^~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:921:20: error: prototype for ‘const QChar QString::operator[](int) const’ does not match any in class ‘QString’ | |
inline const QChar QString::operator[](int i) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:110:34: error: candidate is: constexpr QLatin1Char QString::operator[](int) const | |
Q_DECL_CONSTEXPR QLatin1Char operator[](int i) const { return at(i); } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:923:20: error: prototype for ‘const QChar QString::operator[](uint) const’ does not match any in class ‘QString’ | |
inline const QChar QString::operator[](uint i) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:110:34: error: candidate is: constexpr QLatin1Char QString::operator[](int) const | |
Q_DECL_CONSTEXPR QLatin1Char operator[](int i) const { return at(i); } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:925:13: error: redefinition of ‘bool QString::isEmpty() const’ | |
inline bool QString::isEmpty() const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:106:27: note: ‘constexpr bool QString::isEmpty() const’ previously defined here | |
Q_DECL_CONSTEXPR bool isEmpty() const Q_DECL_NOTHROW { return !size(); } | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:927:40: error: no ‘const QChar* QString::unicode() const’ member function declared in class ‘QString’ | |
inline const QChar *QString::unicode() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:929:21: error: prototype for ‘const QChar* QString::data() const’ does not match any in class ‘QString’ | |
inline const QChar *QString::data() const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:103:34: error: candidate is: constexpr const char* QString::data() const | |
Q_DECL_CONSTEXPR const char *data() const Q_DECL_NOTHROW { return m_data; } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:931:15: error: prototype for ‘QChar* QString::data()’ does not match any in class ‘QString’ | |
inline QChar *QString::data() | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:103:34: error: candidate is: constexpr const char* QString::data() const | |
Q_DECL_CONSTEXPR const char *data() const Q_DECL_NOTHROW { return m_data; } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:933:42: error: no ‘const QChar* QString::constData() const’ member function declared in class ‘QString’ | |
inline const QChar *QString::constData() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:935:29: error: no ‘void QString::detach()’ member function declared in class ‘QString’ | |
inline void QString::detach() | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:937:35: error: no ‘bool QString::isDetached() const’ member function declared in class ‘QString’ | |
inline bool QString::isDetached() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:939:28: error: no ‘void QString::clear()’ member function declared in class ‘QString’ | |
inline void QString::clear() | |
^ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qglobal.h:99:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:43, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcompilerdetection.h:1152:26: error: definition of implicitly-declared ‘constexpr QString::QString(const QString&)’ | |
# define Q_DECL_NOEXCEPT noexcept | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcompilerdetection.h:1162:25: note: in expansion of macro ‘Q_DECL_NOEXCEPT’ | |
# define Q_DECL_NOTHROW Q_DECL_NOEXCEPT | |
^~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:941:47: note: in expansion of macro ‘Q_DECL_NOTHROW’ | |
inline QString::QString(const QString &other) Q_DECL_NOTHROW : d(other.d) | |
^~~~~~~~~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:943:32: error: no ‘int QString::capacity() const’ member function declared in class ‘QString’ | |
inline int QString::capacity() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:945:50: error: no ‘QString& QString::setNum(short int, int)’ member function declared in class ‘QString’ | |
inline QString &QString::setNum(short n, int base) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:947:51: error: no ‘QString& QString::setNum(ushort, int)’ member function declared in class ‘QString’ | |
inline QString &QString::setNum(ushort n, int base) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:949:48: error: no ‘QString& QString::setNum(int, int)’ member function declared in class ‘QString’ | |
inline QString &QString::setNum(int n, int base) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:951:49: error: no ‘QString& QString::setNum(uint, int)’ member function declared in class ‘QString’ | |
inline QString &QString::setNum(uint n, int base) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:953:49: error: no ‘QString& QString::setNum(long int, int)’ member function declared in class ‘QString’ | |
inline QString &QString::setNum(long n, int base) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:955:50: error: no ‘QString& QString::setNum(ulong, int)’ member function declared in class ‘QString’ | |
inline QString &QString::setNum(ulong n, int base) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:957:58: error: no ‘QString& QString::setNum(float, char, int)’ member function declared in class ‘QString’ | |
inline QString &QString::setNum(float n, char f, int prec) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:959:78: error: no ‘QString QString::arg(int, int, int, QChar) const’ member function declared in class ‘QString’ | |
inline QString QString::arg(int a, int fieldWidth, int base, QChar fillChar) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:961:79: error: no ‘QString QString::arg(uint, int, int, QChar) const’ member function declared in class ‘QString’ | |
inline QString QString::arg(uint a, int fieldWidth, int base, QChar fillChar) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:963:79: error: no ‘QString QString::arg(long int, int, int, QChar) const’ member function declared in class ‘QString’ | |
inline QString QString::arg(long a, int fieldWidth, int base, QChar fillChar) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:965:80: error: no ‘QString QString::arg(ulong, int, int, QChar) const’ member function declared in class ‘QString’ | |
inline QString QString::arg(ulong a, int fieldWidth, int base, QChar fillChar) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:967:80: error: no ‘QString QString::arg(short int, int, int, QChar) const’ member function declared in class ‘QString’ | |
inline QString QString::arg(short a, int fieldWidth, int base, QChar fillChar) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:969:81: error: no ‘QString QString::arg(ushort, int, int, QChar) const’ member function declared in class ‘QString’ | |
inline QString QString::arg(ushort a, int fieldWidth, int base, QChar fillChar) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:971:67: error: no ‘QString QString::arg(const QString&, const QString&) const’ member function declared in class ‘QString’ | |
inline QString QString::arg(const QString &a1, const QString &a2) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:973:86: error: no ‘QString QString::arg(const QString&, const QString&, const QString&) const’ member function declared in class ‘QString’ | |
inline QString QString::arg(const QString &a1, const QString &a2, const QString &a3) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:976:48: error: no ‘QString QString::arg(const QString&, const QString&, const QString&, const QString&) const’ member function declared in class ‘QString’ | |
const QString &a4) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:979:67: error: no ‘QString QString::arg(const QString&, const QString&, const QString&, const QString&, const QString&) const’ member function declared in class ‘QString’ | |
const QString &a4, const QString &a5) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:982:86: error: no ‘QString QString::arg(const QString&, const QString&, const QString&, const QString&, const QString&, const QString&) const’ member function declared in class ‘QString’ | |
const QString &a4, const QString &a5, const QString &a6) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:986:48: error: no ‘QString QString::arg(const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QString&) const’ member function declared in class ‘QString’ | |
const QString &a7) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:990:67: error: no ‘QString QString::arg(const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QString&) const’ member function declared in class ‘QString’ | |
const QString &a7, const QString &a8) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:994:86: error: no ‘QString QString::arg(const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QString&) const’ member function declared in class ‘QString’ | |
const QString &a7, const QString &a8, const QString &a9) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:997:67: error: ‘SectionFlags’ has not been declared | |
inline QString QString::section(QChar asep, int astart, int aend, SectionFlags aflags) const | |
^~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:997:88: error: no ‘QString QString::section(QChar, int, int, int) const’ member function declared in class ‘QString’ | |
inline QString QString::section(QChar asep, int astart, int aend, SectionFlags aflags) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1004:50: error: no ‘int QString::toWCharArray(wchar_t*) const’ member function declared in class ‘QString’ | |
inline int QString::toWCharArray(wchar_t *array) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1016:71: error: no ‘QString QString::fromWCharArray(const wchar_t*, int)’ member function declared in class ‘QString’ | |
inline QString QString::fromWCharArray(const wchar_t *string, int size) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘QCharRef::operator QChar() const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1035:20: error: ‘class QString’ has no member named ‘d’ | |
{ return i < s.d->size ? s.d->data()[i] : 0; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1035:32: error: ‘class QString’ has no member named ‘d’ | |
{ return i < s.d->size ? s.d->data()[i] : 0; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘QCharRef& QCharRef::operator=(QChar)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1037:18: error: ‘class QString’ has no member named ‘d’ | |
{ if (i >= s.d->size) s.resize(i + 1, QLatin1Char(' ')); else s.detach(); | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1037:29: error: ‘class QString’ has no member named ‘resize’; did you mean ‘size’? | |
{ if (i >= s.d->size) s.resize(i + 1, QLatin1Char(' ')); else s.detach(); | |
^~~~~~ | |
size | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1037:69: error: ‘class QString’ has no member named ‘detach’; did you mean ‘data’? | |
{ if (i >= s.d->size) s.resize(i + 1, QLatin1Char(' ')); else s.detach(); | |
^~~~~~ | |
data | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1038:9: error: ‘class QString’ has no member named ‘d’ | |
s.d->data()[i] = c.unicode(); return *this; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘ushort& QCharRef::unicode()’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1109:44: error: request for member ‘unicode’ in ‘*((&((QCharRef*)this)->QCharRef::s)->QString::data() + ((sizetype)((QCharRef*)this)->QCharRef::i))’, which is of non-class type ‘const char’ | |
ushort& unicode() { return s.data()[i].unicode(); } | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: At global scope: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1118:8: error: redefinition of ‘QString::QString()’ | |
inline QString::QString() Q_DECL_NOTHROW : d(Data::sharedNull()) {} | |
^~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:94:29: note: ‘constexpr QString::QString()’ previously defined here | |
Q_DECL_CONSTEXPR inline QString() Q_DECL_NOTHROW : m_size(0), m_data(Q_NULLPTR) {} | |
^~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1119:26: error: definition of implicitly-declared ‘QString::~QString()’ | |
inline QString::~QString() { if (!d->ref.deref()) Data::deallocate(d); } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1121:39: error: no ‘void QString::reserve(int)’ member function declared in class ‘QString’ | |
inline void QString::reserve(int asize) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1132:30: error: no ‘void QString::squeeze()’ member function declared in class ‘QString’ | |
inline void QString::squeeze() | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1144:66: error: no ‘QString& QString::setUtf16(const ushort*, int)’ member function declared in class ‘QString’ | |
inline QString &QString::setUtf16(const ushort *autf16, int asize) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1146:17: error: prototype for ‘QCharRef QString::operator[](int)’ does not match any in class ‘QString’ | |
inline QCharRef QString::operator[](int i) | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:110:34: error: candidate is: constexpr QLatin1Char QString::operator[](int) const | |
Q_DECL_CONSTEXPR QLatin1Char operator[](int i) const { return at(i); } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1148:17: error: prototype for ‘QCharRef QString::operator[](uint)’ does not match any in class ‘QString’ | |
inline QCharRef QString::operator[](uint i) | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:110:34: error: candidate is: constexpr QLatin1Char QString::operator[](int) const | |
Q_DECL_CONSTEXPR QLatin1Char operator[](int i) const { return at(i); } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1150:17: error: prototype for ‘QCharRef QString::front()’ does not match any in class ‘QString’ | |
inline QCharRef QString::front() { return operator[](0); } | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:112:52: error: candidate is: constexpr QLatin1Char QString::front() const | |
Q_REQUIRED_RESULT Q_DECL_CONSTEXPR QLatin1Char front() const { return at(0); } | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1151:17: error: prototype for ‘QCharRef QString::back()’ does not match any in class ‘QString’ | |
inline QCharRef QString::back() { return operator[](size() - 1); } | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:113:52: error: candidate is: constexpr QLatin1Char QString::back() const | |
Q_REQUIRED_RESULT Q_DECL_CONSTEXPR QLatin1Char back() const { return at(size() - 1); } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1152:26: error: prototype for ‘QString::value_type* QString::begin()’ does not match any in class ‘QString’ | |
inline QString::iterator QString::begin() | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:141:37: error: candidate is: constexpr QString::value_type* QString::begin() const | |
Q_DECL_CONSTEXPR const_iterator begin() const Q_DECL_NOTHROW { return data(); } | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1154:32: error: redefinition of ‘QString::value_type* QString::begin() const’ | |
inline QString::const_iterator QString::begin() const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:141:37: note: ‘constexpr QString::value_type* QString::begin() const’ previously defined here | |
Q_DECL_CONSTEXPR const_iterator begin() const Q_DECL_NOTHROW { return data(); } | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1156:32: error: redefinition of ‘QString::value_type* QString::cbegin() const’ | |
inline QString::const_iterator QString::cbegin() const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:142:37: note: ‘constexpr QString::value_type* QString::cbegin() const’ previously defined here | |
Q_DECL_CONSTEXPR const_iterator cbegin() const Q_DECL_NOTHROW { return data(); } | |
^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1158:54: error: no ‘QString::value_type* QString::constBegin() const’ member function declared in class ‘QString’ | |
inline QString::const_iterator QString::constBegin() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1160:26: error: prototype for ‘QString::value_type* QString::end()’ does not match any in class ‘QString’ | |
inline QString::iterator QString::end() | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:143:37: error: candidate is: constexpr QString::value_type* QString::end() const | |
Q_DECL_CONSTEXPR const_iterator end() const Q_DECL_NOTHROW { return data() + size(); } | |
^~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1162:32: error: redefinition of ‘QString::value_type* QString::end() const’ | |
inline QString::const_iterator QString::end() const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:143:37: note: ‘constexpr QString::value_type* QString::end() const’ previously defined here | |
Q_DECL_CONSTEXPR const_iterator end() const Q_DECL_NOTHROW { return data() + size(); } | |
^~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1164:32: error: redefinition of ‘QString::value_type* QString::cend() const’ | |
inline QString::const_iterator QString::cend() const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:144:37: note: ‘constexpr QString::value_type* QString::cend() const’ previously defined here | |
Q_DECL_CONSTEXPR const_iterator cend() const Q_DECL_NOTHROW { return data() + size(); } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1166:52: error: no ‘QString::value_type* QString::constEnd() const’ member function declared in class ‘QString’ | |
inline QString::const_iterator QString::constEnd() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1168:73: error: no ‘bool QString::contains(const QString&, Qt::CaseSensitivity) const’ member function declared in class ‘QString’ | |
inline bool QString::contains(const QString &s, Qt::CaseSensitivity cs) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1170:76: error: no ‘bool QString::contains(const QStringRef&, Qt::CaseSensitivity) const’ member function declared in class ‘QString’ | |
inline bool QString::contains(const QStringRef &s, Qt::CaseSensitivity cs) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1172:66: error: no ‘bool QString::contains(QString, Qt::CaseSensitivity) const’ member function declared in class ‘QString’ | |
inline bool QString::contains(QString s, Qt::CaseSensitivity cs) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1174:64: error: no ‘bool QString::contains(QChar, Qt::CaseSensitivity) const’ member function declared in class ‘QString’ | |
inline bool QString::contains(QChar c, Qt::CaseSensitivity cs) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1178:33: error: declaration of ‘operator==’ as non-function | |
inline bool operator==(QString::Null, QString::Null) { return true; } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1178:33: error: ‘Null’ is not a member of ‘QString’ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1178:48: error: ‘Null’ is not a member of ‘QString’ | |
inline bool operator==(QString::Null, QString::Null) { return true; } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1180:33: error: declaration of ‘operator==’ as non-function | |
inline bool operator==(QString::Null, const QString &s) { return s.isNull(); } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1180:33: error: ‘Null’ is not a member of ‘QString’ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1180:39: error: expected primary-expression before ‘const’ | |
inline bool operator==(QString::Null, const QString &s) { return s.isNull(); } | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1182:51: error: ‘QString::Null’ has not been declared | |
inline bool operator==(const QString &s, QString::Null) { return s.isNull(); } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1183:33: error: declaration of ‘operator!=’ as non-function | |
inline bool operator!=(QString::Null, QString::Null) { return false; } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1183:33: error: ‘Null’ is not a member of ‘QString’ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1183:48: error: ‘Null’ is not a member of ‘QString’ | |
inline bool operator!=(QString::Null, QString::Null) { return false; } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1185:33: error: declaration of ‘operator!=’ as non-function | |
inline bool operator!=(QString::Null, const QString &s) { return !s.isNull(); } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1185:33: error: ‘Null’ is not a member of ‘QString’ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1185:39: error: expected primary-expression before ‘const’ | |
inline bool operator!=(QString::Null, const QString &s) { return !s.isNull(); } | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1187:51: error: ‘QString::Null’ has not been declared | |
inline bool operator!=(const QString &s, QString::Null) { return !s.isNull(); } | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator==(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1208:12: error: ambiguous overload for ‘operator==’ (operand types are ‘const QString’ and ‘const QString’) | |
{ return s == *this; } | |
~~^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1207:13: note: candidate: bool QString::operator==(const QString&) const | |
inline bool QString::operator==(const QString &s) const Q_DECL_NOTHROW | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1190:13: note: candidate: bool operator==(QString, QString) | |
inline bool operator==(QString s1, QString s2) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator!=(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1210:12: error: ambiguous overload for ‘operator!=’ (operand types are ‘const QString’ and ‘const QString’) | |
{ return s != *this; } | |
~~^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1209:13: note: candidate: bool QString::operator!=(const QString&) const | |
inline bool QString::operator!=(const QString &s) const Q_DECL_NOTHROW | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1192:13: note: candidate: bool operator!=(QString, QString) | |
inline bool operator!=(QString s1, QString s2) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator>(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1212:12: error: ambiguous overload for ‘operator<’ (operand types are ‘const QString’ and ‘const QString’) | |
{ return s < *this; } | |
~~^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:175:17: note: candidate: bool QString::operator<(const QString&) const | |
inline bool operator<(const QString &s) const Q_DECL_NOTHROW; | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1194:13: note: candidate: bool operator<(QString, QString) | |
inline bool operator<(QString s1, QString s2) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator<(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1214:12: error: ambiguous overload for ‘operator>’ (operand types are ‘const QString’ and ‘const QString’) | |
{ return s > *this; } | |
~~^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1211:13: note: candidate: bool QString::operator>(const QString&) const | |
inline bool QString::operator>(const QString &s) const Q_DECL_NOTHROW | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1200:13: note: candidate: bool operator>(QString, QString) | |
inline bool operator>(QString s1, QString s2) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator>=(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1216:12: error: ambiguous overload for ‘operator<=’ (operand types are ‘const QString’ and ‘const QString’) | |
{ return s <= *this; } | |
~~^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:177:17: note: candidate: bool QString::operator<=(const QString&) const | |
inline bool operator<=(const QString &s) const Q_DECL_NOTHROW; | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1202:13: note: candidate: bool operator<=(QString, QString) | |
inline bool operator<=(QString s1, QString s2) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator<=(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1218:12: error: ambiguous overload for ‘operator>=’ (operand types are ‘const QString’ and ‘const QString’) | |
{ return s >= *this; } | |
~~^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1215:13: note: candidate: bool QString::operator>=(const QString&) const | |
inline bool QString::operator>=(const QString &s) const Q_DECL_NOTHROW | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1204:13: note: candidate: bool operator>=(QString, QString) | |
inline bool operator>=(QString s1, QString s2) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator==(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1222:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) == 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1222:34: error: ‘constData’ was not declared in this scope | |
{ return QString::compare_helper(constData(), size(), s, -1) == 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1222:34: note: suggested alternative: ‘constexpr’ | |
{ return QString::compare_helper(constData(), size(), s, -1) == 0; } | |
^~~~~~~~~ | |
constexpr | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator!=(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1224:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) != 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1224:34: error: ‘constData’ was not declared in this scope | |
{ return QString::compare_helper(constData(), size(), s, -1) != 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1224:34: note: suggested alternative: ‘constexpr’ | |
{ return QString::compare_helper(constData(), size(), s, -1) != 0; } | |
^~~~~~~~~ | |
constexpr | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator<(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1226:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) < 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1226:34: error: ‘constData’ was not declared in this scope | |
{ return QString::compare_helper(constData(), size(), s, -1) < 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1226:34: note: suggested alternative: ‘constexpr’ | |
{ return QString::compare_helper(constData(), size(), s, -1) < 0; } | |
^~~~~~~~~ | |
constexpr | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator>(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1228:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) > 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1228:34: error: ‘constData’ was not declared in this scope | |
{ return QString::compare_helper(constData(), size(), s, -1) > 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1228:34: note: suggested alternative: ‘constexpr’ | |
{ return QString::compare_helper(constData(), size(), s, -1) > 0; } | |
^~~~~~~~~ | |
constexpr | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator<=(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1230:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) <= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1230:34: error: ‘constData’ was not declared in this scope | |
{ return QString::compare_helper(constData(), size(), s, -1) <= 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1230:34: note: suggested alternative: ‘constexpr’ | |
{ return QString::compare_helper(constData(), size(), s, -1) <= 0; } | |
^~~~~~~~~ | |
constexpr | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator>=(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1232:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) >= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1232:34: error: ‘constData’ was not declared in this scope | |
{ return QString::compare_helper(constData(), size(), s, -1) >= 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1232:34: note: suggested alternative: ‘constexpr’ | |
{ return QString::compare_helper(constData(), size(), s, -1) >= 0; } | |
^~~~~~~~~ | |
constexpr | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator==(const char*, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1235:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) == 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1235:37: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) == 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator!=(const char*, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1237:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) != 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1237:37: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) != 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(const char*, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1239:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) > 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1239:37: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) > 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(const char*, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1241:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) < 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1241:37: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) < 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<=(const char*, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1243:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) >= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1243:37: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) >= 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>=(const char*, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1245:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) <= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1245:37: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) <= 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator==(const char*, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1248:19: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return QString::fromUtf8(s1) == s2; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator!=(const char*, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1250:19: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return QString::fromUtf8(s1) != s2; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(const char*, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1252:20: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return (QString::fromUtf8(s1) < s2); } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(const char*, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1254:20: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return (QString::fromUtf8(s1) > s2); } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<=(const char*, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1256:20: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return (QString::fromUtf8(s1) <= s2); } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>=(const char*, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1258:20: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return (QString::fromUtf8(s1) >= s2); } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: At global scope: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1260:32: error: redefinition of ‘bool QString::operator==(const char*) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator==(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1221:13: note: ‘bool QString::operator==(const char*) const’ previously defined here | |
inline bool QString::operator==(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1262:32: error: redefinition of ‘bool QString::operator!=(const char*) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator!=(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1223:13: note: ‘bool QString::operator!=(const char*) const’ previously defined here | |
inline bool QString::operator!=(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1264:32: error: redefinition of ‘bool QString::operator<(const char*) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator<(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1225:13: note: ‘bool QString::operator<(const char*) const’ previously defined here | |
inline bool QString::operator<(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1266:32: error: redefinition of ‘bool QString::operator>(const char*) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator>(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1227:13: note: ‘bool QString::operator>(const char*) const’ previously defined here | |
inline bool QString::operator>(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1268:32: error: redefinition of ‘bool QString::operator<=(const char*) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator<=(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1229:13: note: ‘bool QString::operator<=(const char*) const’ previously defined here | |
inline bool QString::operator<=(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1270:32: error: redefinition of ‘bool QString::operator>=(const char*) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator>=(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1231:13: note: ‘bool QString::operator>=(const char*) const’ previously defined here | |
inline bool QString::operator>=(const char *s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator==(const QByteArray&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1274:19: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return QString::fromUtf8(s) == *this; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator!=(const QByteArray&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1276:19: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return QString::fromUtf8(s) != *this; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator<(const QByteArray&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1278:19: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return QString::fromUtf8(s) > *this; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator>(const QByteArray&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1280:19: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return QString::fromUtf8(s) < *this; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator<=(const QByteArray&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1282:19: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return QString::fromUtf8(s) >= *this; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QString::operator>=(const QByteArray&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1284:19: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ return QString::fromUtf8(s) <= *this; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: At global scope: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1286:32: error: redefinition of ‘bool QString::operator==(const QByteArray&) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator==(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1273:32: note: ‘bool QString::operator==(const QByteArray&) const’ previously defined here | |
inline QT_ASCII_CAST_WARN bool QString::operator==(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1288:32: error: redefinition of ‘bool QString::operator!=(const QByteArray&) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator!=(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1275:32: note: ‘bool QString::operator!=(const QByteArray&) const’ previously defined here | |
inline QT_ASCII_CAST_WARN bool QString::operator!=(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1290:32: error: redefinition of ‘bool QString::operator<(const QByteArray&) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator<(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1277:32: note: ‘bool QString::operator<(const QByteArray&) const’ previously defined here | |
inline QT_ASCII_CAST_WARN bool QString::operator<(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1292:32: error: redefinition of ‘bool QString::operator>(const QByteArray&) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator>(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1279:32: note: ‘bool QString::operator>(const QByteArray&) const’ previously defined here | |
inline QT_ASCII_CAST_WARN bool QString::operator>(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1294:32: error: redefinition of ‘bool QString::operator<=(const QByteArray&) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator<=(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1281:32: note: ‘bool QString::operator<=(const QByteArray&) const’ previously defined here | |
inline QT_ASCII_CAST_WARN bool QString::operator<=(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1296:32: error: redefinition of ‘bool QString::operator>=(const QByteArray&) const’ | |
inline QT_ASCII_CAST_WARN bool QString::operator>=(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1283:32: note: ‘bool QString::operator>=(const QByteArray&) const’ previously defined here | |
inline QT_ASCII_CAST_WARN bool QString::operator>=(const QByteArray &s) const | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QByteArray::operator==(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1300:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), qstrnlen(constData(), size())) == 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1300:36: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), qstrnlen(constData(), size())) == 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QByteArray::operator!=(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1302:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), qstrnlen(constData(), size())) != 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1302:36: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), qstrnlen(constData(), size())) != 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QByteArray::operator<(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1304:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), size()) > 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1304:36: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), size()) > 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QByteArray::operator>(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1306:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), size()) < 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1306:36: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), size()) < 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QByteArray::operator<=(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1308:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), size()) >= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1308:36: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), size()) >= 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QByteArray::operator>=(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1310:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), size()) <= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1310:36: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s.constData(), s.size(), constData(), size()) <= 0; } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘QByteArray& QByteArray::append(const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1315:19: error: ‘const class QString’ has no member named ‘toUtf8’ | |
{ return append(s.toUtf8()); } | |
^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘QByteArray& QByteArray::insert(int, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1317:22: error: ‘const class QString’ has no member named ‘toUtf8’ | |
{ return insert(i, s.toUtf8()); } | |
^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘QByteArray& QByteArray::replace(char, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1319:27: error: ‘const class QString’ has no member named ‘toUtf8’ | |
{ return replace(c, after.toUtf8()); } | |
^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘QByteArray& QByteArray::replace(const QString&, const char*)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1321:25: error: ‘const class QString’ has no member named ‘toUtf8’ | |
{ return replace(before.toUtf8(), after); } | |
^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘QByteArray& QByteArray::replace(const QString&, const QByteArray&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1323:25: error: ‘const class QString’ has no member named ‘toUtf8’ | |
{ return replace(before.toUtf8(), after); } | |
^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘QByteArray& QByteArray::operator+=(const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1325:23: error: ‘const class QString’ has no member named ‘toUtf8’ | |
{ return operator+=(s.toUtf8()); } | |
^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘int QByteArray::indexOf(const QString&, int) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1327:20: error: ‘const class QString’ has no member named ‘toUtf8’ | |
{ return indexOf(s.toUtf8(), from); } | |
^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘int QByteArray::lastIndexOf(const QString&, int) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1329:24: error: ‘const class QString’ has no member named ‘toUtf8’ | |
{ return lastIndexOf(s.toUtf8(), from); } | |
^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘const QString operator+(const QString&, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1334:20: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QString’) | |
{ QString t(s1); t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘const QString operator+(const QString&, QChar)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1336:20: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘QChar’) | |
{ QString t(s1); t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘const QString operator+(QChar, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1338:15: error: no matching function for call to ‘QString::QString(QChar&)’ | |
{ QString t(s1); t += s2; return t; } | |
^ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:99:21: note: candidate: QString::QString(const QByteArray&) | |
inline explicit QString(const QByteArray &s) Q_DECL_NOTHROW : m_size(int(qstrnlen(s.constData(), s.size()))), m_data(s.constData()) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:99:21: note: no known conversion for argument 1 from ‘QChar’ to ‘const QByteArray&’ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:98:38: note: candidate: constexpr QString::QString(const char*, int) | |
Q_DECL_CONSTEXPR inline explicit QString(const char *s, int sz) Q_DECL_NOTHROW : m_size(sz), m_data(s) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:98:38: note: candidate expects 2 arguments, 1 provided | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:96:31: note: candidate: constexpr QString::QString(const char*, const char*) | |
Q_DECL_CONSTEXPR explicit QString(const char *f, const char *l) | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:96:31: note: candidate expects 2 arguments, 1 provided | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:95:38: note: candidate: constexpr QString::QString(const char*) | |
Q_DECL_CONSTEXPR inline explicit QString(const char *s) Q_DECL_NOTHROW : m_size(s ? int(strlen(s)) : 0), m_data(s) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:95:38: note: no known conversion for argument 1 from ‘QChar’ to ‘const char*’ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:94:29: note: candidate: constexpr QString::QString() | |
Q_DECL_CONSTEXPR inline QString() Q_DECL_NOTHROW : m_size(0), m_data(Q_NULLPTR) {} | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:94:29: note: candidate expects 0 arguments, 1 provided | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: note: candidate: constexpr QString::QString(const QString&) | |
class QString | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: note: no known conversion for argument 1 from ‘QChar’ to ‘const QString&’ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: note: candidate: constexpr QString::QString(QString&&) | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:91:7: note: no known conversion for argument 1 from ‘QChar’ to ‘QString&&’ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1338:20: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QString’) | |
{ QString t(s1); t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘const QString operator+(const QString&, const char*)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1341:32: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ QString t(s1); t += QString::fromUtf8(s2); return t; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘const QString operator+(const char*, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1343:24: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ QString t = QString::fromUtf8(s1); t += s2; return t; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1343:40: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QString’) | |
{ QString t = QString::fromUtf8(s1); t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘const QString operator+(char, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1345:20: error: ‘class QString’ has no member named ‘prepend’; did you mean ‘rend’? | |
{ QString t = s; t.prepend(QChar::fromLatin1(c)); return t; } | |
^~~~~~~ | |
rend | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘const QString operator+(const QString&, char)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1347:20: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘QChar’) | |
{ QString t = s; t += QChar::fromLatin1(c); return t; } | |
~~^~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘const QString operator+(const QByteArray&, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1349:24: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ QString t = QString::fromUtf8(ba); t += s; return t; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1349:40: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QString’) | |
{ QString t = QString::fromUtf8(ba); t += s; return t; } | |
~~^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘const QString operator+(const QString&, const QByteArray&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1351:31: error: ‘fromUtf8’ is not a member of ‘QString’ | |
{ QString t(s); t += QString::fromUtf8(ba); return t; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: At global scope: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1355:43: error: no ‘std::__cxx11::string QString::toStdString() const’ member function declared in class ‘QString’ | |
inline std::string QString::toStdString() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1358:59: error: no ‘QString QString::fromStdString(const string&)’ member function declared in class ‘QString’ | |
inline QString QString::fromStdString(const std::string &s) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1361:45: error: no ‘std::__cxx11::wstring QString::toStdWString() const’ member function declared in class ‘QString’ | |
inline std::wstring QString::toStdWString() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1376:61: error: no ‘QString QString::fromStdWString(const wstring&)’ member function declared in class ‘QString’ | |
inline QString QString::fromStdWString(const std::wstring &s) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1380:65: error: no ‘QString QString::fromStdU16String(const u16string&)’ member function declared in class ‘QString’ | |
inline QString QString::fromStdU16String(const std::u16string &s) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1383:49: error: no ‘std::__cxx11::u16string QString::toStdU16String() const’ member function declared in class ‘QString’ | |
inline std::u16string QString::toStdU16String() const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1386:65: error: no ‘QString QString::fromStdU32String(const u32string&)’ member function declared in class ‘QString’ | |
inline QString QString::fromStdU32String(const std::u32string &s) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1389:49: error: no ‘std::__cxx11::u32string QString::toStdU32String() const’ member function declared in class ‘QString’ | |
inline std::u32string QString::toStdU32String() const | |
^~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qglobal.h:1179:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:43, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:246:7: error: redefinition of ‘class QTypeInfo<QString>’ | |
class QTypeInfo<TYPE > \ | |
^~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:265:1: note: in expansion of macro ‘Q_DECLARE_TYPEINFO_BODY’ | |
Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS) | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:289:1: note: in expansion of macro ‘Q_DECLARE_TYPEINFO’ | |
Q_DECLARE_TYPEINFO(TYPE, FLAGS); \ | |
^~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:293:32: note: in expansion of macro ‘Q_DECLARE_SHARED_IMPL’ | |
#define Q_DECLARE_SHARED(TYPE) Q_DECLARE_SHARED_IMPL(TYPE, Q_MOVABLE_TYPE) | |
^~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1403:1: note: in expansion of macro ‘Q_DECLARE_SHARED’ | |
Q_DECLARE_SHARED(QString) | |
^~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:246:7: note: previous definition of ‘class QTypeInfo<QString>’ | |
class QTypeInfo<TYPE > \ | |
^~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:265:1: note: in expansion of macro ‘Q_DECLARE_TYPEINFO_BODY’ | |
Q_DECLARE_TYPEINFO_BODY(TYPE, FLAGS) | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:199:1: note: in expansion of macro ‘Q_DECLARE_TYPEINFO’ | |
Q_DECLARE_TYPEINFO(QString, Q_MOVABLE_TYPE); | |
^~~~~~~~~~~~~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qglobal.h:99:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:43, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:291:42: error: ‘class QString’ has no member named ‘swap’ | |
Q_DECL_NOEXCEPT_EXPR(noexcept(value1.swap(value2))) \ | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcompilerdetection.h:1153:43: note: in definition of macro ‘Q_DECL_NOEXCEPT_EXPR’ | |
# define Q_DECL_NOEXCEPT_EXPR(x) noexcept(x) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:293:32: note: in expansion of macro ‘Q_DECLARE_SHARED_IMPL’ | |
#define Q_DECLARE_SHARED(TYPE) Q_DECLARE_SHARED_IMPL(TYPE, Q_MOVABLE_TYPE) | |
^~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1403:1: note: in expansion of macro ‘Q_DECLARE_SHARED’ | |
Q_DECLARE_SHARED(QString) | |
^~~~~~~~~~~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qglobal.h:1179:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:43, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘void swap(QString&, QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:292:10: error: ‘class QString’ has no member named ‘swap’ | |
{ value1.swap(value2); } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qtypeinfo.h:293:32: note: in expansion of macro ‘Q_DECLARE_SHARED_IMPL’ | |
#define Q_DECLARE_SHARED(TYPE) Q_DECLARE_SHARED_IMPL(TYPE, Q_MOVABLE_TYPE) | |
^~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1403:1: note: in expansion of macro ‘Q_DECLARE_SHARED’ | |
Q_DECLARE_SHARED(QString) | |
^~~~~~~~~~~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qglobal.h:1183:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:43, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: At global scope: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘SectionFlags’ is not a member of ‘QString’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:179:32: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘SectionFlags’ is not a member of ‘QString’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:179:32: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:179:48: error: template argument 1 is invalid | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) Q_DECL_NOTHROW \ | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:1: note: in expansion of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: declaration of ‘operator|’ as non-function | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:179:60: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘QString::SectionFlags’ has not been declared | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:179:60: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘QString::SectionFlags’ has not been declared | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:179:81: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘SectionFlags’ is not a member of ‘QString’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:181:32: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘SectionFlags’ is not a member of ‘QString’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:181:32: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:181:48: error: template argument 1 is invalid | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) Q_DECL_NOTHROW \ | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:1: note: in expansion of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: declaration of ‘operator|’ as non-function | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:181:60: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘QString::SectionFlags’ has not been declared | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:181:60: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘SectionFlags’ is not a member of ‘QString’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:181:88: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘SectionFlags’ is not a member of ‘QString’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:181:88: note: in definition of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:181:104: error: template argument 1 is invalid | |
Q_DECL_CONSTEXPR inline QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) Q_DECL_NOTHROW \ | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:1: note: in expansion of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: declaration of ‘operator|’ as non-function | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:175:53: note: in definition of macro ‘Q_DECLARE_INCOMPATIBLE_FLAGS’ | |
Q_DECL_CONSTEXPR inline QIncompatibleFlag operator|(Flags::enum_type f1, int f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:1: note: in expansion of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:40: error: ‘QString::SectionFlags’ has not been declared | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:175:53: note: in definition of macro ‘Q_DECLARE_INCOMPATIBLE_FLAGS’ | |
Q_DECL_CONSTEXPR inline QIncompatibleFlag operator|(Flags::enum_type f1, int f2) Q_DECL_NOTHROW \ | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:1: note: in expansion of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:175:74: error: expected primary-expression before ‘int’ | |
Q_DECL_CONSTEXPR inline QIncompatibleFlag operator|(Flags::enum_type f1, int f2) Q_DECL_NOTHROW \ | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qflags.h:182:21: note: in expansion of macro ‘Q_DECLARE_INCOMPATIBLE_FLAGS’ | |
{ return f2 | f1; } Q_DECLARE_INCOMPATIBLE_FLAGS(Flags) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1404:1: note: in expansion of macro ‘Q_DECLARE_OPERATORS_FOR_FLAGS’ | |
Q_DECLARE_OPERATORS_FOR_FLAGS(QString::SectionFlags) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1416:22: error: ‘const_pointer’ in ‘class QString’ does not name a type | |
typedef QString::const_pointer const_pointer; | |
^~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1465:78: error: ‘QString::SplitBehavior’ has not been declared | |
Q_REQUIRED_RESULT QVector<QStringRef> split(const QString &sep, QString::SplitBehavior behavior = QString::KeepEmptyParts, | |
^~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1467:69: error: ‘QString::SplitBehavior’ has not been declared | |
Q_REQUIRED_RESULT QVector<QStringRef> split(QChar sep, QString::SplitBehavior behavior = QString::KeepEmptyParts, | |
^~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1465:112: error: ‘KeepEmptyParts’ is not a member of ‘QString’ | |
Q_REQUIRED_RESULT QVector<QStringRef> split(const QString &sep, QString::SplitBehavior behavior = QString::KeepEmptyParts, | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1467:103: error: ‘KeepEmptyParts’ is not a member of ‘QString’ | |
Q_REQUIRED_RESULT QVector<QStringRef> split(QChar sep, QString::SplitBehavior behavior = QString::KeepEmptyParts, | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘const QChar* QStringRef::unicode() const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1510:61: error: ‘QString::Data’ has not been declared | |
return reinterpret_cast<const QChar *>(QString::Data::sharedNull()->data()); | |
^~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1511:26: error: ‘const class QString’ has no member named ‘unicode’ | |
return m_string->unicode() + m_position; | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘int QStringRef::compare(const QByteArray&, Qt::CaseSensitivity) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1564:23: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(unicode(), size(), s.data(), qstrnlen(s.data(), s.size()), cs); } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator!=(const QString&, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1615:95: error: ‘const class QString’ has no member named ‘compare’ | |
inline bool operator!=(const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) != 0; } | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(const QString&, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1616:95: error: ‘const class QString’ has no member named ‘compare’ | |
inline bool operator< (const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) < 0; } | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(const QString&, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1617:95: error: ‘const class QString’ has no member named ‘compare’ | |
inline bool operator> (const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) > 0; } | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<=(const QString&, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1618:95: error: ‘const class QString’ has no member named ‘compare’ | |
inline bool operator<=(const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) <= 0; } | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>=(const QString&, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1619:95: error: ‘const class QString’ has no member named ‘compare’ | |
inline bool operator>=(const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) >= 0; } | |
^~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qglobal.h:99:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:43, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: At global scope: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcompilerdetection.h:1152:26: error: no ‘int QString::compare(const QStringRef&, Qt::CaseSensitivity) const’ member function declared in class ‘QString’ | |
# define Q_DECL_NOEXCEPT noexcept | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcompilerdetection.h:1162:25: note: in expansion of macro ‘Q_DECL_NOEXCEPT’ | |
# define Q_DECL_NOTHROW Q_DECL_NOEXCEPT | |
^~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1628:80: note: in expansion of macro ‘Q_DECL_NOTHROW’ | |
inline int QString::compare(const QStringRef &s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcompilerdetection.h:1152:26: error: no ‘int QString::compare(const QString&, const QStringRef&, Qt::CaseSensitivity)’ member function declared in class ‘QString’ | |
# define Q_DECL_NOEXCEPT noexcept | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcompilerdetection.h:1162:25: note: in expansion of macro ‘Q_DECL_NOEXCEPT’ | |
# define Q_DECL_NOTHROW Q_DECL_NOEXCEPT | |
^~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1630:94: note: in expansion of macro ‘Q_DECL_NOTHROW’ | |
inline int QString::compare(const QString &s1, const QStringRef &s2, Qt::CaseSensitivity cs) Q_DECL_NOTHROW | |
^~~~~~~~~~~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:44:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘int QStringRef::compare(const QString&, Qt::CaseSensitivity) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1633:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), length(), s.constData(), s.length(), cs); } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1633:59: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(constData(), length(), s.constData(), s.length(), cs); } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1633:74: error: ‘const class QString’ has no member named ‘length’; did you mean ‘left’? | |
{ return QString::compare_helper(constData(), length(), s.constData(), s.length(), cs); } | |
^~~~~~ | |
left | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘int QStringRef::compare(const QStringRef&, Qt::CaseSensitivity) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1635:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), length(), s.constData(), s.length(), cs); } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘int QStringRef::compare(QString, Qt::CaseSensitivity) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1637:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), length(), s, cs); } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In static member function ‘static int QStringRef::compare(const QStringRef&, const QString&, Qt::CaseSensitivity)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1639:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s1.constData(), s1.length(), s2.constData(), s2.length(), cs); } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1639:66: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::compare_helper(s1.constData(), s1.length(), s2.constData(), s2.length(), cs); } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1639:82: error: ‘const class QString’ has no member named ‘length’; did you mean ‘left’? | |
{ return QString::compare_helper(s1.constData(), s1.length(), s2.constData(), s2.length(), cs); } | |
^~~~~~ | |
left | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In static member function ‘static int QStringRef::compare(const QStringRef&, const QStringRef&, Qt::CaseSensitivity)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1641:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s1.constData(), s1.length(), s2.constData(), s2.length(), cs); } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In static member function ‘static int QStringRef::compare(const QStringRef&, QString, Qt::CaseSensitivity)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1643:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s1.constData(), s1.length(), s2, cs); } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator!=(QString, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1647:99: error: call of overloaded ‘compare(QString&)’ is ambiguous | |
inline bool operator!=(QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) != 0; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1632:12: note: candidate: int QStringRef::compare(const QString&, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(const QString &s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1636:12: note: candidate: int QStringRef::compare(QString, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(QString s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(QString, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1648:99: error: call of overloaded ‘compare(QString&)’ is ambiguous | |
inline bool operator< (QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) > 0; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1632:12: note: candidate: int QStringRef::compare(const QString&, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(const QString &s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1636:12: note: candidate: int QStringRef::compare(QString, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(QString s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(QString, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1649:99: error: call of overloaded ‘compare(QString&)’ is ambiguous | |
inline bool operator> (QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) < 0; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1632:12: note: candidate: int QStringRef::compare(const QString&, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(const QString &s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1636:12: note: candidate: int QStringRef::compare(QString, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(QString s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<=(QString, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1650:99: error: call of overloaded ‘compare(QString&)’ is ambiguous | |
inline bool operator<=(QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) >= 0; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1632:12: note: candidate: int QStringRef::compare(const QString&, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(const QString &s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1636:12: note: candidate: int QStringRef::compare(QString, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(QString s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>=(QString, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1651:99: error: call of overloaded ‘compare(QString&)’ is ambiguous | |
inline bool operator>=(QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) <= 0; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1632:12: note: candidate: int QStringRef::compare(const QString&, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(const QString &s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1636:12: note: candidate: int QStringRef::compare(QString, Qt::CaseSensitivity) const | |
inline int QStringRef::compare(QString s, Qt::CaseSensitivity cs) const Q_DECL_NOTHROW | |
^~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator==(const QStringRef&, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1653:88: error: ambiguous overload for ‘operator==’ (operand types are ‘QString’ and ‘const QStringRef’) | |
inline bool operator==(const QStringRef &lhs, QString rhs) Q_DECL_NOTHROW { return rhs == lhs; } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1614:20: note: candidate: bool operator==(const QString&, const QStringRef&) | |
Q_CORE_EXPORT bool operator==(const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW; | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1646:20: note: candidate: bool operator==(QString, const QStringRef&) | |
Q_CORE_EXPORT bool operator==(QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW; | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator!=(const QStringRef&, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1654:88: error: ambiguous overload for ‘operator!=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
inline bool operator!=(const QStringRef &lhs, QString rhs) Q_DECL_NOTHROW { return rhs != lhs; } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1615:13: note: candidate: bool operator!=(const QString&, const QStringRef&) | |
inline bool operator!=(const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) != 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1647:13: note: candidate: bool operator!=(QString, const QStringRef&) | |
inline bool operator!=(QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) != 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(const QStringRef&, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1655:88: error: ambiguous overload for ‘operator>’ (operand types are ‘QString’ and ‘const QStringRef’) | |
inline bool operator< (const QStringRef &lhs, QString rhs) Q_DECL_NOTHROW { return rhs > lhs; } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1617:13: note: candidate: bool operator>(const QString&, const QStringRef&) | |
inline bool operator> (const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) > 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1649:13: note: candidate: bool operator>(QString, const QStringRef&) | |
inline bool operator> (QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) < 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(const QStringRef&, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1656:88: error: ambiguous overload for ‘operator<’ (operand types are ‘QString’ and ‘const QStringRef’) | |
inline bool operator> (const QStringRef &lhs, QString rhs) Q_DECL_NOTHROW { return rhs < lhs; } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1616:13: note: candidate: bool operator<(const QString&, const QStringRef&) | |
inline bool operator< (const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) < 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1648:13: note: candidate: bool operator<(QString, const QStringRef&) | |
inline bool operator< (QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) > 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<=(const QStringRef&, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1657:88: error: ambiguous overload for ‘operator>=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
inline bool operator<=(const QStringRef &lhs, QString rhs) Q_DECL_NOTHROW { return rhs >= lhs; } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1619:13: note: candidate: bool operator>=(const QString&, const QStringRef&) | |
inline bool operator>=(const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) >= 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1651:13: note: candidate: bool operator>=(QString, const QStringRef&) | |
inline bool operator>=(QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) <= 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>=(const QStringRef&, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1658:88: error: ambiguous overload for ‘operator<=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
inline bool operator>=(const QStringRef &lhs, QString rhs) Q_DECL_NOTHROW { return rhs <= lhs; } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1618:13: note: candidate: bool operator<=(const QString&, const QStringRef&) | |
inline bool operator<=(const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) <= 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1650:13: note: candidate: bool operator<=(QString, const QStringRef&) | |
inline bool operator<=(QString lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return rhs.compare(lhs) >= 0; } | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(QChar, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1664:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(&lhs, 1, rhs.data(), rhs.size()) < 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(QChar, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1666:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(&lhs, 1, rhs.data(), rhs.size()) > 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(QChar, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1683:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(&lhs, 1, rhs.data(), rhs.size()) < 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(QChar, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1685:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(&lhs, 1, rhs.data(), rhs.size()) > 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(QChar, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1702:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(&lhs, 1, rhs) < 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(QChar, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1704:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(&lhs, 1, rhs) > 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator!=(QChar, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1706:78: error: ambiguous overload for ‘operator==’ (operand types are ‘QChar’ and ‘QString’) | |
inline bool operator!=(QChar lhs, QString rhs) Q_DECL_NOTHROW { return !(lhs == rhs); } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1661:13: note: candidate: bool operator==(QChar, const QString&) | |
inline bool operator==(QChar lhs, const QString &rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1699:13: note: candidate: bool operator==(QChar, QString) | |
inline bool operator==(QChar lhs, QString rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<=(QChar, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1707:78: error: ambiguous overload for ‘operator>’ (operand types are ‘QChar’ and ‘QString’) | |
inline bool operator<=(QChar lhs, QString rhs) Q_DECL_NOTHROW { return !(lhs > rhs); } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1665:13: note: candidate: bool operator>(QChar, const QString&) | |
inline bool operator> (QChar lhs, const QString &rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1703:13: note: candidate: bool operator>(QChar, QString) | |
inline bool operator> (QChar lhs, QString rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>=(QChar, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1708:78: error: ambiguous overload for ‘operator<’ (operand types are ‘QChar’ and ‘QString’) | |
inline bool operator>=(QChar lhs, QString rhs) Q_DECL_NOTHROW { return !(lhs < rhs); } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1663:13: note: candidate: bool operator<(QChar, const QString&) | |
inline bool operator< (QChar lhs, const QString &rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1701:13: note: candidate: bool operator<(QChar, QString) | |
inline bool operator< (QChar lhs, QString rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator==(QString, QChar)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1710:78: error: ambiguous overload for ‘operator==’ (operand types are ‘QChar’ and ‘QString’) | |
inline bool operator==(QString lhs, QChar rhs) Q_DECL_NOTHROW { return rhs == lhs; } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1661:13: note: candidate: bool operator==(QChar, const QString&) | |
inline bool operator==(QChar lhs, const QString &rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1699:13: note: candidate: bool operator==(QChar, QString) | |
inline bool operator==(QChar lhs, QString rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator!=(QString, QChar)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1711:78: error: ambiguous overload for ‘operator==’ (operand types are ‘QChar’ and ‘QString’) | |
inline bool operator!=(QString lhs, QChar rhs) Q_DECL_NOTHROW { return !(rhs == lhs); } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1661:13: note: candidate: bool operator==(QChar, const QString&) | |
inline bool operator==(QChar lhs, const QString &rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1699:13: note: candidate: bool operator==(QChar, QString) | |
inline bool operator==(QChar lhs, QString rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(QString, QChar)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1712:78: error: ambiguous overload for ‘operator>’ (operand types are ‘QChar’ and ‘QString’) | |
inline bool operator< (QString lhs, QChar rhs) Q_DECL_NOTHROW { return rhs > lhs; } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1665:13: note: candidate: bool operator>(QChar, const QString&) | |
inline bool operator> (QChar lhs, const QString &rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1703:13: note: candidate: bool operator>(QChar, QString) | |
inline bool operator> (QChar lhs, QString rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(QString, QChar)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1713:78: error: ambiguous overload for ‘operator<’ (operand types are ‘QChar’ and ‘QString’) | |
inline bool operator> (QString lhs, QChar rhs) Q_DECL_NOTHROW { return rhs < lhs; } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1663:13: note: candidate: bool operator<(QChar, const QString&) | |
inline bool operator< (QChar lhs, const QString &rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1701:13: note: candidate: bool operator<(QChar, QString) | |
inline bool operator< (QChar lhs, QString rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<=(QString, QChar)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1714:78: error: ambiguous overload for ‘operator<’ (operand types are ‘QChar’ and ‘QString’) | |
inline bool operator<=(QString lhs, QChar rhs) Q_DECL_NOTHROW { return !(rhs < lhs); } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1663:13: note: candidate: bool operator<(QChar, const QString&) | |
inline bool operator< (QChar lhs, const QString &rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1701:13: note: candidate: bool operator<(QChar, QString) | |
inline bool operator< (QChar lhs, QString rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>=(QString, QChar)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1715:78: error: ambiguous overload for ‘operator>’ (operand types are ‘QChar’ and ‘QString’) | |
inline bool operator>=(QString lhs, QChar rhs) Q_DECL_NOTHROW { return !(rhs > lhs); } | |
~~~~^~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1665:13: note: candidate: bool operator>(QChar, const QString&) | |
inline bool operator> (QChar lhs, const QString &rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1703:13: note: candidate: bool operator>(QChar, QString) | |
inline bool operator> (QChar lhs, QString rhs) Q_DECL_NOTHROW | |
^~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QStringRef::operator==(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1773:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) == 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QStringRef::operator!=(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1775:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) != 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QStringRef::operator<(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1777:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) < 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QStringRef::operator<=(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1779:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) <= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QStringRef::operator>(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1781:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) > 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QStringRef::operator>=(const char*) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1783:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(constData(), size(), s, -1) >= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator==(const char*, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1786:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) == 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator!=(const char*, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1788:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) != 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<(const char*, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1790:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) > 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator<=(const char*, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1792:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) >= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>(const char*, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1794:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) < 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘bool operator>=(const char*, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1796:19: error: ‘compare_helper’ is not a member of ‘QString’ | |
{ return QString::compare_helper(s2.constData(), s2.size(), s1, -1) <= 0; } | |
^~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: At global scope: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1799:61: error: no ‘int QString::localeAwareCompare(const QStringRef&) const’ member function declared in class ‘QString’ | |
inline int QString::localeAwareCompare(const QStringRef &s) const | |
^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1801:79: error: no ‘int QString::localeAwareCompare(const QString&, const QStringRef&)’ member function declared in class ‘QString’ | |
inline int QString::localeAwareCompare(const QString& s1, const QStringRef& s2) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘int QStringRef::localeAwareCompare(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1804:19: error: ‘localeAwareCompare_helper’ is not a member of ‘QString’ | |
{ return QString::localeAwareCompare_helper(constData(), length(), s.constData(), s.length()); } | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1804:70: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::localeAwareCompare_helper(constData(), length(), s.constData(), s.length()); } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1804:85: error: ‘const class QString’ has no member named ‘length’; did you mean ‘left’? | |
{ return QString::localeAwareCompare_helper(constData(), length(), s.constData(), s.length()); } | |
^~~~~~ | |
left | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘int QStringRef::localeAwareCompare(const QStringRef&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1806:19: error: ‘localeAwareCompare_helper’ is not a member of ‘QString’ | |
{ return QString::localeAwareCompare_helper(constData(), length(), s.constData(), s.length()); } | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In static member function ‘static int QStringRef::localeAwareCompare(const QStringRef&, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1808:19: error: ‘localeAwareCompare_helper’ is not a member of ‘QString’ | |
{ return QString::localeAwareCompare_helper(s1.constData(), s1.length(), s2.constData(), s2.length()); } | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1808:77: error: ‘const class QString’ has no member named ‘constData’ | |
{ return QString::localeAwareCompare_helper(s1.constData(), s1.length(), s2.constData(), s2.length()); } | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1808:93: error: ‘const class QString’ has no member named ‘length’; did you mean ‘left’? | |
{ return QString::localeAwareCompare_helper(s1.constData(), s1.length(), s2.constData(), s2.length()); } | |
^~~~~~ | |
left | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In static member function ‘static int QStringRef::localeAwareCompare(const QStringRef&, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1810:19: error: ‘localeAwareCompare_helper’ is not a member of ‘QString’ | |
{ return QString::localeAwareCompare_helper(s1.constData(), s1.length(), s2.constData(), s2.length()); } | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QStringRef::contains(const QString&, Qt::CaseSensitivity) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1813:26: error: call of overloaded ‘indexOf(const QString&, int, Qt::CaseSensitivity&)’ is ambiguous | |
{ return indexOf(s, 0, cs) != -1; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1447:9: note: candidate: int QStringRef::indexOf(const QString&, int, Qt::CaseSensitivity) const | |
int indexOf(const QString &str, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const; | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1449:9: note: candidate: int QStringRef::indexOf(QString, int, Qt::CaseSensitivity) const | |
int indexOf(QString str, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const; | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In member function ‘bool QStringRef::contains(QString, Qt::CaseSensitivity) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1815:26: error: call of overloaded ‘indexOf(QString&, int, Qt::CaseSensitivity&)’ is ambiguous | |
{ return indexOf(s, 0, cs) != -1; } | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1447:9: note: candidate: int QStringRef::indexOf(const QString&, int, Qt::CaseSensitivity) const | |
int indexOf(const QString &str, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const; | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1449:9: note: candidate: int QStringRef::indexOf(QString, int, Qt::CaseSensitivity) const | |
int indexOf(QString str, int from = 0, Qt::CaseSensitivity cs = Qt::CaseSensitive) const; | |
^~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: At global scope: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1821:59: error: no ‘QString& QString::insert(int, const QStringRef&)’ member function declared in class ‘QString’ | |
inline QString &QString::insert(int i, const QStringRef &s) | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘QString operator+(const QString&, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1826:16: error: ‘class QString’ has no member named ‘reserve’; did you mean ‘reference’? | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
^~~~~~~ | |
reference | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1826:50: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QString’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1826:59: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘QString operator+(const QStringRef&, const QString&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1828:16: error: ‘class QString’ has no member named ‘reserve’; did you mean ‘reference’? | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
^~~~~~~ | |
reference | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1828:50: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1828:59: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QString’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘QString operator+(const QStringRef&, QString)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1830:16: error: ‘class QString’ has no member named ‘reserve’; did you mean ‘reference’? | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
^~~~~~~ | |
reference | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1830:50: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1830:59: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘QString’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘QString operator+(QString, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1832:16: error: ‘class QString’ has no member named ‘reserve’; did you mean ‘reference’? | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
^~~~~~~ | |
reference | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1832:50: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘QString’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1832:59: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘QString operator+(const QStringRef&, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1834:16: error: ‘class QString’ has no member named ‘reserve’; did you mean ‘reference’? | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
^~~~~~~ | |
reference | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1834:50: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1834:59: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
{ QString t; t.reserve(s1.size() + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘QString operator+(const QStringRef&, QChar)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1836:16: error: ‘class QString’ has no member named ‘reserve’; did you mean ‘reference’? | |
{ QString t; t.reserve(s1.size() + 1); t += s1; t += s2; return t; } | |
^~~~~~~ | |
reference | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1836:42: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
{ QString t; t.reserve(s1.size() + 1); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1836:51: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘QChar’) | |
{ QString t; t.reserve(s1.size() + 1); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h: In function ‘QString operator+(QChar, const QStringRef&)’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1838:16: error: ‘class QString’ has no member named ‘reserve’; did you mean ‘reference’? | |
{ QString t; t.reserve(1 + s2.size()); t += s1; t += s2; return t; } | |
^~~~~~~ | |
reference | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1838:42: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘QChar’) | |
{ QString t; t.reserve(1 + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstring.h:1838:51: error: no match for ‘operator+=’ (operand types are ‘QString’ and ‘const QStringRef’) | |
{ QString t; t.reserve(1 + s2.size()); t += s1; t += s2; return t; } | |
~~^~~~~ | |
In file included from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qlist.h:1094:0, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qobject.h:49, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qcoreapplication.h:46, | |
from /home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/QCoreApplication:1, | |
from /home/howardchen/Learning/qt/untitled2/main.cpp:1: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h: In member function ‘QString QListSpecialMethods<QString>::join(const QString&) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h:204:52: error: ‘const class QString’ has no member named ‘constData’ | |
return QtPrivate::QStringList_join(self(), sep.constData(), sep.length()); | |
^~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h:204:69: error: ‘const class QString’ has no member named ‘length’; did you mean ‘left’? | |
return QtPrivate::QStringList_join(self(), sep.constData(), sep.length()); | |
^~~~~~ | |
left | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h: In member function ‘bool QStringList::contains(const QString&, Qt::CaseSensitivity) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h:224:57: error: call of overloaded ‘QStringList_contains(const QStringList*, const QString&, Qt::CaseSensitivity&)’ is ambiguous | |
return QtPrivate::QStringList_contains(this, str, cs); | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h:168:24: note: candidate: bool QtPrivate::QStringList_contains(const QStringList*, const QString&, Qt::CaseSensitivity) | |
bool Q_CORE_EXPORT QStringList_contains(const QStringList *that, const QString &str, Qt::CaseSensitivity cs); | |
^~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h:169:24: note: candidate: bool QtPrivate::QStringList_contains(const QStringList*, QString, Qt::CaseSensitivity) | |
bool Q_CORE_EXPORT QStringList_contains(const QStringList *that, QString str, Qt::CaseSensitivity cs); | |
^~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h: In member function ‘bool QStringList::contains(QString, Qt::CaseSensitivity) const’: | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h:229:57: error: call of overloaded ‘QStringList_contains(const QStringList*, QString&, Qt::CaseSensitivity&)’ is ambiguous | |
return QtPrivate::QStringList_contains(this, str, cs); | |
^ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h:168:24: note: candidate: bool QtPrivate::QStringList_contains(const QStringList*, const QString&, Qt::CaseSensitivity) | |
bool Q_CORE_EXPORT QStringList_contains(const QStringList *that, const QString &str, Qt::CaseSensitivity cs); | |
^~~~~~~~~~~~~~~~~~~~ | |
/home/howardchen/Qt/5.10.1/gcc_64/include/QtCore/qstringlist.h:169:24: note: candidate: bool QtPrivate::QStringList_contains(const QStringList*, QString, Qt::CaseSensitivity) | |
bool Q_CORE_EXPORT QStringList_contains(const QStringList *that, QString str, Qt::CaseSensitivity cs); | |
^~~~~~~~~~~~~~~~~~~~ | |
Process failed with exit code 1. | |
The following products could not be built for configuration qtc_Desktop_Qt_5_10_1_GCC_64bit_Debug: | |
untitled2 | |
Error while building/deploying project untitled2 (kit: Desktop Qt 5.10.1 GCC 64bit) | |
When executing step "Qbs Build" | |
09:10:49: Elapsed time: 00:01. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment