Ignore:
Timestamp:
04/29/11 13:25:45 (14 years ago)
Author:
tbretz
Message:
Use stringstreams to replace Form not strings and +=
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ReadlineWindow.cc

    r10496 r10498  
    3737#include "Shell.h"
    3838
     39#include <sstream>
    3940#include <iostream>
    4041#include <string.h> // strlen
     
    290291
    291292    // Compile a proper format string
    292     string fmt = "%-";
    293     fmt += max;
    294     fmt + 's';
     293    ostringstream fmt;
     294    fmt << "%-" << max << 's';
    295295
    296296    // loop over all entries and display them
     
    307307
    308308        // Display an entry
    309         wprintw(fWindow, fmt.c_str(), matches[i+1]);
     309        wprintw(fWindow, fmt.str().c_str(), matches[i+1]);
    310310    }
    311311
Note: See TracChangeset for help on using the changeset viewer.