소스 검색

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);
     }