Changeset 10498 for trunk/FACT++/src/ReadlineWindow.cc
- Timestamp:
- 04/29/11 13:25:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ReadlineWindow.cc
r10496 r10498 37 37 #include "Shell.h" 38 38 39 #include <sstream> 39 40 #include <iostream> 40 41 #include <string.h> // strlen … … 290 291 291 292 // Compile a proper format string 292 string fmt = "%-"; 293 fmt += max; 294 fmt + 's'; 293 ostringstream fmt; 294 fmt << "%-" << max << 's'; 295 295 296 296 // loop over all entries and display them … … 307 307 308 308 // Display an entry 309 wprintw(fWindow, fmt. c_str(), matches[i+1]);309 wprintw(fWindow, fmt.str().c_str(), matches[i+1]); 310 310 } 311 311
Note:
See TracChangeset
for help on using the changeset viewer.