Sfoglia il codice sorgente

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

ithewei 1 anno fa
parent
commit
a2ed77ee51
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
     }