mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix range loop warnings in Snap build
This commit is contained in:
parent
2f0d14bd35
commit
899ab9a16a
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ static void t_desktop_application_class_init(
|
|||
"activation-token",
|
||||
"desktop-startup-id",
|
||||
};
|
||||
for (const auto key : keys) {
|
||||
for (const auto &key : keys) {
|
||||
const char *token = nullptr;
|
||||
g_variant_lookup(platformData, key, "&s", &token);
|
||||
if (token) {
|
||||
|
@ -307,7 +307,7 @@ void LaunchGApplication() {
|
|||
const Gio::Application::type_vec_files &files,
|
||||
const Glib::ustring &hint) {
|
||||
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
|
||||
for (const auto file : files) {
|
||||
for (const auto &file : files) {
|
||||
if (file->get_uri_scheme() == "file") {
|
||||
gSendPaths.append(
|
||||
QString::fromStdString(file->get_path()));
|
||||
|
|
Loading…
Add table
Reference in a new issue