Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd8f0863

Browse files
Do not keep copy of the stamp as s_stamp, properly cast stamp instead when needed
1 parent09ca565 commitd8f0863

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

‎blobstamper/galley.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
*
3-
* Copyright 2021 Nikolay Shaplov (Postgres Professional)
3+
* Copyright 2021-2023 Nikolay Shaplov (Postgres Professional)
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -56,7 +56,7 @@ GalleyVectorStr::ExtractStrVector(Blob &blob)
5656

5757
for(int i =0; i<blobs.size(); i++)
5858
{
59-
res[i] =s_stamp.ExtractStr(blobs[i]);
59+
res[i] =(dynamic_cast<StampBaseStr &>(stamp)).ExtractStr(blobs[i]);// We know for sure that stamp is StampBaseStr
6060
}
6161
return res;
6262
}

‎blobstamper/galley.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
*
3-
* Copyright 2021 Nikolay Shaplov (Postgres Professional)
3+
* Copyright 2021-2023 Nikolay Shaplov (Postgres Professional)
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -54,9 +54,8 @@ class GalleyVectorBase : public GalleyBase
5454

5555
classGalleyVectorStr:publicGalleyVectorBase
5656
{
57-
StampBaseStr & s_stamp;
5857
public:
59-
GalleyVectorStr(StampBaseStr & stamp_arg): GalleyVectorBase(stamp_arg), s_stamp(stamp_arg) {};
58+
GalleyVectorStr(StampBaseStr & stamp_arg): GalleyVectorBase(stamp_arg) {};
6059
std::vector<std::string>ExtractStrVector(Blob &blob);
6160
};
6261

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp