diff options
author | Marco Bubke <[email protected]> | 2015-09-01 10:10:20 +0200 |
---|---|---|
committer | David Schulz <[email protected]> | 2015-09-01 11:38:16 +0000 |
commit | 610ff191afe7b550586a72a8a9f12cf0c6c84273 (patch) | |
tree | c78395da473247c8ec5ffe121dde665fd3ced25b /src/plugins/clangcodemodel/clangtextmark.cpp | |
parent | 1c06cb1e8a7db45d57c43230bd180b34c4a129af (diff) |
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 <[email protected]>
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/clangcodemodel/clangtextmark.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangtextmark.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangtextmark.cpp b/src/plugins/clangcodemodel/clangtextmark.cpp index e6692487637..156f4c575db 100644 --- a/src/plugins/clangcodemodel/clangtextmark.cpp +++ b/src/plugins/clangcodemodel/clangtextmark.cpp @@ -78,5 +78,10 @@ ClangTextMark::ClangTextMark(const QString &fileName, int lineNumber, ClangBackE setIcon(iconForSeverity(severity)); } +ClangTextMark::ClangTextMark(ClangTextMark &&other) Q_DECL_NOEXCEPT + : TextMark(std::move(other)) +{ +} + } // namespace ClangCodeModel |