patches/gobby-03-auto_ptr.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 415 719739929d2d
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
415
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     1
--- gobby-0.4.4.orig/src/window.cpp	2007年  6月 15日 五 17:59:10
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     2
+++ gobby-0.4.4/src/window.cpp	2007年  8月 17日 五 22:05:34
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     3
@@ -1330,7 +1330,7 @@
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     4
 		m_statusbar.update_connection(str.str() );
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     5
 
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     6
 		// Start session
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     7
-		m_buffer = buffer;
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     8
+		m_buffer.reset(buffer.release());
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     9
 		obby_start();
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    10
 
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    11
 		// Session is open, no need to reshow join dialog
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    12
@@ -1373,7 +1373,7 @@
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    13
 		str << port;
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    14
 		m_statusbar.update_connection(str.str() );
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    15
 
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    16
-		m_buffer = buffer;
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    17
+		m_buffer.reset(buffer.release());
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    18
 
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    19
 		// Start session
719739929d2d 2007-08-18 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    20
 		obby_start();