Update pdf_to_emf_converter
This commit is contained in:
parent
f4ec369873
commit
e3af5de7d7
1 changed files with 8 additions and 8 deletions
|
@ -109,21 +109,21 @@ class PdfToEmfUtilityProcessHostClient
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class GetPageCallbackData {
|
class GetPageCallbackData {
|
||||||
MOVE_ONLY_TYPE_FOR_CPP_03(GetPageCallbackData, RValue);
|
MOVE_ONLY_TYPE_FOR_CPP_03(GetPageCallbackData);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GetPageCallbackData(int page_number,
|
GetPageCallbackData(int page_number,
|
||||||
PdfToEmfConverter::GetPageCallback callback)
|
PdfToEmfConverter::GetPageCallback callback)
|
||||||
: page_number_(page_number), callback_(callback) {}
|
: page_number_(page_number), callback_(callback) {}
|
||||||
|
|
||||||
// Move constructor for STL.
|
GetPageCallbackData(GetPageCallbackData&& other) {
|
||||||
GetPageCallbackData(RValue other) { this->operator=(other); }
|
*this = std::move(other);
|
||||||
|
}
|
||||||
|
|
||||||
// Move assignment for STL.
|
GetPageCallbackData& operator=(GetPageCallbackData&& rhs) {
|
||||||
GetPageCallbackData& operator=(RValue rhs) {
|
page_number_ = rhs.page_number_;
|
||||||
page_number_ = rhs.object->page_number_;
|
callback_ = rhs.callback_;
|
||||||
callback_ = rhs.object->callback_;
|
emf_ = std::move(rhs.emf_);
|
||||||
emf_ = rhs.object->emf_.Pass();
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue