Make parameter const

This commit is contained in:
Johannes Altmanninger 2022-08-06 21:56:03 +02:00
parent 021da117cf
commit 3165f28a3c

View File

@ -1777,7 +1777,7 @@ void trim_selections(Context& context, NormalParams)
selections.remove(i);
}
SelectionList read_selections_from_register(char reg, Context& context)
SelectionList read_selections_from_register(char reg, const Context& context)
{
if (not is_basic_alpha(reg) and reg != '^')
throw runtime_error("selections can only be saved to the '^' and alphabetic registers");