Lines 1-56
Link Here
|
1 |
|
|
|
2 |
$FreeBSD: ports/misc/colortail/files/patch-Colorizer.cc,v 1.2 2004/02/06 14:08:52 krion Exp $ |
3 |
|
4 |
--- Colorizer.cc.orig Wed Aug 4 04:41:17 1999 |
5 |
+++ Colorizer.cc Thu Feb 5 19:49:47 2004 |
6 |
@@ -23,7 +23,7 @@ |
7 |
|
8 |
#include <assert.h> |
9 |
#include <stdio.h> |
10 |
-#include <strstream.h> |
11 |
+#include <strstream> |
12 |
|
13 |
|
14 |
Colorizer::Colorizer() |
15 |
@@ -111,7 +111,7 @@ |
16 |
ListIterator<SearchData*> itr(*m_items_list); |
17 |
|
18 |
// will contain the new string |
19 |
- ostrstream newstr; |
20 |
+ std::ostrstream newstr; |
21 |
|
22 |
SearchData *current; |
23 |
int i = 0; |
24 |
@@ -172,7 +172,7 @@ |
25 |
} |
26 |
|
27 |
// write ansi reset str and a newline |
28 |
- newstr << ANSI_RESET_STR << endl << ends; |
29 |
+ newstr << ANSI_RESET_STR << std::endl << std::ends; |
30 |
// return the new string |
31 |
return newstr.str(); |
32 |
} |
33 |
@@ -187,12 +187,12 @@ |
34 |
// check if str ends in '\n' |
35 |
if (str[strlen(str)] == '\n') |
36 |
{ |
37 |
- newstr << str << ends; |
38 |
+ newstr << str << std::ends; |
39 |
} |
40 |
else |
41 |
{ |
42 |
// doesn't end in '\n' |
43 |
- newstr << str << endl << ends; |
44 |
+ newstr << str << std::endl << std::ends; |
45 |
} |
46 |
|
47 |
// return the new string |
48 |
@@ -240,7 +240,7 @@ |
49 |
|
50 |
// write newline and null |
51 |
//newstr << endl << ends; |
52 |
- newstr << ends; |
53 |
+ newstr << std::ends; |
54 |
|
55 |
|
56 |
// return the new string |