mirror of
https://github.com/UltraCoderRU/telebotxx.git
synced 2026-01-28 04:05:13 +00:00
Fixed compiler error (missing assignment operator for class).
This commit is contained in:
parent
299dced3dc
commit
fd4589fe52
2 changed files with 17 additions and 0 deletions
|
|
@ -135,6 +135,9 @@ public:
|
|||
const SwitchInlineQuery& getSwitchInlineQuery() const;
|
||||
const SwitchInlineQueryCurrentChat& getSwitchInlineQueryCurrentChat() const;
|
||||
|
||||
void swap(InlineKeyboardButton&);
|
||||
const InlineKeyboardButton& operator=(InlineKeyboardButton);
|
||||
|
||||
private:
|
||||
ActionType actionType_;
|
||||
std::string text_;
|
||||
|
|
|
|||
|
|
@ -228,6 +228,20 @@ const SwitchInlineQueryCurrentChat& InlineKeyboardButton::getSwitchInlineQueryCu
|
|||
return boost::get<SwitchInlineQueryCurrentChat>(value_);
|
||||
}
|
||||
|
||||
void InlineKeyboardButton::swap(InlineKeyboardButton& other)
|
||||
{
|
||||
using std::swap;
|
||||
swap(text_, other.text_);
|
||||
swap(actionType_, other.actionType_);
|
||||
swap(value_, other.value_);
|
||||
}
|
||||
|
||||
const InlineKeyboardButton& InlineKeyboardButton::operator=(InlineKeyboardButton other)
|
||||
{
|
||||
swap(other);
|
||||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
void InlineKeyboardMarkup::addRow(const InlineKeyboardButtonRow& row)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue