Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marcopg@litl.com>2009-03-16 13:43:53 (GMT)
committer Marco Pesenti Gritti <marcopg@litl.com>2010-07-27 22:04:20 (GMT)
commitce47ec697f381c026e7e0fbc08c3c76dc36f495a (patch)
tree67c1b7580fba573055113c6480acbb38f3e955dd
parent7e79db67e1a61229b7aa4c0bd180f27be1f2727b (diff)
Better c++ style for initialization
-rw-r--r--browser-plugin/plugin.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/browser-plugin/plugin.cpp b/browser-plugin/plugin.cpp
index 08b5dda..15f39ea 100644
--- a/browser-plugin/plugin.cpp
+++ b/browser-plugin/plugin.cpp
@@ -22,12 +22,10 @@
#include "plugin.h"
#include "scriptable.h"
-Plugin::Plugin (NPP instance)
+Plugin::Plugin (NPP instance) : mInstance (instance),
+ mWindow (0),
+ mScriptableObject (0)
{
- mInstance = instance;
- mWindow = 0;
- mScriptableObject = NULL;
-
mScrolledWindow = gtk_scrolled_window_new (NULL, NULL);
mView = ev_view_new ();