From 590b1615aaaa20916de1b5f25fc1050395f7312f Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 3 Mar 2019 15:35:54 +1100 Subject: Backport: Use noexcept where reasonable. Backport of changeset 7287:0272b3c3a03b. --- src/EditView.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/EditView.h') 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_; } -- cgit v1.2.3