diff options
author | Neil <nyamatongwe@gmail.com> | 2019-04-28 09:37:22 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-04-28 09:37:22 +1000 |
commit | 6a542f10f35a7f6182335250ac6fb25dbd230cac (patch) | |
tree | 8579d35a88cfbb6c8644fc938176c22058e85561 /src/Indicator.cxx | |
parent | 8be8298fd9fadccef7caa8cc4232f53a2f4b91fb (diff) | |
download | scintilla-mirror-6a542f10f35a7f6182335250ac6fb25dbd230cac.tar.gz |
Declare reading methods as noexcept where reasonable.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r-- | src/Indicator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx index 8db760f2b..baa7c3bd0 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(std::round(rc.left), std::floor(rc.top), std::round(rc.right), std::floor(rc.bottom)); |