File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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
5555class GalleyVectorStr : public GalleyVectorBase
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
You can’t perform that action at this time.
0 commit comments