From e5fea17b5f641240ac0c56f8ae4c4d7c61839851 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Fri, 11 Dec 2020 20:53:32 -0800
Subject: [PATCH] Constify sbbs_t::center()

---
 src/sbbs3/con_out.cpp | 2 +-
 src/sbbs3/sbbs.h      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/con_out.cpp b/src/sbbs3/con_out.cpp
index 0063c660b5..b0e05b9f99 100644
--- a/src/sbbs3/con_out.cpp
+++ b/src/sbbs3/con_out.cpp
@@ -787,7 +787,7 @@ void sbbs_t::inc_row(int count)
 	}
 }
 
-void sbbs_t::center(char *instr, unsigned int columns)
+void sbbs_t::center(const char *instr, unsigned int columns)
 {
 	char str[256];
 	size_t len;
diff --git a/src/sbbs3/sbbs.h b/src/sbbs3/sbbs.h
index 3f91b74b18..c40c3492b3 100644
--- a/src/sbbs3/sbbs.h
+++ b/src/sbbs3/sbbs.h
@@ -759,7 +759,7 @@ public:
 	int		outchar(enum unicode_codepoint, const char* cp437_fallback = NULL);
 	void	inc_row(int count);
 	void	inc_column(int count);
-	void	center(char *str, unsigned int columns = 0);
+	void	center(const char *str, unsigned int columns = 0);
 	void	wide(const char*);
 	void	clearscreen(long term);
 	void	clearline(void);
-- 
GitLab