@@ -55,7 +55,7 @@ class Dispatcher;
55
55
class YObject
56
56
{
57
57
public:
58
- YObject ()
58
+ YObject () noexcept
59
59
: handle(0 )
60
60
{
61
61
}
@@ -131,8 +131,8 @@ class YHelper : public Firebird::RefCntIface<Intf>, public YObject
131
131
typedef typename Intf::Declaration NextInterface;
132
132
typedef YAttachment YRef;
133
133
134
- static const unsigned DF_RELEASE = 0x1 ;
135
- static const unsigned DF_KEEP_NEXT = 0x2 ;
134
+ static constexpr unsigned DF_RELEASE = 0x1 ;
135
+ static constexpr unsigned DF_KEEP_NEXT = 0x2 ;
136
136
137
137
explicit YHelper (NextInterface* aNext, const char * m = NULL )
138
138
:
@@ -178,12 +178,12 @@ template <class YT>
178
178
class AtomicYPtr
179
179
{
180
180
public:
181
- AtomicYPtr (YT* v)
181
+ AtomicYPtr (YT* v) noexcept
182
182
{
183
183
atmPtr.store (v, std::memory_order_relaxed);
184
184
}
185
185
186
- YT* get ()
186
+ YT* get () noexcept
187
187
{
188
188
return atmPtr.load (std::memory_order_relaxed);
189
189
}
@@ -207,7 +207,7 @@ class YEvents final :
207
207
public YHelper<YEvents, Firebird::IEventsImpl<YEvents, Firebird::CheckStatusWrapper> >
208
208
{
209
209
public:
210
- static const ISC_STATUS ERROR_CODE = isc_bad_events_handle;
210
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_events_handle;
211
211
212
212
YEvents (YAttachment* aAttachment, Firebird::IEvents* aNext, Firebird::IEventCallback* aCallback);
213
213
@@ -230,7 +230,7 @@ class YRequest final :
230
230
public YHelper<YRequest, Firebird::IRequestImpl<YRequest, Firebird::CheckStatusWrapper> >
231
231
{
232
232
public:
233
- static const ISC_STATUS ERROR_CODE = isc_bad_req_handle;
233
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_req_handle;
234
234
235
235
YRequest (YAttachment* aAttachment, Firebird::IRequest* aNext);
236
236
@@ -260,7 +260,7 @@ class YTransaction final :
260
260
public YHelper<YTransaction, Firebird::ITransactionImpl<YTransaction, Firebird::CheckStatusWrapper> >
261
261
{
262
262
public:
263
- static const ISC_STATUS ERROR_CODE = isc_bad_trans_handle;
263
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_trans_handle;
264
264
265
265
YTransaction (YAttachment* aAttachment, Firebird::ITransaction* aNext);
266
266
@@ -316,7 +316,7 @@ class YBlob final :
316
316
public YHelper<YBlob, Firebird::IBlobImpl<YBlob, Firebird::CheckStatusWrapper> >
317
317
{
318
318
public:
319
- static const ISC_STATUS ERROR_CODE = isc_bad_segstr_handle;
319
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_segstr_handle;
320
320
321
321
YBlob (YAttachment* aAttachment, YTransaction* aTransaction, Firebird::IBlob* aNext);
322
322
@@ -344,7 +344,7 @@ class YResultSet final :
344
344
public YHelper<YResultSet, Firebird::IResultSetImpl<YResultSet, Firebird::CheckStatusWrapper> >
345
345
{
346
346
public:
347
- static const ISC_STATUS ERROR_CODE = isc_bad_result_set;
347
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_result_set;
348
348
349
349
YResultSet (YAttachment* anAttachment, YTransaction* aTransaction, Firebird::IResultSet* aNext);
350
350
YResultSet (YAttachment* anAttachment, YTransaction* aTransaction, YStatement* aStatement,
@@ -379,7 +379,7 @@ class YBatch final :
379
379
public YHelper<YBatch, Firebird::IBatchImpl<YBatch, Firebird::CheckStatusWrapper> >
380
380
{
381
381
public:
382
- static const ISC_STATUS ERROR_CODE = isc_bad_result_set; // isc_bad_batch
382
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_result_set; // isc_bad_batch
383
383
384
384
YBatch (YAttachment* anAttachment, Firebird::IBatch* aNext);
385
385
@@ -411,7 +411,7 @@ class YReplicator final :
411
411
public YHelper<YReplicator, Firebird::IReplicatorImpl<YReplicator, Firebird::CheckStatusWrapper> >
412
412
{
413
413
public:
414
- static const ISC_STATUS ERROR_CODE = isc_bad_repl_handle;
414
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_repl_handle;
415
415
416
416
YReplicator (YAttachment* anAttachment, Firebird::IReplicator* aNext);
417
417
@@ -430,7 +430,7 @@ class YReplicator final :
430
430
class YMetadata
431
431
{
432
432
public:
433
- explicit YMetadata (bool in)
433
+ explicit YMetadata (bool in) noexcept
434
434
: flag(false ), input(in)
435
435
{ }
436
436
@@ -446,7 +446,7 @@ class YStatement final :
446
446
public YHelper<YStatement, Firebird::IStatementImpl<YStatement, Firebird::CheckStatusWrapper> >
447
447
{
448
448
public:
449
- static const ISC_STATUS ERROR_CODE = isc_bad_stmt_handle;
449
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_stmt_handle;
450
450
451
451
YStatement (YAttachment* aAttachment, Firebird::IStatement* aNext);
452
452
@@ -494,7 +494,7 @@ class YStatement final :
494
494
class EnterCount
495
495
{
496
496
public:
497
- EnterCount ()
497
+ EnterCount () noexcept
498
498
: enterCount(0 )
499
499
{}
500
500
@@ -512,15 +512,15 @@ class YAttachment final :
512
512
public EnterCount
513
513
{
514
514
public:
515
- static const ISC_STATUS ERROR_CODE = isc_bad_db_handle;
515
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_db_handle;
516
516
517
517
YAttachment (Firebird::IProvider* aProvider, Firebird::IAttachment* aNext,
518
518
const Firebird::PathName& aDbPath);
519
519
~YAttachment ();
520
520
521
521
void destroy (unsigned dstrFlags) override ;
522
522
void shutdown ();
523
- isc_db_handle& getHandle ();
523
+ isc_db_handle& getHandle () noexcept ;
524
524
void getOdsVersion (USHORT* majorVersion, USHORT* minorVersion);
525
525
526
526
// IAttachment implementation
@@ -610,14 +610,14 @@ class YService final :
610
610
public EnterCount
611
611
{
612
612
public:
613
- static const ISC_STATUS ERROR_CODE = isc_bad_svc_handle;
613
+ static constexpr ISC_STATUS ERROR_CODE = isc_bad_svc_handle;
614
614
615
615
YService (Firebird::IProvider* aProvider, Firebird::IService* aNext, bool utf8, Dispatcher* yProvider);
616
616
~YService ();
617
617
618
618
void shutdown ();
619
619
void destroy (unsigned dstrFlags) override ;
620
- isc_svc_handle& getHandle ();
620
+ isc_svc_handle& getHandle () noexcept ;
621
621
622
622
// IService implementation
623
623
void detach (Firebird::CheckStatusWrapper* status) override ;
@@ -648,7 +648,7 @@ class Dispatcher final :
648
648
public Firebird::StdPlugin<Firebird::IProviderImpl<Dispatcher, Firebird::CheckStatusWrapper> >
649
649
{
650
650
public:
651
- Dispatcher ()
651
+ Dispatcher () noexcept
652
652
: cryptCallback(NULL )
653
653
{ }
654
654
@@ -663,7 +663,7 @@ class Dispatcher final :
663
663
void setDbCryptCallback (Firebird::CheckStatusWrapper* status,
664
664
Firebird::ICryptKeyCallback* cryptCallback) override ;
665
665
666
- void destroy (unsigned )
666
+ void destroy (unsigned ) noexcept
667
667
{ }
668
668
669
669
public:
0 commit comments