Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d21744

Browse files
Do not save stamp pointer in parent class. We do not need it there, and it caues Sanitizers problems
1 parent 0b4ab4e commit 7d21744

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

blobstamper/stamp_json.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class StampJSONString: public virtual StampDictT<DictLCAlphaSmall>
6464

6565
class StampJSONArray: public StampStrEnumerator
6666
{
67-
private:
6867
public:
6968
StampJSONArray(std::shared_ptr<PoolPickerStamp> picker):
7069
StampStrEnumerator(picker, ", ", "[", "]") {};
@@ -85,11 +84,9 @@ class StampJSONHashEl: public StampBaseStr
8584

8685
class StampJSONHash: public StampStrEnumerator
8786
{
88-
private:
89-
std::shared_ptr<StampJSONHashEl> stamp_el;
9087
public:
9188
StampJSONHash(std::shared_ptr<PoolPickerStamp> picker):
92-
StampStrEnumerator(stamp_el = std::make_shared<StampJSONHashEl>(picker), ", ", "{", "}") {};
89+
StampStrEnumerator(std::make_shared<StampJSONHashEl>(picker), ", ", "{", "}") {};
9390
};
9491

9592

0 commit comments

Comments
 (0)