Преглед на файлове

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

ithewei преди 1 година
родител
ревизия
a2ed77ee51
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);
     }