mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
Const correctness changes
This commit is contained in:
4
env.cpp
4
env.cpp
@@ -1143,7 +1143,7 @@ env_var_t env_get_string( const wchar_t *key )
|
||||
if( wcscmp( key, L"history" ) == 0 )
|
||||
{
|
||||
wcstring result;
|
||||
wchar_t *current;
|
||||
const wchar_t *current;
|
||||
int i;
|
||||
int add_current=0;
|
||||
|
||||
@@ -1251,7 +1251,7 @@ const wchar_t *env_get( const wchar_t *key )
|
||||
|
||||
if( wcscmp( key, L"history" ) == 0 )
|
||||
{
|
||||
wchar_t *current;
|
||||
const wchar_t *current;
|
||||
dyn_var.clear();
|
||||
|
||||
current = reader_get_buffer();
|
||||
|
||||
Reference in New Issue
Block a user