mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
Fix range loop warnings in Snap build
This commit is contained in:
@@ -81,7 +81,7 @@ static void t_desktop_application_class_init(
|
|||||||
"activation-token",
|
"activation-token",
|
||||||
"desktop-startup-id",
|
"desktop-startup-id",
|
||||||
};
|
};
|
||||||
for (const auto key : keys) {
|
for (const auto &key : keys) {
|
||||||
const char *token = nullptr;
|
const char *token = nullptr;
|
||||||
g_variant_lookup(platformData, key, "&s", &token);
|
g_variant_lookup(platformData, key, "&s", &token);
|
||||||
if (token) {
|
if (token) {
|
||||||
@@ -307,7 +307,7 @@ void LaunchGApplication() {
|
|||||||
const Gio::Application::type_vec_files &files,
|
const Gio::Application::type_vec_files &files,
|
||||||
const Glib::ustring &hint) {
|
const Glib::ustring &hint) {
|
||||||
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
|
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
|
||||||
for (const auto file : files) {
|
for (const auto &file : files) {
|
||||||
if (file->get_uri_scheme() == "file") {
|
if (file->get_uri_scheme() == "file") {
|
||||||
gSendPaths.append(
|
gSendPaths.append(
|
||||||
QString::fromStdString(file->get_path()));
|
QString::fromStdString(file->get_path()));
|
||||||
|
Reference in New Issue
Block a user