gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Gabriele Giacone
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1949-g987e038
Date: Fri, 25 Apr 2014 19:06:39 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  987e0380f3703211b268e90f9ccec73e03cc31ff (commit)
      from  0ef9b8c06701adc3a3d40f3427751d3327e5b02f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=987e0380f3703211b268e90f9ccec73e03cc31ff


commit 987e0380f3703211b268e90f9ccec73e03cc31ff
Author: Gabriele Giacone <address@hidden>
Date:   Fri Apr 25 20:26:04 2014 +0200

    Initialize structs in initialization lists.

diff --git a/gui/fb/fb_glue_agg.cpp b/gui/fb/fb_glue_agg.cpp
index c9e2d1c..991adfb 100644
--- a/gui/fb/fb_glue_agg.cpp
+++ b/gui/fb/fb_glue_agg.cpp
@@ -44,19 +44,19 @@ namespace gui {
 
 //---------------------------------------------
 FBAggGlue::FBAggGlue()
-    : _fd(-1)
+    : _fd(-1),
+      _varinfo(),
+      _fixinfo()
 {
 //    GNASH_REPORT_FUNCTION;
-    memset(&_varinfo, 0, sizeof(fb_var_screeninfo));
-    memset(&_fixinfo, 0, sizeof(fb_fix_screeninfo));
 }
 
 FBAggGlue::FBAggGlue(int fd)
-    : _fd(fd)
+    : _fd(fd),
+      _varinfo(),
+      _fixinfo()
 {
 //    GNASH_REPORT_FUNCTION;    
-    memset(&_varinfo, 0, sizeof(fb_var_screeninfo));
-    memset(&_fixinfo, 0, sizeof(fb_fix_screeninfo));
 }
 
 FBAggGlue::~FBAggGlue()
diff --git a/libdevice/events/EventDevice.cpp b/libdevice/events/EventDevice.cpp
index aae6a0f..50d579c 100644
--- a/libdevice/events/EventDevice.cpp
+++ b/libdevice/events/EventDevice.cpp
@@ -43,11 +43,10 @@ EventDevice::EventDevice()
        keyb_lctrl(false),
        keyb_rctrl(false),
        keyb_lalt(false),
-       keyb_ralt(false)
+       keyb_ralt(false),
+       _device_info()
 {
     // GNASH_REPORT_FUNCTION;
-
-    memset(&_device_info, 0, sizeof(struct input_id));
 }
 
 bool
diff --git a/libdevice/events/InputDevice.cpp b/libdevice/events/InputDevice.cpp
index 2157f90..2edddea 100644
--- a/libdevice/events/InputDevice.cpp
+++ b/libdevice/events/InputDevice.cpp
@@ -31,21 +31,21 @@ namespace gnash {
 InputDevice::InputDevice()
     : _type(InputDevice::UNKNOWN),
       _fd(-1),
+      _input_data(),
       _screen_width(0),
       _screen_height(0)
 {
     // GNASH_REPORT_FUNCTION;
-    memset(&_input_data, 0, sizeof(InputDevice::input_data_t));
 }
 
 InputDevice::InputDevice(int x, int y)
     : _type(InputDevice::UNKNOWN),
       _fd(-1),
+      _input_data(),
       _screen_width(x),
       _screen_height(y)
 {
     // GNASH_REPORT_FUNCTION;
-    memset(&_input_data, 0, sizeof(InputDevice::input_data_t));
 }
 
 InputDevice::~InputDevice()
diff --git a/libdevice/events/InputDevice.h b/libdevice/events/InputDevice.h
index 6d36ed0..837eb70 100644
--- a/libdevice/events/InputDevice.h
+++ b/libdevice/events/InputDevice.h
@@ -221,7 +221,7 @@ public:
     
 private:
     // Keyboard SHIFT/CTRL/ALT states (left + right)
-     bool keyb_lshift, keyb_rshift, keyb_lctrl, keyb_rctrl, keyb_lalt, 
keyb_ralt;
+    bool keyb_lshift, keyb_rshift, keyb_lctrl, keyb_rctrl, keyb_lalt, 
keyb_ralt;
     struct input_id _device_info;
 };
 
diff --git a/libdevice/rawfb/RawFBDevice.cpp b/libdevice/rawfb/RawFBDevice.cpp
index bce2333..3385b7c 100644
--- a/libdevice/rawfb/RawFBDevice.cpp
+++ b/libdevice/rawfb/RawFBDevice.cpp
@@ -53,12 +53,11 @@ RawFBDevice::RawFBDevice()
 
 RawFBDevice::RawFBDevice(int /* vid */)
     : _fd(0),
-      _fbmem(0)
+      _fbmem(0),
+      _cmap()
 {
     // GNASH_REPORT_FUNCTION;
 
-    memset(&_cmap, 0, sizeof(struct fb_cmap));
-    
     if (!initDevice(0, 0)) {
         log_error(_("Couldn't initialize RAWFB device!"));
     }
@@ -66,11 +65,10 @@ RawFBDevice::RawFBDevice(int /* vid */)
 
 RawFBDevice::RawFBDevice(int /* argc */ , char ** /* argv */)
     : _fd(0),
-      _fbmem(0)
+      _fbmem(0),
+      _cmap()
 {
     // GNASH_REPORT_FUNCTION;
-
-    memset(&_cmap, 0, sizeof(struct fb_cmap));    
 }
 
 void

-----------------------------------------------------------------------

Summary of changes:
 gui/fb/fb_glue_agg.cpp           |   12 ++++++------
 libdevice/events/EventDevice.cpp |    5 ++---
 libdevice/events/InputDevice.cpp |    4 ++--
 libdevice/events/InputDevice.h   |    2 +-
 libdevice/rawfb/RawFBDevice.cpp  |   10 ++++------
 5 files changed, 15 insertions(+), 18 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]