Skip to content

Commit 3e9bf73

Browse files
committed
noexcept in timestamp
1 parent 7fbc34b commit 3e9bf73

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/common/classes/timestamp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
namespace Firebird {
4141

42-
void TimeStamp::report_error(const char* msg)
42+
[[noreturn]] void TimeStamp::report_error(const char* msg)
4343
{
4444
system_call_failed::raise(msg);
4545
}

src/common/classes/timestamp.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ class TimeStamp : public NoThrowTimeStamp
4040
{
4141
public:
4242
// Constructors
43-
TimeStamp()
43+
TimeStamp() noexcept
4444
: NoThrowTimeStamp()
4545
{}
4646

47-
TimeStamp(const ISC_TIMESTAMP& from)
47+
TimeStamp(const ISC_TIMESTAMP& from) noexcept
4848
: NoThrowTimeStamp(from)
4949
{}
5050

51-
TimeStamp(const NoThrowTimeStamp& from)
51+
TimeStamp(const NoThrowTimeStamp& from) noexcept
5252
: NoThrowTimeStamp(from)
5353
{}
5454

55-
TimeStamp(ISC_DATE date, ISC_TIME time)
55+
TimeStamp(ISC_DATE date, ISC_TIME time) noexcept
5656
: NoThrowTimeStamp(date, time)
5757
{}
5858

59-
explicit TimeStamp(const struct tm& times, int fractions = 0)
59+
explicit TimeStamp(const struct tm& times, int fractions = 0) noexcept
6060
: NoThrowTimeStamp(times, fractions)
6161
{}
6262

@@ -73,7 +73,7 @@ class TimeStamp : public NoThrowTimeStamp
7373
}
7474

7575
private:
76-
static void report_error(const char* msg);
76+
[[noreturn]] static void report_error(const char* msg);
7777
};
7878

7979
} // namespace Firebird

0 commit comments

Comments
 (0)