Skip to content

Commit 7533690

Browse files
marat-iskakovMaratIskakov
andauthored
Minor static analysis fixes (#8195)
Co-authored-by: MaratIskakov <maratiskakov@10.0.2.15>
1 parent 5bb788d commit 7533690

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/common/UtilSvc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class UtilSvc : public Firebird::GlobalStorage
6666
: mutex(nullptr), status(nullptr), uSvc(nullptr)
6767
{ }
6868

69-
StatusAccessor(StatusAccessor&& sa)
69+
StatusAccessor(StatusAccessor&& sa) noexcept
7070
: mutex(sa.mutex), status(sa.status), uSvc(sa.uSvc)
7171
{
7272
sa.mutex = nullptr;

src/common/classes/auto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class AutoPtr
125125
return *this;
126126
}
127127

128-
AutoPtr& operator=(AutoPtr&& r)
128+
AutoPtr& operator=(AutoPtr&& r) noexcept
129129
{
130130
if (this != &r)
131131
{

src/common/classes/stack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ namespace Firebird {
406406
return !(*this == s);
407407
}
408408

409-
iterator& operator= (iterator& i)
409+
iterator& operator= (const iterator& i)
410410
{
411411
stk = i.stk;
412412
elem = i.elem;

src/jrd/recsrc/RecordSource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ namespace Jrd
10101010
}
10111011

10121012
private:
1013-
const void getFrameValue(thread_db* tdbb, Request* request,
1013+
void getFrameValue(thread_db* tdbb, Request* request,
10141014
const Frame* frame, impure_value_ex* impureValue) const;
10151015

10161016
SINT64 locateFrameRange(thread_db* tdbb, Request* request, Impure* impure,

src/jrd/recsrc/WindowedStream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ void WindowedStream::WindowStream::nullRecords(thread_db* tdbb) const
938938
m_next->nullRecords(tdbb);
939939
}
940940

941-
const void WindowedStream::WindowStream::getFrameValue(thread_db* tdbb, Request* request,
941+
void WindowedStream::WindowStream::getFrameValue(thread_db* tdbb, Request* request,
942942
const Frame* frame, impure_value_ex* impureValue) const
943943
{
944944
dsc* desc = EVL_expr(tdbb, request, frame->value);

0 commit comments

Comments
 (0)