aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-03-03 15:35:54 +1100
committerNeil <nyamatongwe@gmail.com>2019-03-03 15:35:54 +1100
commit590b1615aaaa20916de1b5f25fc1050395f7312f (patch)
treecf3c7425ae7814cd71fe54f8f94550867375bb94 /src/EditView.h
parent954d09cd99be5655bcc9bac8e80ca76994779db8 (diff)
downloadscintilla-mirror-590b1615aaaa20916de1b5f25fc1050395f7312f.tar.gz
Backport: Use noexcept where reasonable.
Backport of changeset 7287:0272b3c3a03b.
Diffstat (limited to 'src/EditView.h')
-rw-r--r--src/EditView.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/EditView.h b/src/EditView.h
index 300dc92a9..3addfbab8 100644
--- a/src/EditView.h
+++ b/src/EditView.h
@@ -14,7 +14,7 @@ struct PrintParameters {
int magnification;
int colourMode;
WrapMode wrapState;
- PrintParameters();
+ PrintParameters() noexcept;
};
/**
@@ -97,11 +97,11 @@ public:
void operator=(EditView &&) = delete;
virtual ~EditView();
- bool SetTwoPhaseDraw(bool twoPhaseDraw);
- bool SetPhasesDraw(int phases);
- bool LinesOverlap() const;
+ bool SetTwoPhaseDraw(bool twoPhaseDraw) noexcept;
+ bool SetPhasesDraw(int phases) noexcept;
+ bool LinesOverlap() const noexcept;
- void ClearAllTabstops();
+ void ClearAllTabstops() noexcept;
XYPOSITION NextTabstopPos(Sci::Line line, XYPOSITION x, XYPOSITION tabWidth) const;
bool ClearTabstops(Sci::Line line);
bool AddTabstop(Sci::Line line, int x);
@@ -165,7 +165,7 @@ public:
AutoLineLayout(AutoLineLayout &&) = delete;
AutoLineLayout &operator=(const AutoLineLayout &) = delete;
AutoLineLayout &operator=(AutoLineLayout &&) = delete;
- ~AutoLineLayout() {
+ ~AutoLineLayout() noexcept {
llc.Dispose(ll);
ll = nullptr;
}
@@ -175,7 +175,7 @@ public:
operator LineLayout *() const noexcept {
return ll;
}
- void Set(LineLayout *ll_) {
+ void Set(LineLayout *ll_) noexcept {
llc.Dispose(ll);
ll = ll_;
}