remove strstream in ktview.cpp, strstream has been deprecated since C++98

remotes/gitea/gg-tdeadmin-kcron
gregory guy 6 years ago
parent 5da22d48c7
commit ace129edbd
No known key found for this signature in database
GPG Key ID: 6EFE0EF249A874C0

@ -16,12 +16,7 @@
#include <config.h> #include <config.h>
#ifdef HAVE_SSTREAM
#include <sstream> #include <sstream>
#else
#include <strstream.h>
#endif
#include <string> #include <string>
#include <tqstring.h> #include <tqstring.h>
@ -291,13 +286,7 @@ void KTView :: pageHeading (KTListItem* user, KTPrint &printer) const
void KTView :: pageFooter (KTListItem* user, KTPrint &printer) const void KTView :: pageFooter (KTListItem* user, KTPrint &printer) const
{ {
#ifdef HAVE_SSTREAM
ostringstream oss; ostringstream oss;
#else
char buffer[4096];
ostrstream oss(buffer, sizeof(buffer));
#endif
oss<<*(user->getCTCron())<<ends; oss<<*(user->getCTCron())<<ends;
if (oss) { if (oss) {

Loading…
Cancel
Save