summaryrefslogtreecommitdiff
path: root/textproc/isearch/patches/patch-src_zpresent.cxx
blob: 29a32d0700cba7ccb058ed574fbec3525d7311a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$NetBSD: patch-src_zpresent.cxx,v 1.1 2012/12/21 10:29:47 dholland Exp $

Chase after the C++ standard:
   - use "std" qualification

XXX: I strongly suspect the "exit;" below is an error.

--- src/zpresent.cxx~	2000-10-24 18:40:36.000000000 +0000
+++ src/zpresent.cxx
@@ -62,13 +62,13 @@ Author:		A. Warnock (warnock@awcubed.com
 
 void
 XmlBail(const STRING& DBName, const STRING& error_message) {
-    cout << "\t<isearch:present status=\"Error\" dbname=\"" << DBName
-	 << "\">" << endl;
-    cout << "\t\t<isearch:error_block>" << endl;
-    cout << error_message;
-    cout << "\t\t</isearch:error_block>" << endl;
-    cout << "\t</isearch:present>" << endl;
-    cout << "</zpresent>" << endl;
+    std::cout << "\t<isearch:present status=\"Error\" dbname=\"" << DBName
+	 << "\">" << std::endl;
+    std::cout << "\t\t<isearch:error_block>" << std::endl;
+    std::cout << error_message;
+    std::cout << "\t\t</isearch:error_block>" << std::endl;
+    std::cout << "\t</isearch:present>" << std::endl;
+    std::cout << "</zpresent>" << std::endl;
     exit;
 }
 
@@ -289,10 +289,10 @@ main(int argc, char** argv) {
     } else {
       error_message.Cat("\t\t\t\t<isearch:error_text>Record ");
       error_message.Cat("not found.</isearch:error_text>\n");
-      cout << "\t\t\t<isearch:result docid=\"" << RecordKey <<
+      std::cout << "\t\t\t<isearch:result docid=\"" << RecordKey <<
 	"\" status=\"Error\">\n";
-      cout << error_message;
-      cout << "\t\t\t</isearch:result>" << endl;
+      std::cout << error_message;
+      std::cout << "\t\t\t</isearch:result>" << std::endl;
     }
   }