- Timestamp:
- 2004-03-16T16:21:03+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/browsetools.cpp
r4983 r7061 31 31 #include "gsdlunicode.h" 32 32 33 #include <sstream> 33 #if defined(GSDL_USE_IOS_H) 34 # if defined(__WIN32__) 35 # include <strstrea.h> // vc4 36 # else 37 # include <strstream.h> 38 # endif 39 #else 40 # include <sstream> 41 #endif 34 42 35 43 … … 836 844 options["DocImage"] = get_cover_image(); 837 845 838 ostringstream tmpstr(ostringstream::binary); 846 #if defined(GSDL_USE_IOS_H) 847 ostrstream *tmpstr = new ostrstream(); 848 #else 849 ostringstream *tmpstr = new ostringstream(ostringstream::binary); 850 #endif 851 839 852 if (args["gc"] == "1") { 840 853 expanded_contents (args, 0, false, browsers, formatinfo, 841 collectproto, disp, outconvert, tmpstr,854 collectproto, disp, outconvert, *tmpstr, 842 855 logout); 843 856 } else { 844 857 contracted_contents (args, 0, false, browsers, formatinfo, 845 collectproto, disp, outconvert, tmpstr, logout); 846 } 847 text_t tmp = (char *)(tmpstr.str().c_str()); 858 collectproto, disp, outconvert, *tmpstr, logout); 859 } 860 #if defined(GSDL_USE_IOS_H) 861 char *t = tmpstr->str(); 862 text_t tmp; 863 tmp.setcarr(t, tmpstr->pcount()); 864 delete [] t; 865 #else 866 text_t tmp = (char *)(tmpstr->str().c_str()); 867 #endif 848 868 int len = tmp.size(); 849 869 char *ctmp = tmp.getcstr(); … … 854 874 options["DocTOC"] = tmp; 855 875 delete ctmp; 876 delete tmpstr; 856 877 857 878 options["DocumentButtonDetach"] = "_document:imagedetach_";
Note:
See TracChangeset
for help on using the changeset viewer.