Skip to content

Commit

Permalink
Use an initializer list instead of assigning members in the ctor body.
Browse files Browse the repository at this point in the history
  • Loading branch information
AeroNotix committed Nov 20, 2012
1 parent f323940 commit a19f705
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@

using namespace std;

Panel::Panel(Display* dpy, int scr, Window root, Cfg* config,
const string& themedir) {
// Set display
Dpy = dpy;
Scr = scr;
Root = root;
cfg = config;

session = "";
Panel::Panel(Display* dpy, int scr, Window root, Cfg* config, const string& themedir)
: Dpy(dpy), Scr(scr), Root(root), cfg(config), session("")
{

// Init GC
XGCValues gcv;
Expand Down

0 comments on commit a19f705

Please sign in to comment.