summaryrefslogtreecommitdiff
path: root/games/xevil/files/patch-x11::panel.cpp
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2012-12-14 07:16:20 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2012-12-14 07:16:20 +0000
commit5ba24ed896375e40859f9ee4d1259399a7ac22cd (patch)
tree807cc9a938cd668365749aa2fd384cf6641191bf /games/xevil/files/patch-x11::panel.cpp
parent- Update to 0.7.7.1. (diff)
- Update MASTER_SITES.
- Fix build using CLANG. - Add LICENSE. - Add MAKE_JOBS_SAFE. PR: ports/172010 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes: svn path=/head/; revision=308884
Diffstat (limited to 'games/xevil/files/patch-x11::panel.cpp')
-rw-r--r--games/xevil/files/patch-x11::panel.cpp48
1 files changed, 43 insertions, 5 deletions
diff --git a/games/xevil/files/patch-x11::panel.cpp b/games/xevil/files/patch-x11::panel.cpp
index fb0cd883ffcf..f75f23f74adb 100644
--- a/games/xevil/files/patch-x11::panel.cpp
+++ b/games/xevil/files/patch-x11::panel.cpp
@@ -1,14 +1,52 @@
---- x11/panel.cpp.orig Sat Mar 22 20:50:44 2003
-+++ x11/panel.cpp Sat Oct 25 21:47:34 2003
-@@ -31,8 +31,9 @@
+--- x11/panel.cpp.orig 2012-05-27 06:52:29.000000000 +0900
++++ x11/panel.cpp 2012-05-27 06:52:58.000000000 +0900
+@@ -31,13 +31,14 @@
#include <X11/Xutil.h>
#include <X11/keysym.h>
}
-#include <iostream.h>
-#include <strstream.h>
+#include <iostream>
-+#include <strstream>
-+using namespace std;
++#include <sstream>
#include "utils.h"
#include "xdata.h"
+ #include "panel.h"
+
++using namespace std;
+
+ #define PANEL_BORDER 1
+ #define PANEL_MARGAIN 2
+@@ -311,15 +312,14 @@
+
+
+ void WritePanel::update_message() {
+- ostrstream tmp;
++ stringstream tmp;
+ if (active) {
+- tmp << prompt << value << "_" << ends;
++ tmp << prompt << value << "_";
+ }
+ else {
+- tmp << prompt << value << ends;
++ tmp << prompt << value;
+ }
+- set_message(tmp.str());
+- delete tmp.str();
++ set_message(tmp.str().c_str());
+ }
+
+
+@@ -524,9 +524,8 @@
+ return;
+ }
+
+- ostrstream tmp;
+- tmp << "CHAT <<" << value << "\nEnter to send, Esc to cancel." << ends;
+- TextPanel::set_message(tmp.str());
+- delete tmp.str();
++ stringstream tmp;
++ tmp << "CHAT <<" << value << "\nEnter to send, Esc to cancel.";
++ TextPanel::set_message(tmp.str().c_str());
+ }
+