diff options
author | Neil <nyamatongwe@gmail.com> | 2019-03-19 11:52:17 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-03-19 11:52:17 +1100 |
commit | 37e58367e8b48e53032f1849de570668811e81fb (patch) | |
tree | da1df333b21ac0d19600ab4c990c539cda30bed3 /src/ElapsedPeriod.h | |
parent | 79299db113ee3a2390235cf2d81b949076d6a4ad (diff) | |
download | scintilla-mirror-37e58367e8b48e53032f1849de570668811e81fb.tar.gz |
Make constructors of simple classes noexcept.
Diffstat (limited to 'src/ElapsedPeriod.h')
-rw-r--r-- | src/ElapsedPeriod.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ElapsedPeriod.h b/src/ElapsedPeriod.h index 1e2c96eb4..6f8cdabdf 100644 --- a/src/ElapsedPeriod.h +++ b/src/ElapsedPeriod.h @@ -15,7 +15,7 @@ class ElapsedPeriod { std::chrono::high_resolution_clock::time_point tp; public: /// Capture the moment - ElapsedPeriod() : tp(std::chrono::high_resolution_clock::now()) { + ElapsedPeriod() noexcept : tp(std::chrono::high_resolution_clock::now()) { } /// Return duration as floating point seconds double Duration(bool reset=false) { |