From f46644e0096ffa2ce57c23707d588b2c073eed55 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Jan 2017 18:20:02 +0300 Subject: Add missing A_DEFAULT_COPY / A_DELETE_COPY into gui. --- src/gui/windows/buydialog.cpp | 12 ++++++++++++ src/gui/windows/whoisonline.cpp | 2 ++ 2 files changed, 14 insertions(+) (limited to 'src/gui/windows') diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp index 5a1cbd28e..b0e7aaa04 100644 --- a/src/gui/windows/buydialog.cpp +++ b/src/gui/windows/buydialog.cpp @@ -68,6 +68,8 @@ namespace class SortItemPriceFunctor final { public: + A_DEFAULT_COPY(SortItemPriceFunctor) + bool operator() (const ShopItem *const item1, const ShopItem *const item2) const { @@ -85,6 +87,8 @@ namespace class SortItemNameFunctor final { public: + A_DEFAULT_COPY(SortItemNameFunctor) + bool operator() (const ShopItem *const item1, const ShopItem *const item2) const { @@ -102,6 +106,8 @@ namespace class SortItemIdFunctor final { public: + A_DEFAULT_COPY(SortItemIdFunctor) + bool operator() (const ShopItem *const item1, const ShopItem *const item2) const { @@ -119,6 +125,8 @@ namespace class SortItemWeightFunctor final { public: + A_DEFAULT_COPY(SortItemWeightFunctor) + bool operator() (const ShopItem *const item1, const ShopItem *const item2) const { @@ -136,6 +144,8 @@ namespace class SortItemAmountFunctor final { public: + A_DEFAULT_COPY(SortItemAmountFunctor) + bool operator() (const ShopItem *const item1, const ShopItem *const item2) const { @@ -153,6 +163,8 @@ namespace class SortItemTypeFunctor final { public: + A_DEFAULT_COPY(SortItemTypeFunctor) + bool operator() (const ShopItem *const item1, const ShopItem *const item2) const { diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index 89e9feacd..cf999ae24 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -80,6 +80,8 @@ namespace class NameFunctuator final { public: + A_DEFAULT_COPY(NameFunctuator) + bool operator()(const OnlinePlayer *left, const OnlinePlayer *right) const { -- cgit v1.2.3-70-g09d2