blob: 93fe5516b36717eda9bee9ec54032b82f17efc83 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
$NetBSD: patch-ao,v 1.1 2003/09/30 23:03:59 christos Exp $
--- xosview.cc.orig 1999-02-16 09:08:34.000000000 -0500
+++ xosview.cc 2003-09-30 18:41:24.000000000 -0400
@@ -6,7 +6,7 @@
//
// $Id: patch-ao,v 1.1 2003/09/30 23:03:59 christos Exp $
//
-#include <iostream.h>
+#include <iostream>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
@@ -312,7 +312,7 @@
{
switch (argv[0][1]) {
case 'v':
- cerr << versionString << endl;
+ std::cerr << versionString << std::endl;
exit(0);
case 'n': // Check for -name option that was already parsed
// and acted upon by main().
@@ -335,12 +335,12 @@
#endif
case '-': /* Check for --version argument. */
if (!strncasecmp(*argv, "--version", 10)) {
- cerr << versionString << endl;
+ std::cerr << versionString << std::endl;
exit(0);
}
/* Fall through to default/error case. */
default:
- cerr << "Ignoring unknown option '" << argv[0] << "'.\n";
+ std::cerr << "Ignoring unknown option '" << argv[0] << "'.\n";
break;
}
argc--;
@@ -355,19 +355,19 @@
}
void XOSView::visibilityEvent( XVisibilityEvent &event ){
- //cerr <<"XOSView::visibilityEvent() : ";
+ //std::cerr <<"XOSView::visibilityEvent() : ";
if (event.state == VisibilityFullyObscured){
- //cerr <<"hidden";
+ //std::cerr <<"hidden";
_isvisible = false;
}
else {
- //cerr <<"not hidden";
+ //std::cerr <<"not hidden";
_isvisible = true;
}
- //cerr <<endl;
+ //std::cerr <<std::endl;
}
void XOSView::unmapEvent( XUnmapEvent & ){
- //cerr <<"XOSView::unmapEvent()" <<endl;
+ //std::cerr <<"XOSView::unmapEvent()" <<std::endl;
_isvisible = false;
}
|