Skip to content

Commit 5b9ca7a

Browse files
committed
const + noexcept + final in Interface
1 parent c96d556 commit 5b9ca7a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/include/firebird/Interface.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct PerformanceInfo
9393
ISC_INT64 pin_records_fetched; // records fetched from statement/procedure
9494
};
9595

96-
inline const intptr_t* stubError()
96+
inline const intptr_t* stubError() noexcept
9797
{
9898
static const intptr_t codes[] = {
9999
isc_arg_gds, isc_random,
@@ -153,7 +153,7 @@ namespace Firebird
153153
}
154154

155155
public:
156-
IStatus* getStatus() const
156+
IStatus* getStatus() const noexcept
157157
{
158158
return status;
159159
}
@@ -166,7 +166,7 @@ namespace Firebird
166166
class BaseStatusWrapper : public IStatusImpl<T, T>
167167
{
168168
public:
169-
BaseStatusWrapper(IStatus* aStatus)
169+
BaseStatusWrapper(IStatus* aStatus) noexcept
170170
: status(aStatus),
171171
dirty(false)
172172
{
@@ -188,7 +188,7 @@ namespace Firebird
188188
}
189189
catch (...)
190190
{
191-
ISC_STATUS statusVector[] = {
191+
const ISC_STATUS statusVector[] = {
192192
isc_arg_gds, isc_random,
193193
isc_arg_string, (ISC_STATUS) "Unrecognized C++ exception",
194194
isc_arg_end};
@@ -210,7 +210,7 @@ namespace Firebird
210210
}
211211
}
212212

213-
bool isDirty() const
213+
bool isDirty() const noexcept
214214
{
215215
return dirty;
216216
}
@@ -308,31 +308,31 @@ namespace Firebird
308308
IStatus* status;
309309
bool dirty;
310310

311-
static const intptr_t* cleanStatus()
311+
static const intptr_t* cleanStatus() noexcept
312312
{
313-
static intptr_t clean[3] = {1, 0, 0};
313+
static const intptr_t clean[3] = {1, 0, 0};
314314
return clean;
315315
}
316316
};
317317

318-
class CheckStatusWrapper : public BaseStatusWrapper<CheckStatusWrapper>
318+
class CheckStatusWrapper final : public BaseStatusWrapper<CheckStatusWrapper>
319319
{
320320
public:
321-
CheckStatusWrapper(IStatus* aStatus)
321+
CheckStatusWrapper(IStatus* aStatus) noexcept
322322
: BaseStatusWrapper(aStatus)
323323
{
324324
}
325325

326326
public:
327-
static void checkException(CheckStatusWrapper* /* status */)
327+
static void checkException(CheckStatusWrapper* /* status */) noexcept
328328
{
329329
}
330330
};
331331

332332
class ThrowStatusWrapper : public BaseStatusWrapper<ThrowStatusWrapper>
333333
{
334334
public:
335-
ThrowStatusWrapper(IStatus* aStatus)
335+
ThrowStatusWrapper(IStatus* aStatus) noexcept
336336
: BaseStatusWrapper(aStatus)
337337
{
338338
}

0 commit comments

Comments
 (0)