add const to print_in_middle functions
This commit is contained in:
parent
d1e34a5c10
commit
6e9fcd093f
@ -106,7 +106,7 @@ void get_input_and_login() {
|
||||
|
||||
// Original function
|
||||
void print_in_middle(WINDOW *win, int starty, int startx, int width,
|
||||
char *string, chtype color) {
|
||||
const char *string, chtype color) {
|
||||
int length, x, y;
|
||||
float temp;
|
||||
|
||||
@ -131,7 +131,7 @@ void print_in_middle(WINDOW *win, int starty, int startx, int width,
|
||||
|
||||
// Wide character version
|
||||
void wprint_in_middle(WINDOW *win, int starty, int startx, int width,
|
||||
wchar_t *string, chtype color) {
|
||||
const wchar_t *string, chtype color) {
|
||||
int length, x, y;
|
||||
float temp;
|
||||
|
||||
|
@ -5,6 +5,8 @@
|
||||
#ifndef _ba_hf_hg_
|
||||
#define _ba_hf_hg_
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
void safe_exit(int code);
|
||||
std::string bool_to_string(bool bool_in);
|
||||
std::string SoRAuthFile(bool save, std::string data);
|
||||
@ -12,12 +14,12 @@ void get_input_and_login();
|
||||
|
||||
// Original functions
|
||||
void print_in_middle(WINDOW *win, int starty, int startx, int width,
|
||||
char *string, chtype color);
|
||||
const char *string, chtype color);
|
||||
std::string rm_tr_le_whitespace(const std::string &s);
|
||||
|
||||
// Wide character support functions
|
||||
void wprint_in_middle(WINDOW *win, int starty, int startx, int width,
|
||||
wchar_t *string, chtype color);
|
||||
const wchar_t *string, chtype color);
|
||||
std::wstring wrm_tr_le_whitespace(const std::wstring &s);
|
||||
|
||||
// Conversion utilities
|
||||
|
Loading…
x
Reference in New Issue
Block a user