Skip to content

Commit

Permalink
Terminal: renamed some variables for clarity.
Browse files Browse the repository at this point in the history
* Unless they really have no meaning beyond serving as an index, you
  should avoid naming your variables just i, j, k, l.
  • Loading branch information
axeld committed Sep 3, 2015
1 parent 52e43a2 commit fa89878
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/apps/terminal/TermWindow.cpp
Expand Up @@ -236,12 +236,12 @@ TermWindow::TermWindow(const BString& title, Arguments* args)
SetWorkspaces(workspaces);
} else {
// use computed defaults
int i = id / 16;
int j = id % 16;
int k = (j * 16) + (i * 64) + 50;
int l = (j * 16) + 50;
int row = id / 16;
int column = id % 16;
int x = (column * 16) + (row * 64) + 50;
int y = (column * 16) + 50;

MoveTo(k, l);
MoveTo(x, y);
}

// init the GUI and add a tab
Expand Down

0 comments on commit fa89878

Please sign in to comment.