forked from qt-creator/qt-creator
QmlJS: Fix inconsistent copy ctor/operator=
Detected by GCC9. Change-Id: Ieab7c13c6d66b99cc679c3ac5d4a3da67bcd7767 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
5cf087ac5d
commit
c8f0d3f008
@@ -79,9 +79,6 @@ QMLJS_EXPORT QDebug operator << (QDebug &dbg, const Dialect &dialect);
|
||||
class QMLJS_EXPORT PathAndLanguage {
|
||||
public:
|
||||
PathAndLanguage(const Utils::FileName &path = Utils::FileName(), Dialect language = Dialect::AnyLanguage);
|
||||
PathAndLanguage(const PathAndLanguage &o)
|
||||
: m_path(o.path()), m_language(o.language())
|
||||
{ }
|
||||
Utils::FileName path() const {
|
||||
return m_path;
|
||||
}
|
||||
@@ -130,9 +127,6 @@ public:
|
||||
explicit PathsAndLanguages(const QList<PathAndLanguage> &list)
|
||||
: m_list(list)
|
||||
{ }
|
||||
PathsAndLanguages(const PathsAndLanguages &o)
|
||||
: m_list(o.m_list)
|
||||
{ }
|
||||
|
||||
bool maybeInsert(const Utils::FileName &path, Dialect language = Dialect::AnyLanguage) {
|
||||
return maybeInsert(PathAndLanguage(path, language));
|
||||
|
||||
Reference in New Issue
Block a user