mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-22 07:23:49 -07:00
crashreporter: avoid clang warning
This commit is contained in:
@@ -122,9 +122,9 @@ void NCrashReporter::createAndSaveCrash(int sig) {
|
|||||||
if (g_pPluginSystem && g_pPluginSystem->pluginCount() > 0) {
|
if (g_pPluginSystem && g_pPluginSystem->pluginCount() > 0) {
|
||||||
finalCrashReport += "Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.\nPlugins:\n";
|
finalCrashReport += "Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.\nPlugins:\n";
|
||||||
|
|
||||||
size_t count = g_pPluginSystem->pluginCount();
|
const size_t count = g_pPluginSystem->pluginCount();
|
||||||
CPlugin* plugins[count] = {nullptr};
|
std::vector<CPlugin*> plugins(count);
|
||||||
g_pPluginSystem->sigGetPlugins(plugins, count);
|
g_pPluginSystem->sigGetPlugins(plugins.data(), count);
|
||||||
|
|
||||||
for (size_t i = 0; i < count; i++) {
|
for (size_t i = 0; i < count; i++) {
|
||||||
auto p = plugins[i];
|
auto p = plugins[i];
|
||||||
|
Reference in New Issue
Block a user