Răsfoiți Sursa

fix #485: Error returned a reference to a temporary object

ithewei 1 an în urmă
părinte
comite
a2ed77ee51
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      evpp/TcpServer.h

+ 1 - 1
evpp/TcpServer.h

@@ -287,7 +287,7 @@ public:
         stop(true);
     }
 
-    const EventLoopPtr& loop(int idx = -1) {
+    EventLoopPtr loop(int idx = -1) {
         return TcpServerEventLoopTmpl<TSocketChannel>::loop(idx);
     }