Change type of the AddLine() parameter: use const modifier. Patch from Max Alekseyev <relf@os2.ru>

This commit is contained in:
Stas Degteff 2005-08-10 09:21:01 +00:00
parent 7453fd5c79
commit 0deb1611f8
2 changed files with 3 additions and 3 deletions

View File

@ -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);
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);
}

View File

@ -171,7 +171,7 @@ public:
// ------------------------------------------------------------------
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);