~ubuntu-branches/ubuntu/wily/aptsh/wily-proposed

« back to all changes in this revision

Viewing changes to src/column.cc

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2007-04-28 21:20:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070428212009-sip1fn165q4cngvt
Tags: 0.0.7ubuntu1
* Merge with debian unstable, Ubuntu changes:
  - Update build-depends to rebuild against the latest apt.
  - Modified Maintainer values to match Debian-Maintainer-Field spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
void column_display::add (char* text, int column)
31
31
{
 
32
        add(string(text), column);
 
33
}
 
34
 
 
35
void column_display::add(string text, int column)
 
36
{
32
37
        if (column > cols) {
33
38
                fprintf(stderr, "Such column does not exist!\n");
34
39
                return;
35
40
        }
36
41
 
37
 
        flesh[column].push_back(string(text));
 
42
        flesh[column].push_back(text);
38
43
}
39
44
 
40
45
void column_display::dump()