forked from qt-creator/qt-creator
warnings: Fix -Wdeprecated-copy
Change-Id: Iec5f5edf3752372fd7a0ce94dc26cbf7e75dd8f4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -152,7 +152,6 @@ class LANGUAGESERVERPROTOCOL_EXPORT Location : public JsonObject
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using JsonObject::JsonObject;
|
using JsonObject::JsonObject;
|
||||||
Location &operator=(const Location &) = default;
|
|
||||||
|
|
||||||
DocumentUri uri() const { return DocumentUri::fromProtocol(typedValue<QString>(uriKey)); }
|
DocumentUri uri() const { return DocumentUri::fromProtocol(typedValue<QString>(uriKey)); }
|
||||||
void setUri(const DocumentUri &uri) { insert(uriKey, uri); }
|
void setUri(const DocumentUri &uri) { insert(uriKey, uri); }
|
||||||
|
@@ -65,7 +65,6 @@ class LANGUAGESERVERPROTOCOL_EXPORT MessageActionItem : public JsonObject
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using JsonObject::JsonObject;
|
using JsonObject::JsonObject;
|
||||||
MessageActionItem &operator=(const MessageActionItem &) = default;
|
|
||||||
|
|
||||||
QString title() const { return typedValue<QString>(titleKey); }
|
QString title() const { return typedValue<QString>(titleKey); }
|
||||||
void setTitle(QString title) { insert(titleKey, title); }
|
void setTitle(QString title) { insert(titleKey, title); }
|
||||||
|
@@ -170,7 +170,6 @@ public:
|
|||||||
explicit LibraryInfo(const QString &typeInfo);
|
explicit LibraryInfo(const QString &typeInfo);
|
||||||
explicit LibraryInfo(const QmlDirParser &parser, const QByteArray &fingerprint = QByteArray());
|
explicit LibraryInfo(const QmlDirParser &parser, const QByteArray &fingerprint = QByteArray());
|
||||||
~LibraryInfo() = default;
|
~LibraryInfo() = default;
|
||||||
LibraryInfo(const LibraryInfo &other) = default;
|
|
||||||
|
|
||||||
QByteArray calculateFingerprint() const;
|
QByteArray calculateFingerprint() const;
|
||||||
void updateFingerprint();
|
void updateFingerprint();
|
||||||
|
@@ -34,7 +34,6 @@ namespace Utils {
|
|||||||
class QTCREATOR_UTILS_EXPORT FormattedText {
|
class QTCREATOR_UTILS_EXPORT FormattedText {
|
||||||
public:
|
public:
|
||||||
FormattedText() = default;
|
FormattedText() = default;
|
||||||
FormattedText(const FormattedText &other) = default;
|
|
||||||
FormattedText(const QString &txt, const QTextCharFormat &fmt = QTextCharFormat()) :
|
FormattedText(const QString &txt, const QTextCharFormat &fmt = QTextCharFormat()) :
|
||||||
text(txt), format(fmt)
|
text(txt), format(fmt)
|
||||||
{ }
|
{ }
|
||||||
|
@@ -65,8 +65,6 @@ public:
|
|||||||
Icon(std::initializer_list<IconMaskAndColor> args, IconStyleOptions style = ToolBarStyle);
|
Icon(std::initializer_list<IconMaskAndColor> args, IconStyleOptions style = ToolBarStyle);
|
||||||
Icon(const FilePath &imageFileName);
|
Icon(const FilePath &imageFileName);
|
||||||
|
|
||||||
Icon(const Icon &other) = default;
|
|
||||||
|
|
||||||
QIcon icon() const;
|
QIcon icon() const;
|
||||||
// Same as icon() but without disabled state.
|
// Same as icon() but without disabled state.
|
||||||
QPixmap pixmap(QIcon::Mode iconMode = QIcon::Normal) const;
|
QPixmap pixmap(QIcon::Mode iconMode = QIcon::Normal) const;
|
||||||
|
@@ -45,13 +45,6 @@ public:
|
|||||||
: m_callable(&callable)
|
: m_callable(&callable)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
function_output_iterator &operator=(const function_output_iterator &iterator)
|
|
||||||
{
|
|
||||||
m_callable = iterator.m_callable;
|
|
||||||
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct helper
|
struct helper
|
||||||
{
|
{
|
||||||
helper(const Callable *callable)
|
helper(const Callable *callable)
|
||||||
|
@@ -122,7 +122,6 @@ private:
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
InternalDataItem(const DataItem &item);
|
InternalDataItem(const DataItem &item);
|
||||||
InternalDataItem(const InternalDataItem &item) = default;
|
|
||||||
|
|
||||||
QString currentValue() const;
|
QString currentValue() const;
|
||||||
|
|
||||||
|
@@ -68,7 +68,6 @@ public:
|
|||||||
VcsInfo(IVersionControl *vc, const QString &tl) :
|
VcsInfo(IVersionControl *vc, const QString &tl) :
|
||||||
versionControl(vc), topLevel(tl)
|
versionControl(vc), topLevel(tl)
|
||||||
{ }
|
{ }
|
||||||
VcsInfo(const VcsInfo &other) = default;
|
|
||||||
|
|
||||||
bool operator == (const VcsInfo &other) const
|
bool operator == (const VcsInfo &other) const
|
||||||
{
|
{
|
||||||
|
@@ -276,7 +276,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
TargetInformation() = default;
|
TargetInformation() = default;
|
||||||
TargetInformation(const TargetInformation &other) = default;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class QMAKEPROJECTMANAGER_EXPORT InstallsItem {
|
class QMAKEPROJECTMANAGER_EXPORT InstallsItem {
|
||||||
|
Reference in New Issue
Block a user