@@ -37,12 +37,12 @@ class TempSpace : public Firebird::File
3737 TempSpace (MemoryPool& pool, const Firebird::PathName& prefix, bool dynamic = true );
3838 virtual ~TempSpace ();
3939
40- FB_SIZE_T read (offset_t offset, void * buffer, FB_SIZE_T length);
41- FB_SIZE_T write (offset_t offset, const void * buffer, FB_SIZE_T length);
40+ FB_SIZE_T read (offset_t offset, void * buffer, FB_SIZE_T length) override ;
41+ FB_SIZE_T write (offset_t offset, const void * buffer, FB_SIZE_T length) override ;
4242
43- void unlink () {}
43+ void unlink () noexcept override {}
4444
45- offset_t getSize () const
45+ offset_t getSize () const noexcept override
4646 {
4747 return logicalSize;
4848 }
@@ -72,7 +72,7 @@ class TempSpace : public Firebird::File
7272 class Block
7373 {
7474 public:
75- Block (Block* tail, size_t length)
75+ Block (Block* tail, size_t length) noexcept
7676 : next(NULL ), size(length)
7777 {
7878 if (tail)
@@ -87,8 +87,8 @@ class TempSpace : public Firebird::File
8787 virtual FB_SIZE_T read (offset_t offset, void * buffer, FB_SIZE_T length) = 0;
8888 virtual FB_SIZE_T write (offset_t offset, const void * buffer, FB_SIZE_T length) = 0;
8989
90- virtual UCHAR* inMemory (offset_t offset, size_t size) const = 0;
91- virtual bool sameFile (const Firebird::TempFile* file) const = 0;
90+ virtual UCHAR* inMemory (offset_t offset, size_t size) const noexcept = 0;
91+ virtual bool sameFile (const Firebird::TempFile* file) const noexcept = 0;
9292
9393 Block *prev;
9494 Block *next;
@@ -98,7 +98,7 @@ class TempSpace : public Firebird::File
9898 class MemoryBlock : public Block
9999 {
100100 public:
101- MemoryBlock (UCHAR* memory, Block* tail, size_t length)
101+ MemoryBlock (UCHAR* memory, Block* tail, size_t length) noexcept
102102 : Block(tail, length), ptr(memory)
103103 {}
104104
@@ -107,18 +107,18 @@ class TempSpace : public Firebird::File
107107 delete[] ptr;
108108 }
109109
110- FB_SIZE_T read (offset_t offset, void * buffer, FB_SIZE_T length);
111- FB_SIZE_T write (offset_t offset, const void * buffer, FB_SIZE_T length);
110+ FB_SIZE_T read (offset_t offset, void * buffer, FB_SIZE_T length) override ;
111+ FB_SIZE_T write (offset_t offset, const void * buffer, FB_SIZE_T length) override ;
112112
113- UCHAR* inMemory (offset_t offset, size_t _size) const
113+ UCHAR* inMemory (offset_t offset, size_t _size) const noexcept override
114114 {
115115 if ((offset < this ->size ) && (offset + _size <= this ->size ))
116116 return ptr + offset;
117117
118118 return NULL ;
119119 }
120120
121- bool sameFile (const Firebird::TempFile*) const
121+ bool sameFile (const Firebird::TempFile*) const noexcept override
122122 {
123123 return false ;
124124 }
@@ -130,7 +130,7 @@ class TempSpace : public Firebird::File
130130 class InitialBlock : public MemoryBlock
131131 {
132132 public:
133- InitialBlock (UCHAR* memory, size_t length)
133+ InitialBlock (UCHAR* memory, size_t length) noexcept
134134 : MemoryBlock(memory, NULL , length)
135135 {}
136136
@@ -155,15 +155,15 @@ class TempSpace : public Firebird::File
155155
156156 ~FileBlock () {}
157157
158- FB_SIZE_T read (offset_t offset, void * buffer, FB_SIZE_T length);
159- FB_SIZE_T write (offset_t offset, const void * buffer, FB_SIZE_T length);
158+ FB_SIZE_T read (offset_t offset, void * buffer, FB_SIZE_T length) override ;
159+ FB_SIZE_T write (offset_t offset, const void * buffer, FB_SIZE_T length) override ;
160160
161- UCHAR* inMemory (offset_t /* offset*/ , size_t /* a_size*/ ) const
161+ UCHAR* inMemory (offset_t /* offset*/ , size_t /* a_size*/ ) const noexcept override
162162 {
163163 return NULL ;
164164 }
165165
166- bool sameFile (const Firebird::TempFile* aFile) const
166+ bool sameFile (const Firebird::TempFile* aFile) const noexcept override
167167 {
168168 return (aFile == this ->file );
169169 }
@@ -182,7 +182,7 @@ class TempSpace : public Firebird::File
182182 class Segment
183183 {
184184 public:
185- Segment (offset_t aPosition, offset_t aSize) :
185+ Segment (offset_t aPosition, offset_t aSize) noexcept :
186186 position (aPosition), size(aSize), prev(nullptr ), next(nullptr )
187187 {}
188188
@@ -191,7 +191,7 @@ class TempSpace : public Firebird::File
191191 Segment* prev;
192192 Segment* next;
193193
194- static const offset_t & generate (const void * /* sender*/ , const Segment* segment)
194+ static const offset_t & generate (const void * /* sender*/ , const Segment* segment) noexcept
195195 {
196196 return segment->position ;
197197 }
@@ -200,17 +200,17 @@ class TempSpace : public Firebird::File
200200 class SegmentsStack
201201 {
202202 public:
203- SegmentsStack () : size(0 ), tail(nullptr )
203+ SegmentsStack () noexcept : size(0 ), tail(nullptr )
204204 {}
205205
206- SegmentsStack (offset_t aSize, Segment* aSegment) :
206+ SegmentsStack (offset_t aSize, Segment* aSegment) noexcept :
207207 size (aSize), tail(aSegment)
208208 {}
209209
210210 offset_t size;
211211 Segment* tail;
212212
213- static const offset_t & generate (const void * /* sender*/ , const SegmentsStack& segment)
213+ static const offset_t & generate (const void * /* sender*/ , const SegmentsStack& segment) noexcept
214214 {
215215 return segment.size ;
216216 }
0 commit comments