forked from qt-creator/qt-creator
TextEditor: Move constructor has now noexcept
Otherwise the copy constructor will be used too and we get an error because it is private. Change-Id: Ibfe70939ebe34fa9a524b9844a20d962eb09bd97 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
committed by
David Schulz
parent
1c06cb1e8a
commit
610ff191af
@@ -65,7 +65,7 @@ TextMark::~TextMark()
|
||||
m_baseTextDocument = 0;
|
||||
}
|
||||
|
||||
TextMark::TextMark(TextMark &&other)
|
||||
TextMark::TextMark(TextMark &&other) Q_DECL_NOEXCEPT
|
||||
: m_baseTextDocument(std::move(other.m_baseTextDocument)),
|
||||
m_fileName(std::move(other.m_fileName)),
|
||||
m_lineNumber(std::move(other.m_lineNumber)),
|
||||
|
||||
Reference in New Issue
Block a user