From 0deb1611f8606e428b0865ae3d710721029ef337 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Wed, 10 Aug 2005 09:21:01 +0000 Subject: [PATCH] Change type of the AddLine() parameter: use const modifier. Patch from Max Alekseyev --- golded3/geline.cpp | 4 ++-- goldlib/gmb3/gmo_msg.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/golded3/geline.cpp b/golded3/geline.cpp index 8aecdc4..c40be70 100644 --- a/golded3/geline.cpp +++ b/golded3/geline.cpp @@ -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); } diff --git a/goldlib/gmb3/gmo_msg.h b/goldlib/gmb3/gmo_msg.h index af8f5a3..8e1defe 100644 --- a/goldlib/gmb3/gmo_msg.h +++ b/goldlib/gmb3/gmo_msg.h @@ -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);