summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-10 10:27:09 +0100
committerraveit65 <[email protected]>2021-03-29 07:53:58 +0200
commit02cf23f7ed09e8c204200152f9dda39970864d39 (patch)
tree776565589b3fa5e6b9995cb743b927525a1c8a6d /libmate-desktop/mate-rr.c
parentb1c408e7c97bb2dc64a3d83b2098dfca14ecb916 (diff)
downloadmate-desktop-02cf23f7ed09e8c204200152f9dda39970864d39.tar.bz2
mate-desktop-02cf23f7ed09e8c204200152f9dda39970864d39.tar.xz
Remove shadow warnings [-Wshadow]
Diffstat (limited to 'libmate-desktop/mate-rr.c')
-rw-r--r--libmate-desktop/mate-rr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libmate-desktop/mate-rr.c b/libmate-desktop/mate-rr.c
index 97859a1..19d25ca 100644
--- a/libmate-desktop/mate-rr.c
+++ b/libmate-desktop/mate-rr.c
@@ -376,9 +376,7 @@ fill_screen_info_from_resources (ScreenInfo *info,
a = g_ptr_array_new ();
for (i = 0; i < resources->ncrtc; ++i)
{
- MateRRCrtc *crtc = crtc_new (info, resources->crtcs[i]);
-
- g_ptr_array_add (a, crtc);
+ g_ptr_array_add (a, crtc_new (info, resources->crtcs[i]));
}
g_ptr_array_add (a, NULL);
info->crtcs = (MateRRCrtc **)g_ptr_array_free (a, FALSE);
@@ -386,9 +384,7 @@ fill_screen_info_from_resources (ScreenInfo *info,
a = g_ptr_array_new ();
for (i = 0; i < resources->noutput; ++i)
{
- MateRROutput *output = output_new (info, resources->outputs[i]);
-
- g_ptr_array_add (a, output);
+ g_ptr_array_add (a, output_new (info, resources->outputs[i]));
}
g_ptr_array_add (a, NULL);
info->outputs = (MateRROutput **)g_ptr_array_free (a, FALSE);