mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 12:09:48 +01:00
crashreporter: avoid clang warning
This commit is contained in:
parent
c106f454c1
commit
0a27af8cd1
1 changed files with 3 additions and 3 deletions
|
@ -122,9 +122,9 @@ void NCrashReporter::createAndSaveCrash(int sig) {
|
|||
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";
|
||||
|
||||
size_t count = g_pPluginSystem->pluginCount();
|
||||
CPlugin* plugins[count] = {nullptr};
|
||||
g_pPluginSystem->sigGetPlugins(plugins, count);
|
||||
const size_t count = g_pPluginSystem->pluginCount();
|
||||
std::vector<CPlugin*> plugins(count);
|
||||
g_pPluginSystem->sigGetPlugins(plugins.data(), count);
|
||||
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
auto p = plugins[i];
|
||||
|
|
Loading…
Reference in a new issue