13
0

NO-OP: whitespace

This commit is contained in:
Robin Gareus 2019-05-25 01:20:17 +02:00
parent a0b5616c85
commit 02c698ed85
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1343,7 +1343,7 @@ void
PluginManager::load_statuses () PluginManager::load_statuses ()
{ {
std::string path; std::string path;
find_file (plugin_metadata_search_path(), "plugin_statuses", path); //note: if no user folder is found, this will find the resources path find_file (plugin_metadata_search_path(), "plugin_statuses", path); // note: if no user folder is found, this will find the resources path
gchar *fbuf = NULL; gchar *fbuf = NULL;
if (!g_file_get_contents (path.c_str(), &fbuf, NULL, NULL)) { if (!g_file_get_contents (path.c_str(), &fbuf, NULL, NULL)) {
return; return;
@ -1369,7 +1369,6 @@ PluginManager::load_statuses ()
ifs >> sstatus; ifs >> sstatus;
if (!ifs) { if (!ifs) {
break; break;
} }
/* rest of the line is the plugin ID */ /* rest of the line is the plugin ID */
@ -1386,8 +1385,7 @@ PluginManager::load_statuses ()
} else if (sstatus == "Hidden") { } else if (sstatus == "Hidden") {
status = Hidden; status = Hidden;
} else { } else {
error << string_compose (_("unknown plugin status type \"%1\" - all entries ignored"), sstatus) error << string_compose (_("unknown plugin status type \"%1\" - all entries ignored"), sstatus) << endmsg;
<< endmsg;
statuses.clear (); statuses.clear ();
break; break;
} }
@ -1523,7 +1521,7 @@ PluginManager::save_plugin_order_file (XMLNode &elem) const
if (!tree.write (path)) { if (!tree.write (path)) {
error << string_compose (_("Could not save Plugin Order info to %1"), path) << endmsg; error << string_compose (_("Could not save Plugin Order info to %1"), path) << endmsg;
} }
tree.set_root (0); //note: must disconnect the elem from XMLTree, or it will try to delete memory it didn't allocate tree.set_root (0); // note: must disconnect the elem from XMLTree, or it will try to delete memory it didn't allocate
} }