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

Commite167e6d

Browse files
Get rid of StampUnbounded base class. It makes code more comples, instead of making it more simple
1 parentc9a00e2 commite167e6d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

‎blobstamper/stamp.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,4 @@ StampBaseV<T>::ExtractBin(Blob &blob)
107107
return v;
108108
}
109109

110-
classStampUnbounded :publicvirtual StampBase
111-
{
112-
protected:
113-
int min_size;
114-
public:
115-
virtualintminSize()override {return min_size;}
116-
virtualintmaxSize()override {return -1;}
117-
};
118-
119110
#endif/* STAMP_H*/

‎t/test-chars-stamps.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ StampSeveralChars::ExtractStr(Blob &blob)
7474
return res;
7575
}
7676

77-
classStampTwoCharsList:publicStampUnbounded,publicStampBaseStr
77+
/*****************************************************************************/
78+
classStampTwoCharsList:publicStampBaseStr
7879
{
7980
protected:
8081
StampTwoChars el_stamp;
@@ -84,6 +85,7 @@ class StampTwoCharsList: public StampUnbounded, public StampBaseStr
8485
StampTwoCharsList(): el_stamp {}, galley {el_stamp} {};
8586

8687
virtualintminSize()override {return el_stamp.minSize();};
88+
virtualintmaxSize()override {return -1;};
8789
};
8890

8991
std::string

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp