aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-04-28 09:37:22 +1000
committerNeil <nyamatongwe@gmail.com>2019-04-28 09:37:22 +1000
commita62e4cd6be774fe93835f5b2657142dbda8186f3 (patch)
tree5c2f0184e368c62946a37ef4208dcc90f417faaa /src/Indicator.cxx
parentfa93bd28150e92b485ef6f094fda8a1ba5a5ed65 (diff)
downloadscintilla-mirror-a62e4cd6be774fe93835f5b2657142dbda8186f3.tar.gz
Backport: Declare reading methods as noexcept where reasonable.
Backport of changeset 7482:340b721ecdf4.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r--src/Indicator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index 24cd40820..5b1259fb4 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -23,7 +23,7 @@
using namespace Scintilla;
-static PRectangle PixelGridAlign(const PRectangle &rc) {
+static PRectangle PixelGridAlign(const PRectangle &rc) noexcept {
// Move left and right side to nearest pixel to avoid blurry visuals
return PRectangle(round(rc.left), std::floor(rc.top),
round(rc.right), std::floor(rc.bottom));