summaryrefslogblamecommitdiffstats
path: root/graphics/passepartout/files/patch-src::ps::pdf.cc
blob: 165de6273f5d968b6b39a1efb496b2892ed7565d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                              
--- src/ps/pdf.cc.orig  Wed Aug 18 23:42:10 2004
+++ src/ps/pdf.cc   Wed Aug 18 23:44:28 2004
@@ -199,10 +199,10 @@
     bytecount write(std::ostream *out, bool binary=true, bytecount offset=0) 
     {
       Part::write(out, binary, offset);
-      std::string str(str());
+      const std::string& s(str());
       if(out)
-   (*out) << str;
-      return offset+str.length();
+   (*out) << s;
+      return offset+s.length();
     }
 
   protected: