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
commite55ed4dd7a0caf0b4a6fdb4e6e2b30e159e772d2 (patch)
tree0e16ee5421bb805ee7f330442c761d1332db8fee /src/EditView.h
parentcb1710ea96ba303fcf62be5911c54137238906ce (diff)
downloadscintilla-mirror-e55ed4dd7a0caf0b4a6fdb4e6e2b30e159e772d2.tar.gz
Use noexcept where reasonable.
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 f81634cac..90771c2ba 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);
@@ -167,7 +167,7 @@ public:
AutoLineLayout(AutoLineLayout &&) = delete;
AutoLineLayout &operator=(const AutoLineLayout &) = delete;
AutoLineLayout &operator=(AutoLineLayout &&) = delete;
- ~AutoLineLayout() {
+ ~AutoLineLayout() noexcept {
llc.Dispose(ll);
ll = nullptr;
}
@@ -177,7 +177,7 @@ public:
operator LineLayout *() const noexcept {
return ll;
}
- void Set(LineLayout *ll_) {
+ void Set(LineLayout *ll_) noexcept {
llc.Dispose(ll);
ll = ll_;
}