mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 23:13:48 +01:00
Return const char
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
0263a7fa84
commit
b64b7132a2
@ -409,7 +409,7 @@ zathura_plugin_set_name(zathura_plugin_t* plugin, const char* name)
|
||||
}
|
||||
}
|
||||
|
||||
char*
|
||||
const char*
|
||||
zathura_plugin_get_name(zathura_plugin_t* plugin)
|
||||
{
|
||||
if (plugin != NULL) {
|
||||
|
@ -200,7 +200,7 @@ zathura_get_version_string(zathura_t* zathura, bool markup)
|
||||
girara_list_t* plugins = zathura_plugin_manager_get_plugins(zathura->plugins.manager);
|
||||
if (plugins != NULL) {
|
||||
GIRARA_LIST_FOREACH(plugins, zathura_plugin_t*, iter, plugin) {
|
||||
char* name = zathura_plugin_get_name(plugin);
|
||||
const char* name = zathura_plugin_get_name(plugin);
|
||||
zathura_plugin_version_t version = zathura_plugin_get_version(plugin);
|
||||
g_string_append_printf(string, format,
|
||||
(name == NULL) ? "-" : name,
|
||||
|
Loading…
Reference in New Issue
Block a user