Change type of the AddLine() parameter: use const modifier. Patch from Max Alekseyev <relf@os2.ru>
This commit is contained in:
parent
7453fd5c79
commit
0deb1611f8
@ -2929,7 +2929,7 @@ Line* LastLine(Line* line) {
|
|||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
Line* AddLine(Line* line, char* buf, int where) {
|
Line* AddLine(Line* line, const char* buf, int where) {
|
||||||
|
|
||||||
Line* newline = new Line(buf);
|
Line* newline = new Line(buf);
|
||||||
throw_xnew(newline);
|
throw_xnew(newline);
|
||||||
@ -2942,7 +2942,7 @@ Line* AddLine(Line* line, char* buf, int where) {
|
|||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
Line* AddLine(Line* line, char* buf) {
|
Line* AddLine(Line* line, const char* buf) {
|
||||||
|
|
||||||
return AddLine(line, buf, DIR_BELOW);
|
return AddLine(line, buf, DIR_BELOW);
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@ public:
|
|||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
Line* AddLineF(Line*& line, const char* format, ...) __attribute__ ((format (printf, 2, 3)));
|
Line* AddLineF(Line*& line, const char* format, ...) __attribute__ ((format (printf, 2, 3)));
|
||||||
Line* AddLine(Line* line, char* buf);
|
Line* AddLine(Line* line, const char* buf);
|
||||||
Line* AddHexdump(Line*& line, void* data, size_t datalen);
|
Line* AddHexdump(Line*& line, void* data, size_t datalen);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user