aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangtextmark.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@theqtcompany.com>2015-09-01 10:10:20 +0200
committerDavid Schulz <david.schulz@theqtcompany.com>2015-09-01 11:38:16 +0000
commit610ff191afe7b550586a72a8a9f12cf0c6c84273 (patch)
treec78395da473247c8ec5ffe121dde665fd3ced25b /src/plugins/clangcodemodel/clangtextmark.h
parent1c06cb1e8a7db45d57c43230bd180b34c4a129af (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 <christian.stenger@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/clangcodemodel/clangtextmark.h')
-rw-r--r--src/plugins/clangcodemodel/clangtextmark.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangtextmark.h b/src/plugins/clangcodemodel/clangtextmark.h
index fe55a9d56d..5d7752ad43 100644
--- a/src/plugins/clangcodemodel/clangtextmark.h
+++ b/src/plugins/clangcodemodel/clangtextmark.h
@@ -41,6 +41,11 @@ class ClangTextMark : public TextEditor::TextMark
{
public:
ClangTextMark(const QString &fileName, int lineNumber, ClangBackEnd::DiagnosticSeverity severity);
+
+ ClangTextMark(ClangTextMark &&other) Q_DECL_NOEXCEPT;
+
+ ClangTextMark(ClangTextMark &other) = delete;
+ ClangTextMark &operator=(ClangTextMark &other) = delete;
};
} // namespace ClangCodeModel