Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Queequeg92 committed Nov 17, 2014
1 parent 18b9548 commit dc494d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ch16/ex16.14.15/Screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ class Screen {
typedef std::string::size_type pos;
Screen() = default; // needed because Screen has another constructor
// cursor initialized to 0 by its in-class initializer
Screen(pos ht, pos wd, char c): height(ht), width(wd),
contents(ht * wd, c) { }
Screen(char c):contents(ht * wd, c) { }
char get() const // get the character at the cursor
{ return contents[cursor]; } // implicitly inline
inline char get(pos ht, pos wd) const; // explicitly inline
Screen &move(pos r, pos c); // can be made inline later
private:
pos cursor = 0;
Expand Down

0 comments on commit dc494d2

Please sign in to comment.