Mercurial > hg > octave-nkf
diff src/defun.cc @ 5765:7ba9ad1fec11
[project @ 2006-04-17 05:05:15 by jwe]
author | jwe |
---|---|
date | Mon, 17 Apr 2006 05:05:17 +0000 |
parents | bd9cd65d51e4 |
children | ace8d8d26933 |
line wrap: on
line diff
--- a/src/defun.cc +++ b/src/defun.cc @@ -25,6 +25,7 @@ #include <config.h> #endif +#include <sstream> #include <iostream> #include <string> @@ -56,7 +57,7 @@ if (h.length () > 0) { - OSSTREAM buf; + std::ostringstream buf; buf << "\nInvalid call to " << nm << ". Correct usage is:\n\n"; @@ -69,11 +70,7 @@ if (! just_usage) additional_help_message (buf); - buf << OSSTREAM_ENDS; - - defun_usage_message (OSSTREAM_STR (buf)); - - OSSTREAM_FREEZE (buf); + defun_usage_message (buf.str ()); } } else